China A-share real-time stock quotes and major indices with dual-source fallback.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent — or use 1-click editor setup below.
💡 Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Real-time China A-share stock & market-index quotes for AI agents. Query by stock code (sh600519, 600519) or by Chinese name (贵州茅台), with automatic name resolution and dual data sources.
Transport: Streamable HTTP (MCP 2025-03-26 compatible). No authentication required.
Add this to your MCP client's mcpServers configuration (Claude Desktop, Cursor, Cline, Cherry Studio, etc.):
Clients that do not accept
"type": "http"accept the same entry with just"url".
| Tool | Parameters | Returns | |
---|---|---|
| query_stock_quote(stock) | stock: stock code (sh600519, SH600519, 600519, 000858) or Chinese name (贵州茅台, 宁德时代). | Name, code, current price, prev close, open, high/low, change amount & percent, direction (涨/跌/平), volume (shares & lots), turnover, update time, data source. |
| query_index() | (none) | The three major A-share indices — 上证指数 / 深证成指 / 创业板指: points, change, open/prev-close/high/low, plus an overall market-trend summary (全面上涨 / 多数下跌 etc.). |
qt.gtimg.cn) — free public interface, GBK encoded, no key.hq.sinajs.cn, sent with a Referer header) — automatically used if the primary source fails.Data is for informational purposes only and is delayed / indicative per the data providers; it is not investment advice.
Then point your MCP client at http://127.0.0.1:8000/mcp.
With uv:
stock_server.py — the MCP server: code/name resolution, Tencent + Sina quote parsing, FastMCP tool definitions.server.py — standalone Streamable HTTP entry point (serves the MCP app at /mcp).requirements.txt — Python dependencies.LICENSE — MIT.A 股实时行情 MCP:个股行情查询(支持代码 sh600519/600519 或中文名「贵州茅台」,内置约 50 只常用股映射 + 腾讯搜索补全)与三大指数查询(上证 / 深成 / 创业板,含市场整体涨跌趋势)。
在线直连(免费、无需 Key):https://mcp.pianam.cn/stock-mcp/mcp
主数据源腾讯财经(qt.gtimg.cn,免费公开接口),失败自动降级新浪财经(hq.sinajs.cn);所有请求带超时与友好错误,无需任何 API Key。数据仅供参考,不构成投资建议。
MIT © 2026 boy-373 (刘扶阳)
Factual signals from GitHub, npm, and our automated checks — not a rating.
No reviews yet — be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/stock-mcp)<a href="https://allmcps.com/mcp/stock-mcp"><img src="https://allmcps.com/api/badge/stock-mcp?style=directory" alt="Stock MCP on AllMCPs" /></a>