mh-fin-mcp
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-mcpClaude 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 以激活
可用工具
工具 | 描述 |
| 列出可用交易日 |
| 市场概览:指数、广度、情绪、北向资金 |
| 行业轮动排名(申万行业) |
| 概念板块热点,含领涨股票 |
| 5000+ 只 A 股的分页股票数据 |
| 按名称或代码搜索股票 |
| 涨停分析,含 13 个量化因子 |
| 因子 IC 有效性历史 |
| 风险预警(股东减持等) |
数据
覆盖全部 5000+ 只 A 股
每个工作日(周一至周五)17:30(北京时间)后更新
涨停评分包含 13 个量化因子
仅提供数据,不构成投资建议
许可证
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
China A-share market data over MCP: 22 tools for quotes, K-line, financials, money flow, top-trader boards, sectors, macro, convertible bonds and factor screening. Five tools need no API key, so you can connect and try it immediately.
China A-share market data for research, backtesting and AI agents via MCP.
Access real-time and historical market data for China A-shares and Hong Kong stocks, along with ne…
Provide access to Chinese stock market data including historical prices, real-time data, news, and…
Related MCP Servers
- AlicenseNot gradedqualityFmaintenanceProvides 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.21Apache 2.0
- AlicenseNot gradedqualityDmaintenanceEnables users to query Chinese A-share stock data, including stock basics, historical prices, financial reports, and macroeconomic indicators.1MIT
- AlicenseNot gradedqualityCmaintenanceEnables 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
- AlicenseBqualityCmaintenanceProvides 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.112MIT