这是一个金融领域相关的mcp,本项目通过集成 Tushare API 和 Binance API 为语言模型(如Claude)提供全面的实时金融数据访问能力,支持股票、基金、债券、宏观经济指标、稳定币、虚拟货币等多维度金融数据分析。其中也包含了金融数据查询、财经新闻查询、国家统计局数据查询等
# Add to your Claude Code skills
git clone https://github.com/guangxiangdebizi/FinanceMCPGuides for using mcp servers skills like FinanceMCP.
Last scanned: 5/13/2026
{
"issues": [
{
"type": "npm-audit",
"message": "@modelcontextprotocol/sdk: Anthropic's MCP TypeScript SDK has a ReDoS vulnerability",
"severity": "high"
},
{
"type": "npm-audit",
"message": "body-parser: Vulnerability found",
"severity": "low"
},
{
"type": "npm-audit",
"message": "express: Vulnerability found",
"severity": "high"
},
{
"type": "npm-audit",
"message": "path-to-regexp: path-to-regexp vulnerable to Regular Expression Denial of Service via multiple route parameters",
"severity": "high"
},
{
"type": "npm-audit",
"message": "qs: qs's arrayLimit bypass in comma parsing allows denial of service",
"severity": "medium"
}
],
"status": "WARNING",
"scannedAt": "2026-05-13T06:48:12.051Z",
"semgrepRan": false,
"npmAuditRan": true,
"pipAuditRan": true
}FinanceMCP is an open-source mcp servers skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by guangxiangdebizi. 这是一个金融领域相关的mcp,本项目通过集成 Tushare API 和 Binance API 为语言模型(如Claude)提供全面的实时金融数据访问能力,支持股票、基金、债券、宏观经济指标、稳定币、虚拟货币等多维度金融数据分析。其中也包含了金融数据查询、财经新闻查询、国家统计局数据查询等. It has 651 GitHub stars.
FinanceMCP returned warnings in SkillsLLM's automated security scan. It has no critical vulnerabilities, but review the flagged issues in the Security Report section before adding it to your workflow.
Clone the repository with "git clone https://github.com/guangxiangdebizi/FinanceMCP" and add it to your Claude Code skills directory (see the Installation section above).
FinanceMCP is primarily written in TypeScript. It is open-source under guangxiangdebizi on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other MCP Servers skills you can browse and compare side by side. Open the MCP Servers category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh FinanceMCP against similar tools.
No comments yet. Be the first to share your thoughts!
Top skills in this category by stars
Requires a passing catalog security scan. Resolve the flagged issues and resubmit to enable featuring.
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM is an informational directory and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
[!IMPORTANT] v4.10.2 将 MCP SDK 升级至 1.30.0,修复依赖安全问题,并为 stdio 增加 MCP
2025-11-25协商回归测试和严格的 stdout JSON-RPC 隔离;HTTP 服务同时补充 Host 校验、代理加固、DELETE /mcp会话清理和统一版本元数据。现有 19 个 Tool 名称、参数及多数据源路由行为保持不变。
[!NOTE] 需要在 Trae、Cursor、Claude Code 和 Codex 之间共享模型 Prompt/KV-cache 路由及对话 lineage 时,可选启动独立的
finance-cache-gateway。它使用单独的进程、端口和配置;不修改现有 MCP Tool、stdio 或/mcp接口,不启用时现有用法完全不变。
FinanceMCP 已与 MarkiNote 进行项目联动与融合,形成面向金融研究、AI 分析与智能文档管理场景的一体化系统 FinNote。该项目已参加上海市大学生计算机应用能力大赛并获得二等奖。
🌐 在线体验:https://finvestai.top/
📝 MarkiNote:https://github.com/wink-wink-wink555/MarkiNote
在 FinNote 的整体架构中,FinanceMCP 作为核心的 金融数据与 MCP 工具服务层,基于 Node.js、Express 与 Model Context Protocol(MCP)SDK 构建。目前通过 19 个稳定的 MCP 工具,为 AI Agent 提供股票、基金、债券、宏观经济、财经新闻、技术指标以及多市场行情等金融数据能力,并支持 stdio 与 Streamable HTTP 两种接入方式。
MarkiNote 则作为上层 AI Agent 智能文档与知识管理系统,负责承载自然语言交互、AI 分析结果展示、Markdown 文档生成、编辑与长期知识沉淀。在 FinNote 场景中,MarkiNote 通过 HTTP / MCP 服务链路调用 FinanceMCP,使金融数据能力能够直接进入 AI Agent 的推理与文档工作流。
整体流程形成:
自然语言提问 → AI Agent 任务理解 → FinanceMCP 工具调用 → 多源金融数据获取 → AI 智能分析 → Markdown 文档生成 → 文档管理与知识沉淀
因此,FinanceMCP 不仅可以作为独立的金融数据 MCP Server 接入 Claude、Cursor、Codex 等 MCP Client 或 AI Agent,也可以作为 FinNote 等上层 AI 应用的金融数据基础设施,为智能投研、金融分析和文档型 Agent 提供统一、结构化、可调用且可追溯的数据能力。
| 能力 | 说明 | |
|---|---|---|
| 🔌 | 无侵入式扩展 | 保持现有 19 个 Tool 名称和参数,数据源选择由请求上下文完成 |
| 🧭 | 智能路由 | 同时支持 Tushare、Qveris、Binance 与公开新闻源 |
| 🔁 | 自动降级 | 首选来源未覆盖、超时、限流或不可用时按优先级继续尝试 |
| 🏷️ | 来源透明 | 每次返回都标注实际数据来源;发生降级时同时返回完整路由 |
| 🛡️ | 请求级隔离 | HTTP Key 通过 AsyncLocalStorage 隔离,日志统一脱敏 |
| 📈 | 多市场覆盖 | A 股、港股、美股、指数、基金、债券、期货、外汇、宏观与加密资产 |
| 🧮 | 技术指标引擎 | MACD、RSI、KDJ、BOLL、MA 自动扩展历史窗口后再计算 |
| 🚀 | 双传输模式 | 同时支持本地 stdio 与远程 Streamable HTTP |
flowchart LR
C[AI / MCP Client] -->|现有 19 个 Tools| R{FinanceMCP Router}
R -->|默认优先| T[Tushare]
R -->|可选扩展| Q[Qveris]
R -->|Crypto| B[Binance]
R -->|News / Time| L[公开源与本地计算]
Q -. 未覆盖 / 超时 / 限流 .-> T
T -. 不适用 .-> B
T & Q & B & L --> O[来源标注后的统一 MCP 结果]
X-Tushare-Token: YOUR_TUSHARE_TOKEN
X-Qveris-Api-Key: YOUR_QVERIS_API_KEY
X-Finance-Source-Priority: qveris,tushare,binance
默认优先级:
tushare,qveris,binance
路由行为:
X-Finance-Source-Priority 可按请求调整顺序;未知项忽略、重复项去重、遗漏项按默认顺序补齐。返回示例:
数据来源: Tushare
数据源路由: Qveris(接口未覆盖) → Tushare(成功)
原有工具结果……
[!NOTE] Qveris 是可选扩展。未提供
X-Qveris-Api-Key/QVERIS_API_KEY时不会调用 Qveris,也不会消耗 credits。接口契约参见 Qveris REST API。
tools/list 会根据当前 MCP 请求实际携带的凭证裁剪工具目录:只传 Qveris Key 时只展示 Qveris adapter 覆盖的现有 Tools,只传 Tushare Token 时只展示 Tushare 覆盖的 Tools;同时传入两者时展示两者的并集。没有凭证时仅展示公共数据源与本地工具。tools/call 也执行相同校验,避免 AI 调用到当前请求无法使用的数据源。
| 数据源 | 是否需要凭证 | 官方获取入口 | FinanceMCP 配置 |
|---|---|---|---|
| Tushare Pro | 需要 Token | 注册账号 · 获取 Token | stdio:TUSHARE_TOKEN;HTTP:X-Tushare-Token |
| Qveris | 需要 API Key | Dashboard / API Keys · 官方文档 | stdio:QVERIS_API_KEY;HTTP:X-Qveris-Api-Key |
| Binance Public API | 不需要 | Spot REST API 文档 | 无需配置;加密资产行情自动使用公开接口 |
| 百度新闻 | 不需要 | 无需申请 API | 无需配置;finance_news 使用公开新闻检索 |
| 本地系统时钟 | 不需要 | 无 | 无需配置;仅供 current_timestamp 使用 |
TUSHARE_TOKEN,或在远程 MCP 请求中通过 X-Tushare-Token 传递。[!TIP] 🎓 Tushare 高校学生认证可免费获得 2000 积分。 当前官方流程要求完善学校和个人资料、加入高校用户群,并向管理员提交学生证或学信网截图及 Tushare ID。入口与最新步骤见 学生免费积分获取。Tushare 服务协议同时说明,高校学生和教师完成身份确认后分别可获得 2000 / 5000 积分权限。不同接口的积分门槛与频次不同,请以对应接口文档和积分权限页面为准。
QVERIS_API_KEY,或在远程 MCP 请求中通过独立的 X-Qveris-Api-Key 传递。NONE 的公开 K 线接口,不需要 Binance 账号、API Key 或交易权限。[!WARNING] 不要把真实 Token / API Key 写进 README、MCP 配置示例或提交到 Git。推荐使用
.env、客户端环境变量或每次 HTTP 请求的 Header。
npx -y finance-mcp
Claude Desktop、Cursor 等本地 MCP 客户端配置:
{
"mcpServers": {
"finance-mcp": {
"command": "npx",
"args": ["-y", "finance-mcp"],
"env": {
"TUSHARE_TOKEN": "YOUR_TUSHARE_TOKEN",
"QVERIS_API_KEY": "YOUR_QVERIS_API_KEY",
"FINANCE_SOURCE_PRIORITY": "tushare,qveris,binance"
}
}
}
}
在线 Endpoint:https://finvestai.top/mcp
{
"mcpServers": {
"finance-mcp": {
"type": "streamableHttp",
"url": "https://finvestai.top/mcp",
"timeout": 600,
"headers": {
"X-Tushare-Token": "YOUR_TUSHARE_TOKEN",
"X-Qveris-Api-Key": "YOUR_QVERIS_API_KEY",
"X-Finance-Source-Priority": "qveris,tushare,binance"
}
}
}
}
两个 Key 都是可选的,可以只传其中一个。Authorization: Bearer ... 与 X-Api-Key 继续兼容为 Tushare Token;Qveris 使用独立的 X-Qveris-Api-Key。
| 变量 | 默认值 | 说明 |
|---|---|---|
TUSHARE_TOKEN |
空 | Tushare 凭证 |
QVERIS_API_KEY |
空 | Qveris 凭证 |
QVERIS_BASE_URL |
https://qveris.ai/api/v1 |
Qveris REST API 地址 |
FINANCE_SOURCE_PRIORITY |
tushare,qveris,binance |
stdio 或服务端默认优先级 |
PORT |
3000 |
HTTP 服务端口 |
MCP_HTTP_HOST |
127.0.0.1 |
HTTP 监听地址;容器部署使用 0.0.0.0 |
MCP_ALLOWED_HOSTS |
回环地址白名单 | 逗号分隔的 Host 主机名白名单(不含端口);非回环部署建议显式配置 |
上面的在线 Endpoint 仍然是默认选择。如果你需要一个独立的 /mcp 地址,仓库根目录的
Dockerfile 可以直接部署:启动命令是 node build/httpServer.js,监听 0.0.0.0,
从环境变量读取 PORT,并提供 GET /health。
docs/deploy-dockhold.md 以 Dockhold
为例(只是其中一种托管方式,并非关联或推荐平台),说明 HTTPS 端点、TUSHARE_TOKEN
与 QVERIS_API_KEY 的存放位置,以及为什么在公网可访问时强烈建议设置
MCP_ALLOWED_HOSTS。
| Tool | 功能 | 数据源 / 接口商 |
|---|---|---|
current_timestamp |
UTC+8 当前时间戳 | 本地系统时钟 |
finance_news |
财经新闻关键词检索 | 百度新闻 · Qveris* |
stock_data |
多市场历史行情与技术指标 | Tushare Pro · Qveris* · Binance Public API(加密资产) |
stock_data_minutes |
A 股与加密资产分钟 K 线 | Tushare Pro · Qveris* · Binance Public API(加密资产) |
index_data |
指数行情、基本信息与估值 | Tushare Pro · Qveris* |
macro_econ |
GDP、CPI、PPI、PMI、Shibor、LPR、Libor、Hibor 等 | Tushare Pro · Qveris* |
company_performance |
A 股公司、财务、分红、股东与估值数据 | Tushare Pro · Qveris* |
company_performance_hk |
港股利润表、资产负债表与现金流量表 | Tushare Pro · Qveris* |
company_performance_us |
美股财务报表与指标 | Tushare Pro · Qveris* |
fund_data |
基金净值、持仓、分红与基础资料 | Tushare Pro |
fund_manager_by_name |
基金经理及管理基金查询 | Tushare Pro |
convertible_bond |
可转债全生命周期数据 | Tushare Pro |
block_trade |
大宗交易明细 | Tushare Pro |
money_flow |
个股、大盘、行业与互联互通资金流 | Tushare Pro |
margin_trade |
融资融券与转融券数据 | Tushare Pro |
csi_index_constituents |
CSI 指数表现、成分权重与财务摘要 | Tushare Pro · Qveris* |
| `dragon_ti |