EODHD MCP Server
Enables interaction with EOD Historical Data APIs, providing access to 75 read-only tools for financial data including fundamentals, news, screeners, and options via MCP transports.
README
<a href="https://eodhistoricaldata.com/"> <div align="center"> <picture> <source media="(prefers-color-scheme: light)" srcset="assets/icon.png"> <source media="(prefers-color-scheme: dark)" srcset="assets/icon.svg"> <img alt="EODHD logo" src="assets/icon.png" height="90"> </picture> </div> </a> <br>
EODHD MCP Server
Model Context Protocol (MCP) server for EOD Historical Data APIs.
The current server exposes 75 read-only MCP tools across three transports:
streamable-httpviaserver.pyon/mcpby defaultssestdio
It also ships bundled MCP prompts and documentation resources.
Coverage
Core datasets
- End-of-day, intraday, and US tick data
- Live quotes and US Live v2 extended quotes
- Fundamentals, earnings, and financial statements
- Company news, sentiment, and news word weights
- Screeners, search, and technical indicators
- Corporate actions: IPOs, splits, dividends, symbol changes
- Macro indicators, economic events, exchanges, and listings
- CBOE index tools
- Treasury bill, yield, real yield, and long-term rates
Marketplace and partner datasets
- US options: contracts, EOD, and underlyings
- illio: performance, risk, and market insights
- Praams: risk scoring, bonds, bank statements, reports, screeners
- Investverte ESG: companies, countries, and sectors
- TradingHours market lookup, market details, and status
Current Behavior
- All tools are read-only and register through
app/tools/__init__.py. - All HTTP requests go through the shared async client in
app/api_client.py. - Upstream API errors are preserved as MCP
ToolErrors with status code and upstream details where available. - API tokens are injected into EODHD requests as
api_token=...query parameters. - Optional retry support is controlled by
EODHD_RETRY_ENABLEDor per-call settings in code.
Requirements
- Python
3.10+ - A valid EODHD API key
- An MCP-compatible client such as Claude Desktop, Claude Code, ChatGPT MCP/Connectors, or MCP Inspector
Installation
git clone https://github.com/EodHistoricalData/EODHD-MCP-Server.git
cd EODHD-MCP-Server
pip install -r requirements.txt
For development tooling:
pip install -e ".[dev]"
Create a .env file at the repository root:
EODHD_API_KEY=YOUR_EODHD_API_KEY
MCP_HOST=127.0.0.1
MCP_PORT=8000
MCP_PATH=/mcp
LOG_LEVEL=INFO
# Optional:
EODHD_RETRY_ENABLED=false
Running the Server
Recommended entrypoint
server.py is the main maintained entrypoint.
Run HTTP (default):
python server.py
Run HTTP explicitly:
python server.py --http --host 127.0.0.1 --port 8000 --path /mcp
Run SSE:
python server.py --sse
Run stdio:
python server.py --stdio
Override the API key from the CLI:
python server.py --stdio --apikey YOUR_EODHD_API_KEY
Compatibility entrypoints
The repo still includes legacy compatibility entrypoints in entrypoints/:
python -m entrypoints.server_http
python -m entrypoints.server_sse
python -m entrypoints.server_stdio --apikey YOUR_EODHD_API_KEY
These are still usable, but server.py is the primary runtime surface.
Authentication Model
For outgoing EODHD requests, the server ultimately sends the token as api_token in the query string.
For incoming HTTP MCP requests, the server can resolve the EODHD token from:
Authorization: Bearer <token>X-API-Key: <token>- query params:
apikey,api_key, ortoken - fallback server environment:
EODHD_API_KEY
Many tools also expose an explicit api_token argument for per-call override.
Using with Claude Desktop
Packaged extension
The packaged MCP manifest uses the stdio entrypoint in manifest.json.
Source checkout example
{
"mcpServers": {
"eodhd-mcp": {
"command": "python3",
"args": [
"/absolute/path/to/EODHD-MCP-Server/server.py",
"--stdio"
],
"env": {
"EODHD_API_KEY": "YOUR_EODHD_API_KEY"
}
}
}
}
Using with ChatGPT MCP / Connectors
For local HTTP testing, use:
- URL:
http://127.0.0.1:8000/mcp
If your MCP client supports headers, you can provide the EODHD token via Authorization: Bearer ... or X-API-Key: .... Otherwise, set EODHD_API_KEY on the server.
Development Commands
pytest tests/auto/ -v --tb=short
pytest tests/auto/ -v --cov=app --cov-report=term-missing
ruff check app/ server.py
ruff format --check app/ server.py
mypy app/ server.py --ignore-missing-imports --explicit-package-bases
bandit -r app/ -ll -ii -x app/resources/
semgrep scan --config p/python --config p/owasp-top-ten --config p/secrets --config p/jwt --error app/
python server.py
python server.py --stdio
Manual End-to-End Clients
The repository includes manual MCP clients in tests/manual/.
Start the main server in one terminal:
python server.py
Then run the HTTP manual client:
python tests/manual/test_client_http.py --endpoint http://127.0.0.1:8000/mcp
For SSE:
python server.py --sse
python tests/manual/test_client_sse.py --endpoint http://127.0.0.1:8000/sse
For stdio:
python tests/manual/test_client_stdio.py --cmd "python server.py --stdio --apikey YOUR_EODHD_API_KEY"
Manual test catalogs are loaded from tests/manual/all_tests.py by default.
Docker
Run with Docker Compose:
docker compose up --build
The compose service starts python server.py and maps ${MCP_PORT_OUT} to ${MCP_PORT}.
Project Layout
server.py— main entrypoint and transport selectionapp/api_client.py— shared async HTTP client, auth injection, rate limiting, retry logicapp/response_formatter.py— MCP resource formatting and API error raisingapp/input_formatter.py— input sanitization and date coercionapp/tools/— MCP tool implementationsapp/prompts/— bundled MCP promptsapp/resources/— bundled MCP resources and reference docstests/auto/— automated teststests/manual/— manual end-to-end MCP clients
Notes
- Some marketplace endpoints require specific EODHD subscription access.
- A valid API key can still receive upstream permission errors for tools or watchlists not included in the account plan.
- The server now preserves those upstream reasons in agent-visible tool errors instead of masking them behind generic failures.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。