pypi mh-fin-mcpsseupdated 5mo ago
MCP Server for China A-Share quantitative market data, powered by MetricHub Quant.
What can you do with MetricHub Quant A股量化数据?
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
Install
Add MetricHub Quant A股量化数据 to your client. Pick the one you use.
{
"servers": {
"mh-fin-mcp": {
"type": "sse",
"url": "https://api.quant.metrichub.app/mcp/sse"
}
}
}Add to `.vscode/mcp.json` in your workspace.
claude mcp add mh-fin-mcp -- uvx mh-fin-mcpcodex mcp add mh-fin-mcp -- uvx mh-fin-mcpamp mcp add mh-fin-mcp -- uvx mh-fin-mcp{
"mcpServers": {
"mh-fin-mcp": {
"command": "uvx",
"args": [
"mh-fin-mcp"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"mh-fin-mcp": {
"command": "uvx",
"args": [
"mh-fin-mcp"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
{
"mcpServers": {
"mh-fin-mcp": {
"command": "uvx",
"args": [
"mh-fin-mcp"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"mh-fin-mcp": {
"command": "uvx",
"args": [
"mh-fin-mcp"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"mh-fin-mcp": {
"command": "uvx",
"args": [
"mh-fin-mcp"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"mh-fin-mcp": {
"type": "local",
"command": "uvx",
"args": [
"mh-fin-mcp"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"mh-fin-mcp": {
"command": {
"path": "uvx",
"args": [
"mh-fin-mcp"
]
}
}
}
}Add to your Zed `settings.json`.
uvx mh-fin-mcpRun `goose configure`, choose **Add Extension → Command-line Extension**, and paste this command.
9 tools
MetricHub Quant A股量化数据 exposes 9 tools to a connected agent.
- 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.)
Score
62 / 100
Good
- Documentation22/25
- Maintenance13/25
- Trust6/20
- Capability6/15
- Install experience15/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 163 days ago
- Has a release history
- Repository is not archived
- No licence detected
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 9 tool(s) documented
- Provides prompt templates
- Provides resources
- 18 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint — no local install
Version history
| Versions | Published |
|---|---|
| 0.1.1Latest | Mar 21, 2026 |