EODHD MCP Serverのロゴ

EODHD MCP Server

組織
EodHistoricalData

EODHD MCP Server for AI assistants

公開者EodHistoricalData
リポジトリEODHD-MCP-Server
言語Python
フォーク
3
スター
20
利用可能なツール
0
通信方式stdio
カテゴリ
ライセンスMIT
リンク
  • ツールをAIワークフローに接続

    EODHD MCP Serverは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 0個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには20件のスターと3件のフォークがあります。

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を複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度EODHD MCP Serverに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

EODHD MCP Serverをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. EODHD MCP ServerのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "eodhd-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてEODHD MCP ServerのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. EODHD MCP ServerのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
EODHD MCP Serverを使ってこのタスクを手伝ってもらえますか?
EODHD MCP Server
はい、読みました。
EODHD MCP Serverで調べた結果をお伝えします。

よくある質問

EODHD MCP Server MCPサーバーは何に使いますか?

EODHD MCP Serverは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでEODHD MCP Server MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでEODHD MCP Serverを利用できます。

TypingMindでEODHD MCP Server MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。EODHD MCP Serverを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

EODHD MCP Server MCPをTypingMindに接続するにはどうすればよいですか?

EODHD MCP ServerはTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでEODHD MCP Server MCPのどのようなツールを利用できますか?

EODHD MCP ServerはMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

EODHD MCP Server MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。EODHD MCP Serverで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇