Skip to main content

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

Metadata

Release files for mh-fin-mcp 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mh-fin-mcp 0.1.1
File Size Uploaded Provenance Actions
mh_fin_mcp-0.1.1.tar.gz 6.6 kB Without provenance Details for mh_fin_mcp-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mh-fin-mcp 0.1.1
File Interpreter ABI Platform Actions
mh_fin_mcp-0.1.1-py3-none-any.whl Python 3 none any Details for mh_fin_mcp-0.1.1-py3-none-any.whl

Total release size: 12.6 kB

Release files / mh_fin_mcp-0.1.1.tar.gz

Download URL mh_fin_mcp-0.1.1.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
4844ec035ad688391d29759b777f1fa8c97dacaddb841a16f718df9ba6962e0b
BLAKE2b-256 checksum
How to use checksums
c8a89cc7908f669fdda092afea6782b7edee974a5e886544929abb9652d6c1a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Release files / mh_fin_mcp-0.1.1-py3-none-any.whl

Download URL mh_fin_mcp-0.1.1-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5755ef8a1e0fe9dc543079ef99c4ea589022bb2c9e3a20d1260ff9d66619b732
BLAKE2b-256 checksum
How to use checksums
d995ec89d87910ac6bc44982a16dc0989dfa288e2ff2577a7bf8dc3716258152
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Security for mh-fin-mcp 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page