Stock Data MCP Server
The Stock Data MCP Server provides comprehensive financial data querying for A-shares, Hong Kong stocks, US stocks, and cryptocurrencies, with multi-source automatic failover.
Stock Search & Info: Find stock codes by keyword and retrieve basic information, real-time quotes (individual and batch), and historical prices with technical indicators across A-share, HK, and US markets.
A-Share Specific Tools: Access chip distribution, individual stock fund flows, multi-period statistics, sector/board constituent stocks, limit-up stock pools, strong stock pools, and Dragon-Tiger List statistics.
Financial Indicators: Query key financial metrics for A-shares, Hong Kong stocks, and US stocks.
US Stock Tools: Get company overviews, financial statements, earnings data, insider trading, news sentiment analysis, and technical indicators (via Alpha Vantage or yfinance).
Sector & Market Insights: Retrieve sector fund flow rankings and spot data for industries, concepts, and regions.
Cryptocurrency Data: Fetch historical OHLCV candlestick data with technical indicators (OKX, multiple timeframes), long/short loan ratios, taker buy/sell volume, and AI-generated analysis reports (Binance).
News & Updates: Get stock/crypto-specific news and global financial news flashes.
Utilities: Check current system time and A-share trading day info, monitor data source health and circuit breaker status, and receive AI-driven investment recommendations (buy/sell/hold) with confidence scores and reasoning.
Click on "Install 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., "@Stock Data MCP ServerShow me the real-time price and technical indicators for NVDA"
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.
Stock Data MCP Server
English | 中文
MCP 服务器,提供 A股/港股/美股、加密货币数据查询,支持多数据源自动故障转移。
安装
PyPI
MCP 配置
{
"mcpServers": {
"stock-data": {
"command": "uvx",
"args": ["stock-data-mcp"]
}
}
}Docker
docker run -p 8808:8808 ghcr.io/stockmcp/stock-data-mcpMCP 配置
{
"mcpServers": {
"stock-data": {
"url": "http://0.0.0.0:8808/mcp" # Streamable HTTP
}
}
}Git 源码(开发版,会实时更新)
MCP 配置
{
"mcpServers": {
"stock-data": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/stockmcp/stock-data-mcp",
"stock-data-mcp"
]
}
}
}变量 | 说明 |
| Tushare Pro API Token(A股高优先数据源) |
| Alpha Vantage API Key(美股数据增强,不配置则使用 yfinance 免费源) |
| OKX API 代理地址 |
| Binance API 代理地址 |
| NewsNow 财经快讯频道列表(默认: |
Claude Code
claude mcp add stock-data \
-e TUSHARE_TOKEN=your_token \
-e ALPHA_VANTAGE_API_KEY=your_key \
-e OKX_BASE_URL=https://okx.4url.cn\
-e BINANCE_BASE_URL=https://bian.4url.cn \
-- uvx stock-data-mcp工具列表
工具 | 说明 |
| 股票搜索 |
| 股票信息 |
| 历史价格+技术指标 |
| 实时行情 |
| 批量实时行情 |
| 筹码分布 |
| 个股资金流向 |
| 多周期统计 |
| 个股所属板块 |
| 板块成分股 |
| 个股新闻 |
| 全球财经快讯 |
| A股财务指标 |
| 港股财务指标 |
| 美股财务指标 |
| A股涨停股池 |
| A股强势股池 |
| A股龙虎榜 |
| 板块资金流 |
| 美股公司概览(Alpha Vantage / yfinance) |
| 美股财务报表(Alpha Vantage / yfinance) |
| 美股新闻情绪(需 Alpha Vantage API key) |
| 美股盈利数据(Alpha Vantage / yfinance) |
| 美股内部交易(Alpha Vantage / yfinance) |
| 美股技术指标(需 Alpha Vantage API key) |
| 加密货币K线 |
| 加密货币借贷比 |
| 加密货币买卖量 |
| 加密货币AI分析 |
| 系统时间及交易日 |
| 数据源状态 |
License
MIT
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/stockmcp/stock-data-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server