HTZL A Share MCP
MCP server providing 29 A-share analysis skills including real-time data, capital flow, limit-up tracking, technical/fundamental analysis, backtesting, risk control, and Xueqiu portfolio tracking, enabling AI agents to execute market research and strategy tasks.
README
HTZL A Share MCP
๐ฅ ๆ ง้ๆบ่ A ่ก MCP ๆๅก โโ 29 ไธชๅณๆๅณ็จ Skills ่ฆ็ๆฐๆฎ้้/ๅคง็ๅๆ/่ต้ๆตๅ/ๆถจๅ่ฟฝ่ธช/ๆๆฏ้ข/ๅบๆฌ้ข/ไผฐๅผ/่ดขๆฅ/ๅคๅ ๅญ/ๅๆต/้ฃๆง/ๆบ่ฝๆฅๅ/่ช้่ก็ๆง/้ช็่ฐไปใClaude Code / CoWork / OpenClaw / Cherry Studio ้ฆ้ๆญๆกฃใ
A-Share MCP for AI Agents โ 5400+ A ่กไธๅธๅ ฌๅธ ยท akshare + tushare + ไธ่ดขๅๆบ ยท Apache-2.0
๐ฏ ไธบไปไน้่ฆ HTZL A Share MCP๏ผ
่ฎฉ Claude / GPT / Gemini ็ญ AI Agent ็ดๆฅ่ฐ็จ A ่กๆฐๆฎๅๆๅ็ญ็ฅๅทฅๅ ท๏ผ
- โ
29 ไธชๅณๆๅณ็จ Skills โโ ไธ่ก
pip installๅฏ็จๅ จ้จ่ฝๅ - โ ๅคๆบๆ ้่ฝฌ็งป โโ akshare โ tushare โ mock ไธๅฑๅ ๅบ
- โ ้ช็้ๆ โโ pysnowball 1,825โญ Apache-2.0 ๅบๅฑ
- โ Claude Code ๅๅฅฝ โโ stdio ๆจกๅผๅณๆๅณ็จ
- โ ็ไบงๅฐฑ็ปช โโ pytest 104/104 โ + Dockerfile + PyPI + GitHub Actions CI
๐ ๅฟซ้ๅผๅง
1. ๅฎ่ฃ
pip install htzl-a-share-mcp
2. ๅฏๅจ MCP Server
stdio ๆจกๅผ๏ผๆจ่็จไบ Claude Code๏ผ๏ผ
python -m htzl_a_share_mcp.server --transport stdio
HTTP ๆจกๅผ๏ผๆจ่็จไบ CoWork / Cherry Studio๏ผ๏ผ
python -m htzl_a_share_mcp.server --transport streamable-http --host 0.0.0.0 --port 8000
3. ๅจ Claude Code ไธญไฝฟ็จ
// ~/.claude/mcp_servers.json
{
"mcpServers": {
"htzl-a-share": {
"command": "python",
"args": ["-m", "htzl_a_share_mcp.server", "--transport", "stdio"]
}
}
}
็ถๅๅจ Claude Code ๅฏน่ฏไธญ๏ผ
ๅธฎๆๅๆ่ดตๅท่
ๅฐ๏ผ600519๏ผ็ๅฝๅไผฐๅผๅๆ่ฟไธๅจ็่ต้ๆตๅ
๐ 29 Skills ๅ จๆฏ
ๆฐๆฎๅฑ (5)
get_stock_daily- A ่กๆฅ็บฟๆฐๆฎ๏ผๅคๆบๆ ้่ฝฌ็งป๏ผget_stock_realtime- A ่กๅฎๆถ่กๆget_stock_basic- ่ก็ฅจๅบๆฌไฟกๆฏ๏ผPE/PB/ๅธๅผ๏ผget_etf_list- ETF ๅ่กจget_index_daily- ๆๆฐๆฅ็บฟ๏ผๆฒชๆทฑ300/ๅไธๆฟ็ญ๏ผ
่ต้ๆตๅ (2)
get_capital_flow- ไธช่ก่ต้ๆตๅ๏ผไธปๅ/ๆฃๆท๏ผget_sector_flow- ๆฟๅ่ต้ๆตๅ
ๆถจๅ่ฟฝ่ธช (2)
get_limit_up_pool- ๆถจๅ่กๆฑget_limit_up_stats- ๆถจๅ็ป่ฎก๏ผ่ฟๆฟ็/็ธๆฟ็๏ผ
ๆๆฏ้ข (3)
turtle_signal- ๆตท้พไบคๆๆณไฟกๅทmacd_signal- MACD ไฟกๅทkdj_signal- KDJ ้ๆบๆๆ
ไผฐๅผ (2)
get_pe- PE ไผฐๅผget_pb- PB ไผฐๅผ
่ดขๆฅ (2)
get_income_statement- ๅฉๆถฆ่กจget_financial_indicators- ่ดขๅกๆๆ
ๅคๅ ๅญ (1)
multi_factor_select- ๅคๅ ๅญ้่ก
ๅๆต (3)
backtest_turtle- ๆตท้พไบคๆๆณๅๆตbacktest_multi_factor- ๅคๅ ๅญๅๆตbacktest_compare- ็ญ็ฅๅฏนๆฏๅๆต
้ฃๆง (2)
risk_var- VaR ้ฃ้ฉไปทๅผrisk_position_size- Kelly ๅ ฌๅผๅคดๅฏธ
ๆบ่ฝๆฅๅ (3)
generate_daily_report- ไธช่กๆฅๆฅgenerate_sector_report- ๆฟๅๅจๆฅgenerate_portfolio_report- ็ปๅๆไปๆฅๅ
่ช้่ก็ๆง (2)
add_to_watchlist- ๅ ๅ ฅ่ช้่กget_watchlist_alerts- ่ช้่ก้ข่ญฆ
้ช็่ฐไป (2)
get_xueqiu_quote- ้ช็ๅฎๆถ่กๆtrack_xueqiu_portfolio- ้ช็็ปๅ่ฐไป่ฟฝ่ธช
๐๏ธ ๆถๆ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Claude Code / CoWork / OpenClaw / Cherry Studio โ
โ (MCP Client via stdio or HTTP) โ
โโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ MCP Protocol
โโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ HTZL A Share MCP Server (FastMCP 3.4) โ
โ 29 Skills (data + strategies + community + push) โ
โโโโโโฌโโโโโโโโโโฌโโโโโโโโโโฌโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโ
โ โ โ โ
โโโโโโผโโโโ โโโโผโโโโโ โโโโผโโโโโโโโโ โโโโผโโโโโโโโโโ
โ Data โ โStrategyโ โCommunity โ โPush โ
โ Sourcesโ โ Layer โ โ Layer โ โ Layer โ
โ akshareโ โ turtle โ โ xueqiu โ โ feishu โ
โ tushareโ โ chanlunโ โ tracker โ โ alert โ
โ mock โ โ factor โ โ โ โ โ
โโโโโโโโโโ โโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโโโโ
๐ณ Docker ้จ็ฝฒ
docker build -t htzl-a-share-mcp .
docker-compose up -d
็ฏๅขๅ้๏ผ
HTZL_USE_MOCK- ๆฏๅฆไฝฟ็จ mock ๆฐๆฎ๏ผ้ป่ฎคtrue๏ผTUSHARE_TOKEN- Tushare Pro tokenXUEQIU_TOKEN- ้ช็ tokenFEISHU_WEBHOOK- ้ฃไนฆ webhook URL
๐ง ๅผๅ
git clone https://github.com/mm2xai/htzl-a-share-mcp-demo.git
cd htzl-a-share-mcp-demo
# ๅๅปบ่ๆ็ฏๅข
python3.12 -m venv .venv
source .venv/bin/activate
# ๆธ
ๅๆบๅ ้
pip install -e ".[dev]" -i https://pypi.tuna.tsinghua.edu.cn/simple/
# ๆต่ฏ
pytest tests/ -v
๐ ๆๆกฃ
๐ ่ด่ฐข
ๆฌ้กน็ฎๅบไบไปฅไธๅผๆบ้กน็ฎ๏ผ
- modelcontextprotocol/servers 89,361โญ - MCP ๅฎๆน Servers
- simonlin1212/a-stock-data 8,490โญ - A ่กๅ จๆ ๆฐๆฎ
- uname-yang/pysnowball 1,825โญ - ้ช็ Python SDK
- pypa/gh-action-pypi-publish 1,180โญ - PyPI ๅๅธ Action
- python-semantic-release 1,047โญ - SemVer ่ชๅจๅ
- TauricResearch/TradingAgents 22,015โญ - ๅค Agent ไบคๆๆกๆถ
- HKUDS/AI-Trader 21,216โญ - ๅ จ่ชๅจ Agent ไบคๆ
- BlockRunAI/awesome-finance-mcp 182โญ - ้่ MCP ๆถๅฝ
- Krish-Sachdev-7/EquityMCP - ๅฐๅบฆ่ก MCP ๆ ๆ
- github/github-mcp-server 32,082โญ - GitHub ๅฎๆน MCP
- fastmcp - FastMCP ๆกๆถ
- akshare - A ่กๆฐๆฎๆบ
- tushare - Tushare Pro ๆฐๆฎๆบ
๐ License
Apache-2.0 ยฉ htzl.ai
๐บ๏ธ Roadmap
- v0.7 (2026-11-01) โ ๅฝๅ MVP๏ผ29 skills๏ผ9 ๅคง็ฑป โ
- v0.8 (2027-02) โ 36 skills๏ผๅคๅธๅบ๏ผๆธฏ่ก/็พ่ก๏ผ
- v0.9 (2027-05) โ 42 skills๏ผLLM ๅขๅผบ้่ก
- v1.0 (2027-11) โ 50+ skills๏ผ็คพๅบๅ๏ผ็ฎๆ 1,000โญ
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.