Financial Data MCP Server
Enables AI assistants to access real-time stock, crypto, and market index data from Yahoo Finance, supporting queries for prices, history, company info, and comparisons.
README
š Financial Data MCP Server
A Model Context Protocol server that gives AI assistants like Claude live access to stock, equities, and cryptocurrency data from Yahoo Finance.
Ask your assistant "What's Apple trading at?" or "Compare AAPL, MSFT, and GOOGL" and get real-time answers backed by market data ā no copy-pasting from finance sites.

⨠Features
| Capability | Description |
|---|---|
| š Stock data | Real-time prices, P/E ratios, market cap, and historical OHLCV |
| š¢ Company info | Sector, financials, dividend yields, and analyst metrics |
| āæ Crypto data | Live prices and history for BTC, ETH, and major coins (24/7) |
| š Market indices | Track the S&P 500, NASDAQ, Dow Jones, and more |
| āļø Comparison | Compare multiple tickers side by side in one call |
| š Lightweight | Pure Python, Python 3.9+, only two dependencies |
š§° Available Tools
| Tool | Description | Key parameters |
|---|---|---|
stock_price |
Current price and basic metrics | symbol |
stock_history |
Historical OHLCV data | symbol, period |
stock_info |
Detailed company information | symbol |
crypto_price |
Current cryptocurrency price | symbol (e.g. BTC-USD) |
crypto_history |
Historical cryptocurrency data | symbol, period |
market_summary |
Snapshot of major indices | indices (comma-separated) |
compare_stocks |
Side-by-side ticker comparison | symbols (comma-separated) |
periodvalues:1d,5d,1mo,3mo,6mo,1y,2y,5y,10y,ytd,max
š Prerequisites
- Python 3.9 or newer
- pip for installing dependencies
- An MCP-compatible client (e.g. Claude Desktop) to use the server interactively
š Installation
# 1. Clone the repository
git clone https://github.com/<your-username>/financial-data-mcp-server.git
cd financial-data-mcp-server
# 2. (Recommended) create and activate a virtual environment
python3 -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
# 3. Install dependencies
pip install -r requirements.txt
ā¶ļø Usage
Run the server directly (it communicates over stdio):
python server.py
Run the test suite to confirm everything works:
python test_server.py
Connect to Claude Desktop
Add the server to your claude_desktop_config.json (see DOCS.md for the exact path on your OS and platform-specific notes):
{
"mcpServers": {
"financial-data": {
"command": "python3",
"args": ["/absolute/path/to/financial-data-mcp-server/server.py"]
}
}
}
Restart Claude Desktop and the financial-data tools will be available.
š¬ Example
You: Compare AAPL, MSFT, and GOOGL.
Claude (via compare_stocks):
AAPL $301.54 P/E 36.46
MSFT $411.74 P/E 24.52
GOOGL $363.31 P/E 27.69
šļø Project Structure
.
āāā server.py # Main MCP server implementation
āāā test_server.py # Functional tests
āāā client_example.py # Example tool calls
āāā requirements.txt # Python dependencies
āāā README.md # You are here
āāā LICENSE # MIT License
Full documentation ā setup, Claude Desktop connection, tools, MCP protocol reference, and troubleshooting ā lives in DOCS.md.
š” Data Source
All data is sourced from Yahoo Finance via the yfinance library. This project is not affiliated with or endorsed by Yahoo. Data is provided for informational purposes only and is not financial advice.
š Security
Found a vulnerability? Please review our Security Policy for responsible disclosure instructions.
š License
Distributed under the MIT License. See LICENSE for details.
MCP-SERVER
Financial-Analysis-MCP-SERVER
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.