MetricHub Quant - A股量化数据

China A-Share quantitative data: 5000+ stocks, 13 factors, daily market & limit-up analysis.

OtherPythonv0.1.1

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

ToolDescription
get_trade_datesList available trade dates
get_market_overviewMarket overview: indices, breadth, sentiment, northbound flow
get_industry_rankingIndustry rotation ranking (Shenwan industries)
get_sector_hotspotsConcept sector hotspots with leading stocks
get_stock_listPaginated stock data for 5000+ A-shares
search_stockSearch stocks by name or code
get_limitup_analysisLimit-up analysis with 13 quantitative factors
get_factor_icFactor IC effectiveness history
get_risk_alertsRisk 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

Installation

Source-derived launch command. Check the maintainer’s required arguments and credentials before running:

bash
uvx mh-fin-mcp

Set up in your AI client

Merge this template into ~/Library/Application Support/Claude/claude_desktop_config.json. Keep existing servers. Add any arguments, credentials, and permissions required by the maintainer; this template has not been install-tested.

json
{
  "mcpServers": {
    "io-github-clk1st-mh-fin-mcp": {
      "command": "uvx",
      "args": [
        "mh-fin-mcp"
      ]
    }
  }
}

Restart Claude Desktop completely for changes to take effect. Confirm the server appears connected in the client’s tool list, then try a read-only example from its documentation.

Claude Desktop setup reference

Package

mh-fin-mcppypi

Compatible MCP Clients

MetricHub Quant - A股量化数据 works with any MCP-compatible client. Copy the config snippet from the Configuration section above and add it to the file shown for your client, then restart the application.

  • Claude Desktop~/Library/Application Support/Claude/claude_desktop_config.jsonRestart Claude Desktop completely for changes to take effect.
  • Cursor~/.cursor/mcp.jsonRestart Cursor for changes to take effect.
  • VS Code.vscode/mcp.jsonReload VS Code window for changes to take effect.
  • Windsurf~/.codeium/windsurf/mcp_config.jsonRestart Windsurf for changes to take effect.
  • Claude Code.mcp.jsonSave at the project root, then start Claude Code in that project and review the MCP server approval prompt. Keep real credentials out of shared files.

Learn More