Skip to main content
Glama

mh-fin-mcp

中文文档

基于 MetricHub Quant 的中国 A 股量化市场数据 MCP 服务器。

功能特性

  • 市场概览:主要指数、涨停/跌停统计、市场广度、北向资金、情绪

  • 行业轮动:申万行业排名,含上涨/下跌比例和涨停数量

  • 板块热点:概念板块分析,含领涨股票

  • 股票数据:5000+ 只 A 股的完整每日数据(OHLCV、PE、PB、市值、资金流向)

  • 股票搜索:按名称或代码搜索

  • 涨停分析:涨停股票的 13 因子量化评分

  • 因子 IC:因子有效性历史

  • 风险预警:股东减持、业绩预警

Related MCP server: a-share-mcp

快速开始

1. 获取 API Key

在 quant.metrichub.app 注册,然后前往 API Key 管理 创建密钥。

2. 选择集成方式

方式 A:远程服务器(推荐,零安装)

无需安装。只需将 URL 添加到配置中:

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"
      }
    }
  }
}

方式 B:本地安装(通过 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. 重启 Claude 以激活

可用工具

工具

描述

get_trade_dates

列出可用交易日

get_market_overview

市场概览:指数、广度、情绪、北向资金

get_industry_ranking

行业轮动排名(申万行业)

get_sector_hotspots

概念板块热点,含领涨股票

get_stock_list

5000+ 只 A 股的分页股票数据

search_stock

按名称或代码搜索股票

get_limitup_analysis

涨停分析,含 13 个量化因子

get_factor_ic

因子 IC 有效性历史

get_risk_alerts

风险预警(股东减持等)

数据

  • 覆盖全部 5000+ 只 A 股

  • 每个工作日(周一至周五)17:30(北京时间)后更新

  • 涨停评分包含 13 个量化因子

  • 仅提供数据,不构成投资建议

许可证

MIT

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    F
    maintenance
    Provides access to Chinese stock market data through the QMT platform, enabling users to query stock details, download historical market data, and analyze stock performance for A-share securities.
    21
    Apache 2.0
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables users to query Chinese A-share stock data, including stock basics, historical prices, financial reports, and macroeconomic indicators.
    1
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables querying Chinese A-share and index financial data, including real-time quotes, historical bars, and index snapshots, with built-in fallback for unstable endpoints.
    MIT
  • A
    license
    B
    quality
    C
    maintenance
    Provides A-share (Chinese stock market) quantitative analysis through tools for stock screening, northbound capital flow tracking, dragon-tiger list analysis, margin trading, sector analysis, technical indicators, IPO info, and limit-up/down statistics using akshare data.
    11
    2
    MIT