Dappier MCP Server: Real-Time News, Sports, Finance, Crypto
Connect LLMs to real-time, rights-cleared data via Dappier's MCP server for news, sports, finance, crypto and premium publisher content.
npx -y @DappierAI/dappier-mcpOverview
Dappier MCP Server (Model Context Protocol server) provides a standardized, low-latency way to enrich large language model (LLM) inputs with real‑time, rights‑cleared content. The server aggregates and indexes content across news, sports, finance, crypto, and premium publishers, then exposes that content through simple HTTP endpoints that LLMs or orchestration services can call to fetch contextual data before or during prompt construction.
This separation of concerns—context retrieval from generation—lets you build LLM applications that remain accurate and up‑to‑date without overloading the model with the responsibility of live data ingestion. Use it to add breaking news, live scores, market prices, or licensed articles into prompts in a structured, auditable way.
Features
- Aggregates real‑time, rights‑cleared content across news, sports, finance, crypto, and premium publishers
- Standardized MCP-compatible HTTP endpoints for context retrieval
- Fast queries with configurable relevance and time windows
- Built-in caching and configurable TTLs
- Filtering and metadata (source, timestamp, license) returned with results
- Docker and Docker Compose friendly for local and production deployment
- Simple JSON API suitable for serverless functions, agent frameworks, and LLM chain integrations
Installation / Configuration
Clone the repository and run with Docker or Docker Compose. The examples below are minimal—adjust env vars for your environment and provider credentials.
Clone the repo:
Build and run with Docker:
Example docker-compose.yml:
version: "3.8"
services:
dappier-mcp:
image: dappier-mcp:latest
build: .
ports:
- "8080:8080"
environment:
- DAPPIER_API_KEY=${DAPPIER_API_KEY}
- REDIS_URL=redis://redis:6379/0
- PORT=8080
redis:
image: redis:7
restart: unless-stopped
Common environment variables:
| Variable | Purpose | Example |
|---|---|---|
| DAPPIER_API_KEY | Authentication token for server | DAPPIER_API_KEY=abc123 |
| REDIS_URL | Cache / session store | redis://localhost:6379/0 |
| PORT | HTTP port | 8080 |
| LOG_LEVEL | Logging verbosity | info, debug, error |
| SOURCE_* | Optional provider credentials (e.g., NEWS_API_KEY) | SOURCE_NEWS_KEY=… |
The server accepts a configuration file (config.yaml) to control sources, licensing filters, and TTLs. Example config snippet:
sources:
news:
enabled: true
api_key: ${SOURCE_NEWS_KEY}
finance:
enabled: true
providers:
- name: market-data
api_key: ${SOURCE_MARKET_KEY}
cache:
ttl_seconds: 300
Available Resources
The MCP server exposes a small set of HTTP endpoints designed for fast, programmatic usage. Typical endpoints include:
- GET /health — service health
- POST /mcp/context — query for contextual documents (body: { query, filters, size })
- GET /mcp/sources — list available content sources and metadata
- POST /mcp/search — keyword/semantic search across indexed content
Returned results include fields like: id, title, snippet, source, timestamp, license, and relevance_score. Each document payload includes enough metadata to let you show provenance in UIs or include licensing decisions in downstream flows.
Use Cases
Real‑time news summarization
- Flow: Fetch latest articles for a company ticker → prepend context to prompt → generate an earnings summary or Q&A.
- Example: POST /mcp/context { “query”: “Apple earnings”, “filters”: { “last_hours”: 24 }, “size”: 5 }
Financial assistant with live quotes
- Flow: Query finance/crypto sources for current prices and recent headlines → return a short market brief to users or trading agents.
- Example: Request top 3 documents for BTC and current price feed (combined in prompt).
Sports commentary and score updates
- Flow: Retrieve latest game summary and play-by-play snippets → embed into a commentary generation prompt for dynamic match reports.
Rights‑compliant use of premium publisher content
- Flow: Use the server to discover licensed articles, include publisher metadata and license terms to ensure compliant display and summarization.
Concrete JavaScript example (fetch context, then call an LLM):
// Fetch contextual docs from MCP server
;
;
// Construct prompt for an LLM
;
;
// Send to LLM (example pseudocode)
;
Next Steps and Links
- Explore the repository for deployment examples and configuration templates.
- Review source metadata and licensing fields to ensure your application meets display and rights requirements.
- Integrate the MCP server into your LLM orchestration layer (agents, retrieval-augmented generation pipelines, or prompt templates) to provide