a-stock-data-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
a-stock-data-mcp
MCP Server adapter for simonlin1212/a-stock-data.
The upstream project is kept as a pinned Git submodule under vendor/a-stock-data.
This project does not rewrite upstream A-share data-fetching logic; it exposes that logic through
FastMCP tools, prompts, and resources.
Install
git submodule update --init --recursive
uv sync
cp .env.example .envRelated MCP server: akshare-mcp
Run
uv run python -m mcp_server.serverThe server uses stdio. SSE and Streamable HTTP are intentionally left as future entrypoints.
Claude Desktop
{
"mcpServers": {
"a-stock-data": {
"command": "uv",
"args": [
"--directory",
"/path/to/a-stock-data-mcp",
"run",
"python",
"-m",
"mcp_server.server"
]
}
}
}Cursor
Add the same command to Cursor MCP settings:
{
"mcpServers": {
"a-stock-data": {
"command": "uv",
"args": ["--directory", "/path/to/a-stock-data-mcp", "run", "python", "-m", "mcp_server.server"]
}
}
}VS Code
{
"servers": {
"a-stock-data": {
"type": "stdio",
"command": "uv",
"args": ["--directory", "/path/to/a-stock-data-mcp", "run", "python", "-m", "mcp_server.server"]
}
}
}Cherry Studio
Use a stdio MCP server:
Command:
uvArgs:
--directory /path/to/a-stock-data-mcp run python -m mcp_server.server
Tools
Stock:
search_stock,get_stock_quote,get_stock_basic,get_stock_news,get_stock_notice,get_stock_reportK-line:
get_daily_kline,get_weekly_kline,get_monthly_kline,get_minute_klineFinance:
get_finance,get_income_statement,get_balance_sheet,get_cashflow,get_eps,get_roe,get_pe,get_pbSector:
get_industry,get_concept,get_industry_members,get_concept_membersHot:
get_hot_rank,get_limit_up_pool,get_limit_down_pool,get_broken_limit,get_hot_conceptsDragon tiger:
get_dragon_tigerMoney:
get_money_flow,get_main_force,get_north_moneyETF:
get_etf,get_etf_componentsIndex:
get_index_quote,get_index_klineNotice and research:
get_notice,get_research_reportAnalysis:
analyze_stock,analyze_market
All tools return:
{"success": true, "data": {}}or:
{"success": false, "error": "...", "message": "..."}Prompts
analyze_stockdaily_market_summaryanalyze_sectortoday_hot_stock
Resources
market://calendarmarket://industrymarket://conceptmarket://indexmarket://exchangemarket://etf
Configuration
.env supports:
LOG_LEVELREQUEST_TIMEOUTENABLE_CACHECACHE_TTL_QUOTECACHE_TTL_NEWSCACHE_TTL_FINANCECACHE_TTL_SECTORUSER_AGENT
Development
uv run pytest
uv run ruff check .
uv run black --check .
uv run mypy .Notes
a-stock-data currently publishes a Markdown Skill rather than a Python package. The adapter extracts
allowlisted Python definitions from SKILL.md and ignores examples/top-level calls.
mootdx is not installed by default because current mcp and mootdx releases have incompatible
httpx dependency pins. Quote/news/finance/sector tools run without it; K-line tools are registered
and fail with a clear dependency message until upstream publishes a compatible dependency set.
Some requested MCP tools, such as ETF components or board member lists, have no exact upstream helper today. They are registered and return structured status instead of adding new scrapers outside the adapter boundary.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
China A-share market data for research, backtesting and AI agents via MCP.
China A-share market data over MCP: 22 tools for quotes, K-line, financials, money flow, top-trader boards, sectors, macro, convertible bonds and factor screening. Five tools need no API key, so you can connect and try it immediately.
MCP server for real-time China A-share stock quotes, indices and market data.
China A-share data for AI agents: 57 read-only tools plus 6 tools for your own watchlist.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides 11 MCP tools for querying A-share market data, financial reports, stock screening, hot topics, self-selected stocks, and LOF arbitrage using natural language, powered by East Money / Miaoxiang APIs.MIT
- AlicenseBqualityDmaintenanceMCP server that wraps AKShare's 1000+ financial data functions, enabling LLMs to query Chinese stock, macro, futures, fund, bond, option, forex, and alternative data through standardized tools.143Apache 2.0
- AlicenseNot gradedqualityCmaintenanceProvides read-only access to Chinese A-share stock market data such as quotes, K-lines, financials, capital flows, news, and research reports via a stdio MCP server for DeepSeek Harness and other MCP clients.2GPL 3.0
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to access real-time quotes, K-line data, technical indicators, sector/futures/options data, and composite stock analysis across A-share, Hong Kong, US, and fund markets through MCP tools, prompts, and resources.198 npmISC