MetricHub Quant - A股量化数据

io.github.clk1st由 GitHub 账号 clk1st 发布v0.1.1更新于 Oct 24, 2026

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

已验证SSE可网页运行金融数据与分析

概览

AI 生成的概览

MetricHub Quant 为助手提供中国 A 股量化行情数据:指数、行业轮动、5000+ 只个股日线、涨停因子评分与风险提示。

可以做什么
  • 查询可用交易日,获取每日市场概览:指数、涨跌家数、情绪、北向资金
  • 按申万行业做轮动排名,并列出概念板块热点及龙头股
  • 按名称或代码搜索个股,分页获取 5000+ 只 A 股的日线数据(OHLCV、PE、PB、市值、资金流)
  • 用 13 个量化因子对涨停股打分,并查看因子 IC 有效性历史
  • 获取股东减持、业绩预警等风险提示
适用场景
适合让助手回答 A 股市场问题、筛选或查询个股、跟踪行业与概念板块轮动,或查看涨停与因子数据,而无需自建数据管道。
运行要求
需要 MetricHub Quant 的 API Key(在服务商网站注册后创建)。远程方式:连接托管的 SSE 端点并携带 X-API-Key 请求头。本地方式:从 PyPI 安装 mh-fin-mcp 包(Python,可用 uvx 运行)并设置 MH_FIN_API_KEY。需要能访问服务商 API 的网络。
安装前请注意
需要密钥 API Key,通过 X-API-Key 请求头或 MH_FIN_API_KEY 环境变量传递,请勿写入共享配置。查询与个股检索会发送至第三方 MetricHub Quant 服务。数据仅供参考,服务商声明不构成投资建议,使用前请自行核实。

安装

在 SourceWeft 中

  1. 打开 控制台中的 MetricHub Quant - A股量化数据,将其添加到工作区。
  2. 连接 所需的 凭据。它们会被私密存储,绝不会在公开页面上展示。
  3. 为需要使用其工具的对话启用该服务。

Web executable,通过 SSE。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.clk1st%2Fmh-fin-mcp/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。 客户端会在首次连接时完成 OAuth 登录。

{
  "mcpServers": {
    "metrichub-quant-a": {
      "type": "sse",
      "url": "https://api.quant.metrichub.app/mcp/sse"
    }
  }
}

README

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):

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):

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)
bash
pip install mh-fin-mcp

Claude Desktop (claude_desktop_config.json):

json
{  "mcpServers": {    "mh-fin": {      "command": "uvx",      "args": ["mh-fin-mcp"],      "env": {        "MH_FIN_API_KEY": "mhfk_your_key_here"      }    }  }}

Claude Code (.claude/settings.json):

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

来源:README.md,提交 d55affb

工具

0
该服务器需要登录,因此 SourceWeft 无法在没有账号的情况下读取其工具,也未收录。已连接账号所能看到的内容可能因账号及其权限而异。

版本历史

1
  1. v0.1.1最新Sep 16, 2026

评分

已满足适用检查项的 75%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。