stock-mcp
by huweihua123·★ 146·Score 48
A professional financial market data MCP server supporting A-shares/US stocks/crypto with HTTP API for AI agents.
Overview
Stock MCP is a comprehensive financial data service that provides both MCP and HTTP API interfaces. It offers market data for A-shares, US stocks, ETFs, indices, and cryptocurrencies, along with technical analysis, fundamentals, money flow analysis, news retrieval, and filing processing. The server features a modular architecture with capability and provider plugins, supports multiple authentication modes, and includes a proxy boundary for handling domestic and international data sources.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose stock-mcp when you need a unified financial data API for AI agents that covers both Chinese and international markets with multiple data sources and technical analysis capabilities.
When NOT to choose this
Don't choose this if you need specialized derivatives trading support or if you require write capabilities to market data (this is a read-only service).
Tools this server exposes
8 tools extracted from the READMEget_kline_dataRetrieve K-line/candlestick data for a given financial symbol
calculate_technical_indicatorsCalculate technical indicators like RSI, MACD, moving averages for a symbol
get_market_dataFetch market data including price, volume, and basic info for financial symbols
get_fundamental_dataRetrieve fundamental and financial metrics for companies
get_money_flowAnalyze money flow and chip distribution for financial instruments
search_newsSearch financial news using Tavily's unified search
get_filingsRetrieve SEC/EDGAR filings or A-share company announcements
export_dataExport financial data as CSV or JSON for code execution workflows
Note: Tool names inferred from MCP call example and described capabilities. The README describes functionality but doesn't explicitly list all tool names with complete signatures.
Comparable tools
Installation
Installation
Docker Compose (Recommended)
git clone https://github.com/huweihua123/stock-mcp.git
cd stock-mcp
cp .env.example .env
docker compose up -d --buildLocal Development
uv sync --dev
cp .env.example .env
export STOCK_MCP_AUTH_MODE=none
uv run python -m uvicorn src.server.app:app --host 127.0.0.1 --port 9898Claude Desktop Configuration
Add to claude_desktop_config.json:
{
"mcpServers": {
"stock-mcp": {
"command": "uv",
"args": ["run", "python", "-c", "import src.server.mcp.server as m; m.create_mcp_server().run(transport='stdio')"],
"env": {
"STOCK_MCP_AUTH_MODE": "none"
}
}
}
}FAQ
- What financial markets are supported?
- The server supports A-shares (Chinese stocks), US stocks, ETFs, indices, and cryptocurrencies with market data, technical analysis, fundamentals, and news.
- How can I authenticate with the server?
- Three authentication modes are supported: none (for development), token (static Bearer token), and jwt (OIDC/JWT compatible for production).
Compare stock-mcp with
Last updated · Auto-generated from public README + GitHub signals.