finance-data-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@finance-data-mcpget the latest price of AAPL"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
finance-data-mcp
A Model Context Protocol (MCP) server that provides unified financial data access across multiple markets and data sources.
Features
๐บ๐ธ US / ETF: Alpha Vantage (primary) โ yfinance (fallback)
๐จ๐ณ A-share: Tushare (primary) โ AKShare (fallback) โ yfinance
๐ญ๐ฐ HK stocks: AKShare (primary) โ yfinance (fallback)
๐ฑ FX rates: exchangerate-api โ AKShare โ Alpha Vantage โ yfinance
๐ Automatic fallback across data sources on failure
๐ Multi-key rotation for Alpha Vantage (extends daily quota)
๐ Proxy support for AKShare (useful when running overseas)
Related MCP server: Stock Data MCP Server
MCP Tools
Tool | Description |
| Real-time stock price with market routing |
| Income statement, balance sheet, cash flow |
| PE, PB, ROE, market cap, EPS, etc. |
| Currency exchange rates |
Quick Start
1. Install dependencies
pip install -r requirements.txtNote: Not all data sources are required. Install only what you need:
akshareโ for A-share and HK stocks
tushareโ for A-share (needs token, no IP restriction)
yfinanceโ for all markets (fallback, no key needed)
requestsโ required for Alpha Vantage
2. Configure environment
cp .env.example .env
# Edit .env with your API keys3. Run the server
python finance_data_server.pyThe server runs in stdio mode (standard MCP transport).
4. Configure in your MCP client
Example configuration for MCP clients:
{
"mcpServers": {
"finance-data": {
"command": "python",
"args": ["/path/to/finance-data-mcp/finance_data_server.py"],
"env": {}
}
}
}Environment Variables
Variable | Required | Description |
| For US stocks | Comma-separated Alpha Vantage API keys |
| For A-share | Tushare Pro API token |
| Optional | HTTP proxy for AKShare (format: |
Architecture
finance_data_server.py # MCP Server entry point + MarketRouter
โโโ datasources/
โ โโโ alpha_vantage_adapter.py # US/ETF stocks (Alpha Vantage API)
โ โโโ akshare_adapter.py # A-share / HK stocks (AKShare + East Money)
โ โโโ tushare_adapter.py # A-share stocks (Tushare Pro API)
โ โโโ yfinance_adapter.py # All markets fallback (Yahoo Finance)
โโโ alpha_vantage_client.py # Alpha Vantage HTTP client
โโโ alpha_vantage_rate_limiter.py # Per-key rate limiting with persistenceData Flow
MCP Client Request
โ
โผ
MarketRouter (routes by market type)
โ
โโ US/ETF โโโ AlphaVantage โ yfinance
โโ A-share โโโ Tushare โ AKShare โ yfinance
โโ HK โโโโโโโ AKShare โ yfinanceStandardized Output
All adapters return data in a unified format:
Price Response
{
"symbol": "AAPL",
"market": "US",
"price": 185.50,
"change": 2.30,
"change_pct": 1.25,
"volume": 52340000,
"high": 186.20,
"low": 183.10,
"open": 183.80,
"previous_close": 183.20,
"currency": "USD",
"source": "alpha_vantage"
}Financial Report Response
{
"symbol": "AAPL",
"market": "US",
"report_type": "income_statement",
"period": "annual",
"data": [
{
"period": "2024-09-30",
"revenue": 391035000000,
"net_income": 93736000000,
"eps_basic": 6.11
}
],
"count": 5,
"source": "alpha_vantage"
}License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Access real-time and historical market data for China A-shares and Hong Kong stocks, along with neโฆ
Real-time and historical price feeds for 500+ crypto, equities, FX, and commodities assets.
China A-share market data for research, backtesting and AI agents via MCP.
Provide access to Chinese stock market data including historical prices, real-time data, news, andโฆ
Related MCP Servers
- FlicenseDqualityDmaintenanceProvides real-time stock data and AI-powered analysis for A-shares, Hong Kong stocks, and US stocks. Features sentiment analysis of financial news, deep research reports, and comprehensive market data through multiple integrated data sources.22174-
- FlicenseNot gradedqualityCmaintenanceProvides comprehensive stock market data across US, Hong Kong, and Chinese markets, combining real-time quotes, historical data, fundamentals, and financial statements from multiple sources including Yahoo Finance, Finnhub, Tushare, and Futu OpenAPI.-
- AlicenseBqualityCmaintenanceProvides comprehensive data for A-shares, Hong Kong, and US stocks alongside cryptocurrency markets, supporting technical indicators, news, and financial statements. It features automatic failover across multiple data sources to ensure reliable access to real-time and historical market information.4734MIT

TickDB MCPofficial
AlicenseNot gradedqualityCmaintenanceUnified real-time & historical market data API for Forex, stocks (US/HK/A-share), crypto, indices & precious metals. Tick, order book depth & K-line via REST + WebSocket. AI-native: MCP server, Skill & CLI.769MIT