
A stateless streamable HTTP MCP server for interacting with the official source of government spending data.

A Python MCP server that connects AI agents to the Zhitou HS data API for querying real-time China A-Share stock market data.
Zhitou HS Data MCP Server is cataloged as an MCP server attributed to ctnd. A Python MCP server that connects AI agents to the Zhitou HS data API for querying real-time China A-Share stock market data. It is categorized under finance crypto. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Zhitou HS Data MCP Server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
Yes, users must obtain and configure a valid Zhitou API Token for the server to work.
README.md · abc32768680d · Fetched 2026-11-13 10:56:46 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
mcp_zhitou_server
empowering AI Agents like Cursor & Cline with real-time China A-Share stock market data! 🚀
Hey Coder 小伙伴们!👋 我是 PGFA!欢迎来到我的 Zhitou HS Data MCP Server 项目!
这个项目是一个用 Python 编写的 模型上下文协议 (MCP) 服务端实现。它的核心使命是充当你的 AI 智能体(比如超火的 Cursor 编辑器或 Cline 命令行助手)和 智兔数服沪深数据 API (https://www.zhituapi.com/hsstockapi.html) 之间的桥梁 🌉。
简单来说,有了它,你就可以直接在 AI Agent 的聊天框里,用自然语言让 AI 帮你查询实时的 A 股股票列表、公司信息、资金流向等等,再也不用手动去查啦!是不是超级酷炫,效率 up up!📈
跟上 PGFA 的节奏,三步搞定!
pip install requests
下载本仓库唯一文件mcp_zhitou_server.py
🔥【宇宙级重要】🔥 配置你的 API Token:
打开主脚本文件 mcp_zhitou_server.py (或者你命名的其他主文件),找到下面这行:
# 🔥🔥🔥【请务必替换为你自己的有效 Token! 测试 Token 有限制!】🔥🔥🔥
ZHITU_TOKEN = "ZHITU_TOKEN_LIMIT_TEST"
将 "ZHITU_TOKEN_LIMIT_TEST" 替换成你自己在智兔数服获取到的真实 API Token! 否则服务无法正常工作哦!
根据你使用的客户端进行配置:
如果你用 Cline:
Zhitou_HS_API。/usr/local/bin/python3 /path/to/your/project/mcp_zhitou_server.pyC:\Python311\python.exe C:\Users\PGFA\project\mcp_zhitou_server.py (路径请根据你的实际情况修改!)如果你用 Cursor:
在你的项目根目录下,创建一个名为 .cursor 的文件夹(如果不存在)。
在 .cursor 文件夹内,创建一个名为 mcp.json 的文件。
将以下 JSON 内容粘贴进去,并修改 args 中的脚本路径为你的实际绝对路径:
{
"mcpServers": {
"zhitou_hs": { // 服务器的唯一标识符,可以自定义
"command": "python", // 或 python3
"args": ["/path/to/your/project/mcp_zhitou_server.py"], // ⚠️⚠️⚠️ 修改为你的脚本实际路径!
// "workingDirectory": "/path/to/your/project/", // 可选,但建议设置
"tools": [
// 建议把你实现的工具在这里声明一下,方便 Agent 发现
{"name": "get_stock_list", "description": "获取基础 A 股股票列表 (代码, 名称, 交易所)。"},
{"name": "get_new_stock_calendar", "description": "获取新股日历 (申购信息, 上市日期等)。"},
{"name": "get_company_profile", "description": "获取指定股票代码的上市公司简介。", "parameters": {"stock_code": {"type":"string", "description": "股票代码, e.g., '000001'"}}},
{"name": "get_capital_daily_trend", "description": "获取指定股票代码的每日资金流入趋势 (近十年)。", "parameters": {"stock_code": {"type":"string"}}},
{"name": "get_all_announcements", "description": "获取指定股票代码的历史所有公告列表。", "parameters": {"stock_code": {"type":"string"}}}
// ... 如果添加了更多工具,也在这里声明 ...
]
}
}
}
保存 mcp.json 文件。重启 Cursor 或让它重新加载项目配置。
现在,打开你的 Cursor 或 Cline 聊天窗口,试试用自然语言和 AI 对话,让它调用我们定义的工具吧!
get_stock_list 工具帮我看看最新的股票列表。"get_company_profile 工具。"get_new_stock_calendar)get_all_announcements)观察 AI 的回复和你的终端日志,享受 AI 帮你干活的乐趣吧!😉
当前已实现的 MCP 工具 (对应 Python 函数):
get_stock_list: 获取基础 A 股股票列表 (代码, 名称, 交易所)。get_new_stock_calendar: 获取新股日历 (申购信息, 上市日期等)。get_company_profile: 获取指定股票代码的上市公司简介。(需要 stock_code 参数)get_capital_daily_trend: 获取指定股票代码的每日资金流入趋势 (近十年)。(需要 stock_code 参数)get_all_announcements: 获取指定股票代码的历史所有公告列表。(需要 stock_code 参数)想让你的 AI 助手更强大?完全 OK!
mcp_zhitou_server.py 中,仿照现有的工具函数,编写一个新的函数来调用这个 API,记得处理好参数和返回值。给函数写上清晰的 docstring 哦!TOOLS 字典里,添加一行,把新的工具名和你刚写的函数关联起来。mcp.json) 需要显式声明工具列表,记得把新工具加进去。搞定!你的 AI 又解锁了新技能!😎
本项目采用 MIT 许可证。
希望这份 README 对你有帮助!快去试试看,让你的 AI 动起来吧!有问题欢迎在 Issues 区提出。Have Fun Coding! 💖
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Zhitou HS Data MCP Server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/mcp_zhitou_server)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

A stateless streamable HTTP MCP server for interacting with the official source of government spending data.

A hosted, remote MCP server for Fortnox that lets AI assistants answer questions from a company's bookkeeping and propose changes for approval before writing them.

OptimistFi is a read-only remote MCP server that provides perpetual futures market data, perps prop firm rules and pricing, and US equity investment research.