Logo vun EODHD MCP Server

EODHD MCP Server

Organisatioun
EodHistoricalData

EODHD MCP Server for AI assistants

EditeurEodHistoricalData
RepositoryEODHD-MCP-Server
SproochPython
Forks
3
Stären
20
Disponibel Tools
0
Transporttypstdio
Kategorien
LizenzMIT
Linken
  • Tools mat KI-Workflows verbannen

    EODHD MCP Server stellt MCP-Funktioune bereit, déi vu kompatibele KI-Clienten a KI-Agente kënne benotzt ginn.

  • 0 disponibel Tools

    Kuckt Iech déi opruffbar Aktiounen hei drënner un, mat Nimm a Beschreiwungen, wa se vum Server geliwwert ginn.

  • Konfiguratioun fir ze kopéieren

    Benotzt d'Installatiounsbeispiller, fir dëse Server an Ärem bevorzugte MCP-Client ze konfiguréieren.

  • Indicateure fir Open Source

    20 Stären an 3 Forks aus dem verlinkte Repository.

EODHD MCP Server

Model Context Protocol (MCP) server for EOD Historical Data APIs.

The current server exposes 88 MCP tools across three transports — 85 are read-only; the three Praams report tools trigger provider-side report generation and email delivery, so they are annotated readOnlyHint=False:

  • streamable-http via server.py on /mcp by default
  • sse
  • stdio

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
  • Credit & sovereign risk: risk premiums, credit ratings, CDS/default spreads, corporate CMDI/HQM yields, CDS-market aggregates
  • Sanctions / OFAC: entities, vessels, programs, sources
  • Interest rates: reference rates (SOFR etc.), central-bank policy rates, funding-stress spreads

Marketplace and partner datasets

  • US options: contracts, EOD, and underlyings
  • 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 except the three Praams report tools; every tool registers 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_ENABLED or 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

bash
git clone https://github.com/EodHistoricalData/EODHD-MCP-Server.git
cd EODHD-MCP-Server
pip install -r requirements.txt

For development tooling:

bash
pip install -e ".[dev]"

Create a .env file at the repository root:

env
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
# Deployment label added to the outbound User-Agent (e.g. v1 / v2):
EODHD_MCP_EDITION=
# Usage telemetry — both are required, and nothing is emitted unless both are set:
EODHD_MCP_TELEMETRY_URL=
EODHD_MCP_TELEMETRY_KEY=

Running the Server

Recommended entrypoint

server.py is the main maintained entrypoint.

Run HTTP (default):

bash
python server.py

Run HTTP explicitly:

bash
python server.py --http --host 127.0.0.1 --port 8000 --path /mcp

Run SSE:

bash
python server.py --sse

Run stdio:

bash
python server.py --stdio

Override the API key from the CLI:

bash
python server.py --stdio --apikey YOUR_EODHD_API_KEY

Compatibility entrypoints

The repo still includes legacy compatibility entrypoints in entrypoints/:

bash
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, or token
  • 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

json
{
  "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

bash
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:

bash
python server.py

Then run the HTTP manual client:

bash
python tests/manual/test_client_http.py --endpoint http://127.0.0.1:8000/mcp

For SSE:

bash
python server.py --sse
python tests/manual/test_client_sse.py --endpoint http://127.0.0.1:8000/sse

For stdio:

bash
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:

bash
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 selection
  • app/api_client.py — shared async HTTP client, auth injection, rate limiting, retry logic
  • app/response_formatter.py — MCP resource formatting and API error raising
  • app/input_formatter.py — input sanitization and date coercion
  • app/tools/ — MCP tool implementations
  • app/prompts/ — bundled MCP prompts
  • app/resources/ — bundled MCP resources and reference docs
  • tests/auto/ — automated tests
  • tests/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.

Privacy Policy

This connector is operated by EOD Historical Data (Unicorn Data Services). It sends the parameters you provide (for example tickers, date ranges, and your API key) to the EODHD APIs to fulfil each request, and returns the responses to your MCP client. It does not collect or store conversation content beyond what is required to serve a request.

Full privacy policy: https://eodhd.com/financial-apis/privacy-policy

EODHD MCP Server MCP mat verschiddene KI-Modeller benotzen

TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Soubal EODHD MCP Server verbonnen ass, kënnt Dir et mat verschiddene KI-Modeller an TypingMind benotzen, amplaz et fir all Modell separat anzeriichten. Dës MCP-Integratioun leeft lokal iwwer den TypingMind-MCP-Connector op Ärem Apparat.

Ariichtungsuleedung fir de lokale Connector ze benotzen

Benotzt dës Optioun, wann den MCP-Server Zougrëff op lokal Fichieren, Appen oder privat Ressourcen op Ärem Computer brauch.

1

D'MCP-Astellungen opmaachen

Gitt an TypingMind op „Astellungen“, „Erweidert Astellungen“, dann op „Model Context Protocol“ a wielt „Connector ariichten“.

  1. Maacht TypingMind an Ärem Browser op.
  2. Klickt op d'Astellungssymbol.
  3. Gitt op „Erweidert Astellungen“.
  4. Maacht d'Sektioun „Model Context Protocol“ op.
  5. Klickt op „Connector ariichten“ a wielt „Dësen Apparat“.
Ariichtungsbildschierm vum TypingMind-MCP-Connector mat „Dësen Apparat“ ausgewielt
2

De Connector-Befeel ausféieren

Wielt „Dësen Apparat“, kopéiert de Befeel aus TypingMind a féiert en am Terminal aus. Loosst de Prozess lafen, wärend Dir MCP benotzt.

  1. Kopéiert den Ariichtungsbefeel, deen TypingMind uweist.
  2. Maacht Terminal op macOS oder Windows Terminal op Windows op.
  3. Pescht de Befeel an a féiert en aus.
  4. Bestätegt d'Installatioun vum Package, wann den Terminal Iech freet, ob Dir weiderfuere wëllt.
  5. Loosst den Terminal an de Prozess doranner lafen, wärend Dir MCP-Tools benotzt.
3

EODHD MCP Server als Server derbäisetzen

Wann de Connector-Status „Prett“ ass, klickt op „Serveren änneren“ a pescht d'MCP-Serverkonfiguratioun an.

  1. Waart, bis de Connector-Status „Prett“ weist.
  2. Klickt op „Serveren änneren“.
  3. Pescht d'MCP-Serverkonfiguratioun vu EODHD MCP Server an.
  4. Späichert d'Serverlëscht.
  5. Aktualiséiert, wann Dir kontrolléiere wëllt, ob de Connector nach ëmmer prett ass.
MCP-Astellunge vun TypingMind mat aktivem Server an dem Knäppchen „Serveren änneren“
{
  "mcpServers": {
    "eodhd-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

D'Verbindung mat verschiddene Modeller benotzen

Späichert d'Serverlëscht, maacht „Plugins“ op an aktivéiert d'MCP-Tools vu EODHD MCP Server. Wielt dann e belibegen ënnerstëtzte KI-Modell an TypingMind a benotzt d'Tools am Chat oder weist se engem KI-Agent zou.

  1. Maacht d'Säit „Plugins“ an TypingMind op.
  2. Aktivéiert d'MCP-Tools vu EODHD MCP Server.
  3. Start e Chat a wielt de KI-Modell, deen Dir benotze wëllt.
  4. Benotzt d'MCP-Tools am Chat oder weist se engem KI-Agent zou.
  5. Wiesselt bei Bedarf op en anere KI-Modell, ouni MCP nei ze verbannen.
TypingMind-Chat mat aktivéierte MCP-Tools an engem ausgewielte KI-Modell
Hëlleft Dir mir bei dëser Aufgab mat EODHD MCP Server?
EODHD MCP Server
Jo. Ech hunn et gelies.
Dat hunn ech mat EODHD MCP Server fonnt.

Heefeg gestallte Froen

Fir wat gëtt de MCP-Server EODHD MCP Server benotzt?

EODHD MCP Server ass e MCP-Server, deen et kompatibele KI-Clienten erlaabt, sech mat externen Tools a Kontext ze verbannen. An TypingMind kënnt Dir dëse MCP-Server eemol derbäisetzen a seng Tools an Ärem KI-Aarbechtsberäich zur Verfügung stellen.

Kann ech EODHD MCP Server MCP mat méi KI-Modeller an TypingMind benotzen?

Jo. TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Sou kënnt Dir EODHD MCP Server mat verschiddene KI-Modeller wéi Claude, ChatGPT, Gemini oder anere Modeller benotzen, déi Dir an TypingMind konfiguréiert hutt, ouni de MCP-Server fir all Modell separat anzeriichten.

Firwat EODHD MCP Server MCP mat TypingMind benotzen?

TypingMind ass eng vun de beschte Benotzeruewerfläche fir LLM-Chat, well et méi KI-Modeller, Prompts, Plugins, KI-Agenten, API-Schlësselen a MCP-Tools an engem Aarbechtsberäich zesummebréngt. Wann EODHD MCP Server verbonnen ass, kënnt Dir seng MCP-Tools mat Äre bevorzugte Modeller benotzen a gläichzäiteg Är Chataarbecht an TypingMind organiséieren.

Wéi verbannen ech EODHD MCP Server MCP mat TypingMind?

EODHD MCP Server leeft iwwer de lokale MCP-Connector vun TypingMind. Dat eegent sech am beschten, wann de MCP-Server Zougrëff op lokal Fichieren, Desktop-Apps, Kommandozeilen-Tools oder privat Ressourcen op Ärem Computer brauch.

Wéi eng Tools stellt EODHD MCP Server MCP an TypingMind zur Verfügung?

EODHD MCP Server stellt MCP-Funktiounen zur Verfügung, déi Dir op der Plugins-Säit vun TypingMind aktivéiere kënnt, fir se am Chat ze benotzen oder KI-Agenten zouzeweisen.

Muss ech meng API-Schlëssele mat TypingMind deelen, fir EODHD MCP Server MCP ze benotzen?

Nee. TypingMind setzt op lokal Veraarbechtung a léisst Iech d'Kontroll iwwer Är Modellubidder, API-Schlësselen, Prompts a MCP-Konfiguratioun. Wann EODHD MCP Server eng Authentifizéierung verlaangt, setzt déi néideg Headeren, OAuth-Astellungen oder lokal Konfiguratioun fir dee MCP-Server derbäi, wann Dir d'Verbindung erstallt.

Änlech MCP-Serveren

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇