modernity-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MODERNITY_API_KEY | Yes | Your Modernity API key. Can also be provided via the CLI argument --key=YOUR_API_KEY. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
| resources | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_recent_dataA | Fetch recent messages from Modernity's live stream buffer (20k ring buffer, newest-first). Returns messages with source, category, timestamp, title, and message text. Use source/category filters to narrow results. Good for getting a snapshot of what's happening now. |
| query_topicA | Semantic search across all Modernity data sources. Returns ranked results with relevance scores, source, age, title, and summary. Best for finding information about a specific topic. Use a longer timeframe (1h, 24h) if the default 60s returns no results. |
| multi_schema_queryB | Query across multiple data types simultaneously. Returns results grouped by type. Good for broad searches that span documents, financial tickers, news articles, and geographic alerts. |
| analyze_topicA | Use AI to analyze a topic before querying. Returns recommended data types, search terms, relevant data sources, and reasoning. Call this first when unsure how to query a topic. |
| get_sourcesA | List all 23 live data sources with their IDs, categories, latency, and descriptions. Sources include: bluesky, mastodon, coingecko, kalshi, hackernews, github, usgs, gdelt, arxiv, sec, sports, weather, and more. |
| get_stream_statsA | Get live stream health: online status, active subscriber count, total messages processed, per-source message counts and throughput rates. |
| get_key_infoA | Check your API key: email, tier, rate limits (per minute/hour/day), remaining quota, and subscription status. |
| check_healthA | Quick health check — returns API status, service name, and server timestamp. |
| get_pricingA | Get all pricing tiers with display names, monthly prices, rate limits, SSE access, and feature lists. |
| get_api_docsA | Get complete API endpoint documentation for building with the Modernity API. Returns endpoint URLs, HTTP methods, parameters, request/response schemas, authentication, error codes, and rate limit details. Use this when a user wants to integrate Modernity into their app, needs to know how an endpoint works, or is writing code that calls the API. You can request docs for a specific endpoint group or get the full reference. |
| generate_integrationA | Generate ready-to-use code for integrating the Modernity API into an application. Produces working code with authentication, error handling, rate-limit retry logic, and best practices. Use this when a user wants code to call the API from their app, needs a quick start snippet, or is building a feature that uses live data. |
| get_quickstartA | Get a step-by-step quickstart guide for integrating Modernity into a specific framework or platform. Includes project setup, dependency installation, environment configuration, and a working example. Use this when starting a new project with Modernity or adding Modernity to an existing app. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| API Health Status | Current health and status of the Modernity API |
| Available Sources | List of all 23+ data sources and categories |
| Pricing Tiers | Pricing tiers with rate limits, monthly calls, and SSE access |
| Getting Started Guide | Quick start guide: get an API key, make your first request, understand authentication and rate limits |
| API Endpoint Reference | Complete reference for all API endpoints: /v1/recent, /v1/query, /v1/query/multi, /v1/live (SSE), /v1/sources, /v1/snapshot, /v1/counts, /v1/analyze |
| Authentication & API Keys | How to authenticate: API key usage, rate limit headers, error codes, and tier comparison |
| Error Codes & Troubleshooting | HTTP error codes, rate limit handling, retry strategies, and common issues |
| Code Examples | Ready-to-use code examples in Python, JavaScript/TypeScript, and curl for all endpoints |
TDQS
Scored across 12 tools
The retrieval tools are separated by intent (live snapshot via get_recent_data, semantic search via query_topic, cross-type search via multi_schema_query, and pre-query planning via analyze_topic), but the boundary between get_recent_data and multi_schema_query is fuzzy for an agent that just wants 'recent stuff across sources'. The three integration helpers (get_api_docs, get_quickstart, generate_integration) also sit close together, though each names a distinct artifact (reference vs guide vs code).
Eleven of twelve tools follow a verb_noun or verb_object pattern (get_recent_data, query_topic, get_sources, generate_integration), making the surface predictable. multi_schema_query breaks the pattern by putting the modifier and noun before the verb, and check_health uses a different verb family than the surrounding get_* tools, but both remain readable.
Twelve tools is well within a comfortable scope for a data-plus-onboarding server. Each one maps to a real need: stream access, source discovery, stats, account/quota inspection, pricing, and integration guidance.
The live-data lifecycle is broadly covered — discover sources, pull recent messages, semantic search, multi-type query, health/stats, and integration docs. The main gaps are no way to fetch a single message or item by ID and no dedicated per-source detail tool (get_sources lists metadata but there's no drill-down), which agents can mostly work around via filters.