Get the FREE Ultimate OpenClaw Setup Guide →

EODHD_MCP_server

MCP server to connect LLM with EODHD API

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio enlavan-eodhd_mcp_server python server.py \
  --env MCP_HOST="127.0.0.1" \
  --env MCP_PORT="8000" \
  --env EODHD_API_KEY="YOUR_EODHD_API_KEY"

How to use

The EODHD MCP server exposes a wide range of EOD Historical Data endpoints through the MCP protocol, enabling MCP-compatible clients (like Claude Desktop, Claude Code, ChatGPT MCP/Connectors, or MCP Inspector) to access end-of-day, intraday, tick data, live quotes, fundamentals, earnings, news, market screens, and marketplace datasets such as options and ESG data. Tools are organized under categories like historical market data, news and sentiment, exchanges and reference data, and fundamentals/macro data. Clients can issue requests via the MCP gateway (HTTP/stdio) and combine multiple tools in a single prompt to build complex workflows, for example fetching OHLCV data, then pulling fundamentals and the latest company news for contextual analysis. The server supports both HTTP and stdio-based workflows, with environment-configured API key handling for EODHD access.

How to install

Prerequisites:

  • Python 3.10+
  • A valid EODHD API key
  • Git (optional, for cloning the repository)
  1. Clone the repository
git clone https://github.com/Enlavan/EODHD_MCP_server.git
cd EODHD_MCP_server
  1. Install Python dependencies
pip install -r requirements.txt
  1. Create an environment file (optional) or set variables directly when running
# Example .env (not required if you set env vars in the MCP config)
EODHD_API_KEY=YOUR_EODHD_API_KEY
# Optional HTTP server settings for MCP clients
MCP_HOST=127.0.0.1
MCP_PORT=8000
  1. Run the server locally
# Using the root HTTP entrypoint
python server.py
# or specify module entrypoint for HTTP if preferred
# python -m entrypoints.server_http
  1. Verify the MCP endpoint
  1. Optional: run as different entrypoints
  • For the SSE server: python -m entrypoints.server_sse
  • For stdio server: python -m entrypoints.server_stdio --apikey YOUR_EODHD_API_KEY

Additional notes

Tips and notes:

  • Ensure your EODHD_API_KEY is valid and has access to the required datasets.
  • If you run via stdio, the server key can be supplied on the command line and can override .env values.
  • When embedding in MCP clients, remember to specify the mcpServers.eodhd-mcp path and provide the API key in the env as shown in the configuration.
  • The tools are grouped under Core market data, News/sentiment, Exchanges & reference data, and Fundamentals/macro; you can combine multiple tools in a single request (e.g., get_historical_stock_prices followed by get_company_news and get_fundamentals_data).
  • If you encounter port conflicts, change MCP_PORT in the environment and update the client configuration accordingly.
  • For development, you can run the HTTP, SSE, or stdio entrypoints individually as described in the README.

Related MCP Servers

Sponsor this space

Reach thousands of developers