astock-mcp-server
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.
astock-mcp-server
China A-share quant toolkit exposed as Model Context Protocol tools. Zero auth, public data sources, standard public indicators.
Tools
Tool | Input | Returns |
|
| realtime snapshot: price/open/high/low/change%/volume/PE |
|
| 60-point technical score + signal list (MA position, Bollinger band, RSI, KDJ, MACD, trend) |
|
| multi-indicator resonance: bullish/bearish count, strength stars, per-indicator detail |
|
| total return, buy-and-hold, annualized, Sharpe, max drawdown, win rate, trade count |
Available backtest strategies
ma_cross · bollinger_reversal · kdj_overtrade · rsi_meanreversion · macd_cross · fusion_ma_bollinger · fusion_boll_kdj · fusion_triple
Related MCP server: A-Stock MCP Server
Code format
Shanghai: 600519 (6xxxxx) · Shenzhen: 000001 / 300750 · auto-detected. Do not prefix with sh/sz.
Data sources
Realtime quotes: Tencent
qt.gtimg.cnDaily klines (qfq): EastMoney
push2his.eastmoney.com(Tencent kline endpoint used as primary, EastMoney fallback on WAF throttling)Rate limiting + TTL caching + exponential-backoff retry built in, safe for concurrent MCP clients
All indicators are standard public formulas (MA/RSI/MACD/KDJ/Bollinger). No proprietary logic is included.
Install
pip install astock-mcp-serverClaude Desktop / any MCP client config
{
"mcpServers": {
"astock-quant": {
"command": "python",
"args": ["-m", "astock_mcp_server_runner"]
}
}
}Or run directly after cloning:
pip install mcp pandas numpy
python server.pyExample
{"tool": "stock_backtest", "args": {"code": "600519", "strategy": "rsi_meanreversion", "days": 500}}{"总收益": "25.49%", "买入持有": "3.83%", "年化": "12.13%", "夏普": 0.86, "回撤": "-9.71%", "胜率": "52%", "交易": "17次"}Disclaimer
Historical simulation and technical indicators for reference only. Not investment advice.
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 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.
Access real-time and historical market data for China A-shares and Hong Kong stocks, along with ne…
Provide access to Chinese stock market data including historical prices, real-time data, news, and…
China A-share market data for research, backtesting and AI agents via MCP.
Related MCP Servers
- AlicenseAqualityCmaintenanceProvides real-time stock market data and analysis from Chinese markets through 34 MCP tools, including K-line charts, technical indicators, fundamental analysis, financial metrics, and market insights without requiring authentication or API tokens.3456MIT
- AlicenseNot gradedqualityDmaintenanceProvides free Chinese A-share stock data including real-time quotes, historical K-lines, market scanning, and multi-factor stock screening via BaoStock and Sina Finance APIs.MIT

ApocData MCP Serverofficial
AlicenseNot gradedqualityCmaintenanceProvides 46 no-authentication A-share (Chinese stock market) data tools covering quotes, financials, capital flows, sectors, announcements, macro data, and more, callable from any MCP client without API keys.123 npm2Apache 2.0- AlicenseAqualityBmaintenanceExposes 16 Chinese A-share financial data tools covering quotes, announcements, dragon-tiger lists, margin financing, share unlocks, IPO calendars, and valuation anchors, all through public interfaces with no API key, login, or configuration. Every call returns a uniform JSON envelope carrying source, timestamp, and warning metadata rather than fabricated numbers.1655 PyPI1MIT