
Stock Mcp
cn.pianam.mcpPublished by mcp.pianam.cnOfficial publisherv1.0.0Updated Oct 24, 2026
China A-share real-time stock quotes and major indices with dual-source fallback.
The publisher's own server: China 12306 Train Tickets MCP
Overview
A remote MCP server that gives an assistant real-time China A-share stock quotes and the three major market indices, with dual-source fallback.
- What you can do
- Look up a single stock quote by code or Chinese name, returning price, previous close, open, high/low, change amount and percent, direction, volume, turnover, update time and data source. Retrieve the three major A-share indices (Shanghai Composite, Shenzhen Component, ChiNext) with points, change, open/previous close/high/low and an overall market-trend summary. Resolve Chinese stock names to codes automatically, using a bundled map of common stocks plus a suggest lookup.
- When to use it
- Useful when you want an assistant to answer quick questions about Chinese A-share prices or the overall market, such as a specific stock's current quote or how the main indices are doing today.
- Requirements
- Nothing to install: it is a hosted Streamable HTTP endpoint with no authentication, API key or registration. A client that supports HTTP MCP servers is needed. Self-hosting is optional and requires Python and the project's dependencies.
Installation
In SourceWeft
- Open Stock Mcp in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.
Use with an agent
Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.
Read https://sourceweft.com/mcp/cn.pianam.mcp%2Fstock-mcp/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.Other MCP clients
Add this to your client's mcpServers config.
{
"mcpServers": {
"stock": {
"type": "http",
"url": "https://mcp.pianam.cn/stock-mcp/mcp"
}
}
}README
China A-Share Stock Quotes MCP
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.
- Try it in 30 seconds: a free public MCP endpoint is already running — just paste the URL into your MCP client (no install, no API key).
- Or self-host: a small FastMCP server using only free public quote endpoints (Tencent Finance primary, Sina Finance fallback). No paid API, no key.
⚡ Use the hosted endpoint (no setup)
Transport: Streamable HTTP (MCP 2025-03-26 compatible). No authentication required.
🔌 Client configuration
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".
🧰 Tools
| 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.). |
Examples
- "贵州茅台现在多少钱?" → live quote for Kweichow Moutai.
- "查一下 300750" → quote for CATL (宁德时代).
- "今天大盘怎么样?" → the three indices and market trend.
📡 Data sources
- Primary: Tencent Finance real-time quote endpoint (
qt.gtimg.cn) — free public interface, GBK encoded, no key. - Fallback: Sina Finance (
hq.sinajs.cn, sent with aRefererheader) — automatically used if the primary source fails. - Name → code resolution uses Tencent's suggest API, with a bundled map of ~50 common stocks for instant lookup.
- All requests have timeouts and graceful degradation; no API key or registration required.
Data is for informational purposes only and is delayed / indicative per the data providers; it is not investment advice.
🐢 Self-hosting
Then point your MCP client at http://127.0.0.1:8000/mcp.
With uv:
🗂️ Files
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。数据仅供参考,不构成投资建议。
📄 License
MIT © 2026 boy-373 (刘扶阳)
Source: README.md at commit 63a6b7a
Tools
0Version history
1- v1.0.0LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 daysRequired25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declaredRequired10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Other Pianam integrations

China 12306 Train Tickets MCP
cn.pianam.mcpOfficial publisher
A read-only MCP server that lets an assistant look up China Railway 12306 train schedules and remaining seat availability by Chinese station name and date.

Weather Forecast MCP
cn.pianam.mcpOfficial publisher
Remote MCP server that lets an assistant look up current weather and up to 7-day forecasts for cities worldwide, with Chinese city names and Chinese output.
MCP Aggregation Gateway — 22k+ MCP search & call
cn.pianam.mcpOfficial publisher
A remote MCP gateway that lets an assistant search a catalog of 22k+ MCP servers and call 50+ hosted tools without an API key.

IP Location MCP
cn.pianam.mcpOfficial publisher
A remote MCP server that looks up IPv4 geolocation — country, region, city, coordinates, timezone, ISP and ASN — with Chinese-language output.

China Hot Trending MCP
cn.pianam.mcpOfficial publisher
A remote MCP server that fetches real-time hot-search and trending boards from eight Chinese platforms, such as Weibo, Zhihu and Bilibili, in one call.