MCP Server for China A-Share quantitative market data
Project description
mh-fin-mcp
MCP Server for China A-Share quantitative market data, powered by MetricHub Quant.
Features
- Market Overview: Major indices, limit-up/down stats, breadth, northbound flow, sentiment
- Industry Rotation: Shenwan industry ranking with up/down ratio and limit-up counts
- Sector Hotspots: Concept sector analysis with leading stocks
- Stock Data: Full daily data for 5000+ A-shares (OHLCV, PE, PB, market cap, money flow)
- Stock Search: Search by name or code
- Limit-Up Analysis: 13-factor quantitative scoring for limit-up stocks
- Factor IC: Factor effectiveness history
- Risk Alerts: Shareholder reduction, performance warnings
Quick Start
1. Get API Key
Register at quant.metrichub.app, then go to API Key management to create a key.
2. Choose your integration method
Option A: Remote Server (Recommended, zero install)
No installation needed. Just add the URL to your config:
Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"mh-fin": {
"url": "https://api.quant.metrichub.app/mcp/sse",
"headers": {
"X-API-Key": "mhfk_your_key_here"
}
}
}
}
Claude Code (.claude/settings.json):
{
"mcpServers": {
"mh-fin": {
"url": "https://api.quant.metrichub.app/mcp/sse",
"headers": {
"X-API-Key": "mhfk_your_key_here"
}
}
}
}
Option B: Local Install (via PyPI)
pip install mh-fin-mcp
Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"mh-fin": {
"command": "uvx",
"args": ["mh-fin-mcp"],
"env": {
"MH_FIN_API_KEY": "mhfk_your_key_here"
}
}
}
}
Claude Code (.claude/settings.json):
{
"mcpServers": {
"mh-fin": {
"command": "uvx",
"args": ["mh-fin-mcp"],
"env": {
"MH_FIN_API_KEY": "mhfk_your_key_here"
}
}
}
}
3. Restart Claude to activate
Available Tools
| Tool | Description |
|---|---|
get_trade_dates |
List available trade dates |
get_market_overview |
Market overview: indices, breadth, sentiment, northbound flow |
get_industry_ranking |
Industry rotation ranking (Shenwan industries) |
get_sector_hotspots |
Concept sector hotspots with leading stocks |
get_stock_list |
Paginated stock data for 5000+ A-shares |
search_stock |
Search stocks by name or code |
get_limitup_analysis |
Limit-up analysis with 13 quantitative factors |
get_factor_ic |
Factor IC effectiveness history |
get_risk_alerts |
Risk alerts (shareholder reduction, etc.) |
Data
- Covers all 5000+ A-shares
- Updated daily after 17:30 CST (Mon-Fri)
- 13 quantitative factors for limit-up scoring
- Data only, no investment advice
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mh_fin_mcp-0.1.1.tar.gz.
File metadata
- Download URL: mh_fin_mcp-0.1.1.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4844ec035ad688391d29759b777f1fa8c97dacaddb841a16f718df9ba6962e0b
|
|
| MD5 |
6bbe64ed8947ae7a3186ec6c82f0e900
|
|
| BLAKE2b-256 |
c8a89cc7908f669fdda092afea6782b7edee974a5e886544929abb9652d6c1a2
|
File details
Details for the file mh_fin_mcp-0.1.1-py3-none-any.whl.
File metadata
- Download URL: mh_fin_mcp-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5755ef8a1e0fe9dc543079ef99c4ea589022bb2c9e3a20d1260ff9d66619b732
|
|
| MD5 |
96f6173af74124997cc9d0027279a99b
|
|
| BLAKE2b-256 |
d995ec89d87910ac6bc44982a16dc0989dfa288e2ff2577a7bf8dc3716258152
|