CCM
/MCP
SkillsMCPMarketplacesDigestToolsAdvertise

This week in Claude

Every Monday: Claude Code, Agent SDK, MCP, and the Anthropic platform moves worth your time.

Skills by Category
Frontend DevelopmentBackend & APIsTesting & QASecurityDevOps & CI/CDGit & Pull RequestsDocumentationCode Review & QualityAI & Agent BuildingSkill Development
MCP Servers by Category
Sales & MarketingWeb & Browser AutomationDatabasesAI & LLM ToolsCloud & InfrastructureCommunication & MessagingDeveloper ToolsDesign & CreativeDocuments & KnowledgeSearch & Web Crawling
Marketplaces by Category
AI Agents & OrchestrationLLM IntegrationDevelopment ToolsFrontend & UIBackend & APIsDatabasesTesting & Code QualityDevOps & CloudSecurity & ComplianceGit & Version Control

Claude Code Marketplaces

Discover Claude Code plugins, extensions, and tools. Automatically updated directory of Anthropic Claude AI marketplaces with development tools, productivity plugins, and integrations.

Resources

  • Browse Skills
  • Browse MCP Servers
  • Browse Marketplaces
  • Skill index
  • MCP index
  • Marketplace index
  • Plugins Reference

Community

  • About
  • Tools
  • Feedback
  • Privacy Policy
  • Advertise

Built for the Claude Code community with Claude Code by mertbuilds.com

Independent project, not affiliated with Anthropic
guangxiangdebizi avatar

FinanceMCP

guangxiangdebizi/financemcp
574
Summary

FinanceMCP provides Claude and other AI assistants with real-time financial data and technical analysis through an MCP server that integrates the Tushare API. It offers 14 tools covering stock data, technical indicators (MACD, RSI, KDJ, BOLL, MA), macroeconomic data, company financials, and financial news across 10 major markets including A-shares, US stocks, Hong Kong stocks, cryptocurrencies, futures, and bonds. The server solves the problem of integrating comprehensive financial market data into AI workflows while handling intelligent data preprocessing, parameter validation, and multi-market coverage.

CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
ego lite browserego lite browser
ego lite browser
Fastest browser for AI agents to run web automation tasks, always free.
Download Free life-time →
Give your AI the whole web as clean markdownGive your AI the whole web as clean markdown
Give your AI the whole web as clean markdown
Integrate web data into your AI product. One API to scrape website & brand data.
Get API Key Now →
belt - the only tool your agent needs
belt - the only tool your agent needs
belt cli automatically finds the best tools and skills for your agent. image, video, music, tts...
one prompt install →
AppSignal
AppSignal
Monitor with ease. Code with confidence.
Start Free Trial →
Agent, connect blockchain
Agent, connect blockchain
Connect your Claude agent to live crypto prices and trading routes via 1inch
Get the MCP →
inference shell
inference shell
create and run specialised agents in minutes
build now →
CodeHealth MCP ServerCodeHealth MCP Server
CodeHealth MCP Server
Protect your code quality, stop the AI slop.
Try For Free →
CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
ego lite browserego lite browser
ego lite browser
Fastest browser for AI agents to run web automation tasks, always free.
Download Free life-time →
Give your AI the whole web as clean markdownGive your AI the whole web as clean markdown
Give your AI the whole web as clean markdown
Integrate web data into your AI product. One API to scrape website & brand data.
Get API Key Now →
belt - the only tool your agent needs
belt - the only tool your agent needs
belt cli automatically finds the best tools and skills for your agent. image, video, music, tts...
one prompt install →
AppSignal
AppSignal
Monitor with ease. Code with confidence.
Start Free Trial →
Agent, connect blockchain
Agent, connect blockchain
Connect your Claude agent to live crypto prices and trading routes via 1inch
Get the MCP →
inference shell
inference shell
create and run specialised agents in minutes
build now →
CodeHealth MCP ServerCodeHealth MCP Server
CodeHealth MCP Server
Protect your code quality, stop the AI slop.
Try For Free →
FinanceMCP Logo

FinanceMCP Synapse

为 AI Agent 提供统一、可路由、可追溯的多市场金融数据

19 个稳定 MCP Tools · Tushare / Qveris / Binance · stdio + Streamable HTTP

npm version npm downloads GitHub release GitHub stars MIT license Node.js 20+

FinanceMCP rank on MCP Toplist FinanceMCP on Smithery

快速开始 · 数据源路由 · API 获取 · Tools · 安全 · Star 趋势 · English

[!WARNING] 服务状态:公网托管服务暂时停止。 原公网域名已经到期,当前不提供官方在线体验或托管 /mcp Endpoint;后续可能更换域名,恢复时间与新地址将通过本仓库公告。npm 包、本地 stdio 使用和自行部署不受影响。

[!IMPORTANT] v4.11.2 加固 Twingly 新闻路由的参数校验、请求大小限制、数据源回退和动态 Tool Schema,并补充敏感请求头脱敏。现有 19 个 Tool 名称与主要调用方式保持不变。

[!NOTE] 需要在 Trae、Cursor、Claude Code 和 Codex 之间共享模型 Prompt/KV-cache 路由及对话 lineage 时,可选启动独立的 finance-cache-gateway。它使用单独的进程、端口和配置;不修改现有 MCP Tool、stdio 或 /mcp 接口,不启用时现有用法完全不变。

🔗 项目联动:FinNote 智能金融文档系统

FinanceMCP 已与 MarkiNote 进行项目联动与融合,形成面向金融研究、AI 分析与智能文档管理场景的一体化系统 FinNote。该项目已参加上海市大学生计算机应用能力大赛并获得二等奖。

🌐 在线体验:暂时停止,后续可能更换域名 📝 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 -->|全球新闻| G[Twingly]
    R -->|可选扩展| Q[Qveris]
    R -->|Crypto| B[Binance]
    R -->|News / Time| L[公开源与本地计算]
    Q -. 未覆盖 / 超时 / 限流 .-> T
    T -. 不适用 .-> B
    T & G & Q & B & L --> O[来源标注后的统一 MCP 结果]

HTTP 请求头

X-Tushare-Token: YOUR_TUSHARE_TOKEN
X-Qveris-Api-Key: YOUR_QVERIS_API_KEY
X-Twingly-Api-Key: YOUR_TWINGLY_API_KEY
X-Finance-Source-Priority: twingly,qveris,tushare,binance

默认优先级:

tushare,twingly,qveris,binance

路由行为:

  1. 只传一种凭证时,优先使用该凭证对应的数据源。
  2. 同时传入多种凭证时,默认 Tushare 优先;新闻工具随后尝试 Twingly,再尝试 Qveris 与公共源。
  3. X-Finance-Source-Priority 可按请求调整顺序;未知项忽略、重复项去重、遗漏项按默认顺序补齐。
  4. 首选数据源接口未覆盖或调用失败时自动降级;正常空结果不会触发重复请求。
  5. Qveris 内部执行 Discover → Inspect → Probe → Call,每次 MCP 请求最多执行一次可能计费的 Call。

返回示例:

数据来源: Tushare
数据源路由: Qveris(接口未覆盖) → Tushare(成功)

原有工具结果……

[!NOTE] Qveris 是可选扩展。未提供 X-Qveris-Api-Key / QVERIS_API_KEY 时不会调用 Qveris,也不会消耗 credits。接口契约参见 Qveris REST API。

[!NOTE] Twingly 是可选的全球新闻源。未提供 X-Twingly-Api-Key / TWINGLY_API_KEY 时不会调用。FinanceMCP 只返回标题、来源、时间、文章与站点标识、URL、语言/地区、栏目和去重元数据,不返回或持久化文章全文。

按凭证动态显示 Tools

tools/list 会根据当前 MCP 请求实际携带的凭证裁剪工具目录:只传 Twingly Key 时展示两个现有新闻 Tools,只传 Qveris Key 时只展示 Qveris adapter 覆盖的现有 Tools,只传 Tushare Token 时只展示 Tushare 覆盖的 Tools;同时传入多种凭证时展示并集。没有凭证时仅展示公共数据源与本地工具。tools/call 也执行相同校验,避免 AI 调用到当前请求无法使用的数据源。

🔑 数据源与 API 获取

数据源是否需要凭证官方获取入口FinanceMCP 配置
Tushare Pro需要 Token注册账号 · 获取 Tokenstdio:TUSHARE_TOKEN;HTTP:X-Tushare-Token
Qveris需要 API KeyDashboard / API Keys · 官方文档stdio:QVERIS_API_KEY;HTTP:X-Qveris-Api-Key
Twingly News Search需要 API KeyDashboard / API Key · News APIstdio:TWINGLY_API_KEY;HTTP:X-Twingly-Api-Key
Binance Public API不需要Spot REST API 文档无需配置;加密资产行情自动使用公开接口
百度新闻不需要无需申请 API无需配置;finance_news 使用公开新闻检索
本地系统时钟不需要无无需配置;仅供 current_timestamp 使用

Tushare Token

  1. 在 Tushare 注册并登录。
  2. 进入 个人中心 → 账号与 TOKEN,复制 Token;完整步骤见 官方 Token 指南。
  3. 将 Token 写入本地 TUSHARE_TOKEN,或在远程 MCP 请求中通过 X-Tushare-Token 传递。

[!TIP] 🎓 Tushare 高校学生认证可免费获得 2000 积分。 当前官方流程要求完善学校和个人资料、加入高校用户群,并向管理员提交学生证或学信网截图及 Tushare ID。入口与最新步骤见 学生免费积分获取。Tushare 服务协议同时说明,高校学生和教师完成身份确认后分别可获得 2000 / 5000 积分权限。不同接口的积分门槛与频次不同,请以对应接口文档和积分权限页面为准。

Qveris API Key

  1. 登录 Qveris,打开 Dashboard / API Keys。
  2. 创建并复制 API Key。Qveris 当前为新账号提供 1000 credits;Discover、Inspect 免费,实际 Call 可能按能力计费。
  3. 将 Key 写入本地 QVERIS_API_KEY,或在远程 MCP 请求中通过独立的 X-Qveris-Api-Key 传递。

Twingly API Key

  1. 登录 Twingly Dashboard,从右上角复制 API Key 并确认剩余额度。
  2. 将 Key 写入本地 TWINGLY_API_KEY,或在远程 MCP 请求中通过独立的 X-Twingly-Api-Key 传递。
  3. Twingly 仅作为 finance_news 与 hot_news_7x24 的可选上游;认证失败、限流、服务异常或无匹配结果时按配置自动回退。调用方参数校验失败不会回退到语义不同的新闻源。
  4. finance_news 默认把空格分隔的内容作为多个必含词;需要精确短语时使用双引号,例如 "Federal Reserve" inflation。Twingly 最多接受 250 个组合词项,请求正文最多 16 KiB(按 UTF-8 字节计);超出任一限制都会在发送上游请求前明确报错。
  5. Twingly 单次最多返回 250 条新闻。tools/list 在 Twingly 是当前首选新闻源时会把 hot_news_7x24.limit 的 schema 上限设为 250;其他数据源可继续公布自身上限。

无 Key 数据源

  • Binance:FinanceMCP 当前只调用安全类型为 NONE 的公开 K 线接口,不需要 Binance 账号、API Key 或交易权限。
  • 百度新闻:使用公开新闻搜索,不需要开发者凭证;若网络或上游检索不可用,可按配置的优先级尝试 Qveris 新闻能力。

[!WARNING] 不要把真实 Token / API Key 写进 README、MCP 配置示例或提交到 Git。推荐使用 .env、客户端环境变量或每次 HTTP 请求的 Header。

🚀 快速开始

npm / stdio

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",
        "TWINGLY_API_KEY": "YOUR_TWINGLY_API_KEY",
        "FINANCE_SOURCE_PRIORITY": "tushare,twingly,qveris,binance"
      }
    }
  }
}

Streamable HTTP

公网托管 Endpoint 当前暂停。新域名确认前,请使用上面的本地 stdio 配置,或自行部署 Streamable HTTP 服务:

{
  "mcpServers": {
    "finance-mcp": {
      "type": "streamableHttp",
      "url": "https://your-finance-mcp.example/mcp",
      "timeout": 600,
      "headers": {
        "X-Tushare-Token": "YOUR_TUSHARE_TOKEN",
        "X-Qveris-Api-Key": "YOUR_QVERIS_API_KEY",
        "X-Twingly-Api-Key": "YOUR_TWINGLY_API_KEY",
        "X-Finance-Source-Priority": "twingly,qveris,tushare,binance"
      }
    }
  }
}

三个凭证都是可选的,可以只传其中一个。Authorization: Bearer ... 与 X-Api-Key 继续兼容为 Tushare Token;Qveris 与 Twingly 使用各自的独立 Header。

环境变量
变量默认值说明
TUSHARE_TOKEN空Tushare 凭证
QVERIS_API_KEY空Qveris 凭证
QVERIS_BASE_URLhttps://qveris.ai/api/v1Qveris REST API 地址
TWINGLY_API_KEY空Twingly News Search 凭证
TWINGLY_BASE_URLhttps://data.twingly.net/news/b/search/v1/searchTwingly News Search API 地址
FINANCE_SOURCE_PRIORITYtushare,twingly,qveris,binancestdio 或服务端默认优先级
PORT3000HTTP 服务端口
MCP_HTTP_HOST127.0.0.1HTTP 监听地址;容器部署使用 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。

🧰 19 个 MCP Tools

Tool功能数据源 / 接口商
current_timestampUTC+8 当前时间戳本地系统时钟
finance_news财经新闻关键词检索Twingly* · 百度新闻 · Qveris*
stock_data多市场历史行情与技术指标Tushare Pro · Qveris* · Binance Public API(加密资产)
stock_data_minutesA 股与加密资产分钟 K 线Tushare Pro · Qveris* · Binance Public API(加密资产)
index_data指数行情、基本信息与估值Tushare Pro · Qveris*
macro_econGDP、CPI、PPI、PMI、Shibor、LPR、Libor、Hibor 等Tushare Pro · Qveris*
company_performanceA 股公司、财务、分红、股东与估值数据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_constituentsCSI 指数表现、成分权重与财务摘要Tushare Pro · Qveris*
dragon_tiger_inst龙虎榜机构交易明细Tushare Pro
hot_news_7x247×24 财经热点与内容去重Tushare Pro · Twingly* · Qveris*
futures_data期货会员持仓排名Tushare Pro

Qveris* 是动态数据能力路由层,会按查询自动选择已接入的实际接口商(例如 Finnhub、Tiingo 等);最终选中的接口商、能力 ID 与数据来源会随 Tool 结果一起返回。未标记 Qveris 的 Tool 会明确返回“接口未覆盖”,再降级到表内原生数据源。

📊 技术指标

macd(12,26,9)   rsi(14)   kdj(9,3,3)   boll(20,2)   ma(5) ma(10) ma(20)

stock_data 会自动预取指标所需的额外历史数据,计算完成后再裁剪到用户请求区间。带技术指标的请求保持使用原生数据源,确保既有计算与展示格式稳定。

🛠️ 本地开发

git clone https://github.com/guangxiangdebizi/FinanceMCP.git
cd FinanceMCP
cp .env.example .env
npm ci
npm test
npm run start:stdio   # stdio
npm run start:http    # http://127.0.0.1:3000/mcp

node_modules/ 与 build/ 是本地生成物,不纳入 Git 跟踪。npm 发布时会通过 prepare 自动构建,仅打包运行所需的 build/。

🛡️ 安全设计

  • API Key 仅从请求 Header 或环境变量读取,不写入仓库。
  • HTTP 请求凭证按请求隔离,敏感 Header 在日志中显示为 [REDACTED]。
  • QVERIS_BASE_URL 默认强制 HTTPS;仅 loopback 地址允许 HTTP 回归测试。
  • Qveris 候选能力经过只读过滤、参数 Probe、响应大小限制与超时控制。
  • .env、依赖目录、构建产物、日志和本地研究资料均由 Git ignore 规则管理。

⭐ Star 趋势

FinanceMCP GitHub Star History

如果 FinanceMCP 对你有帮助,欢迎点一个 ⭐。趋势图由仓库自己的 GitHub Actions 每周一自动更新,也支持手动刷新;使用仓库临时 GITHUB_TOKEN,不依赖第三方 Star 抓取服务或长期凭证。

🤝 生态与贡献

FinanceMCP server card on Glama

  • FinanceMCP 可作为 FinNote / MarkiNote 的金融数据后端。
  • 在线体验:公网托管服务暂时停止,后续可能更换域名
  • MCP 生态收录:Glama · Smithery · MCP Toplist
  • 视频教程:FinanceMCP 完整使用指南
  • Bug 与功能建议:GitHub Issues

欢迎提交 Issue 或 Pull Request。新增数据能力时优先兼容现有聚合 Tool,避免一接口一 Tool 的表面扩张。

📄 License

MIT

Featured
CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
ego lite browserego lite browser
ego lite browser
Fastest browser for AI agents to run web automation tasks, always free.
Download Free life-time →
Give your AI the whole web as clean markdownGive your AI the whole web as clean markdown
Give your AI the whole web as clean markdown
Integrate web data into your AI product. One API to scrape website & brand data.
Get API Key Now →
belt - the only tool your agent needs
belt - the only tool your agent needs
belt cli automatically finds the best tools and skills for your agent. image, video, music, tts...
one prompt install →
AppSignal
AppSignal
Monitor with ease. Code with confidence.
Start Free Trial →
Agent, connect blockchain
Agent, connect blockchain
Connect your Claude agent to live crypto prices and trading routes via 1inch
Get the MCP →
inference shell
inference shell
create and run specialised agents in minutes
build now →
CodeHealth MCP ServerCodeHealth MCP Server
CodeHealth MCP Server
Protect your code quality, stop the AI slop.
Try For Free →
Categories
Data & Analytics
UpdatedMar 8, 2026
View on GitHub

More from guangxiangdebizi

  • QMT-MCP Server181

Related Data & Analytics MCP Servers

View all →
neiltron avatar
Apple Health

neiltron/apple-health-mcp

MCP server for querying Apple Health data with natural language and SQL
540
a-bonus avatar
Google Docs

a-bonus/google-docs-mcp

Provides programmatic access to Google Docs, Sheets, and Drive for reading, writing, and management via MCP.
535
zubeidhendricks avatar
YouTube

zubeidhendricks/youtube-mcp-server

Provides access to YouTube data, transcripts, channels, and playlists via a standardized MCP interface.
517
motherduckdb avatar
Mcp Server Motherduck

motherduckdb/mcp-server-motherduck

SQL analytics and data engineering for AI Assistants and IDEs
488
taxuspt avatar
Garmin

taxuspt/garmin_mcp

Exposes Garmin Connect data to MCP clients with activities, health metrics, workouts, and profile access.
482
hald avatar
Things

hald/things-mcp

Enables Claude to access and manipulate Things 3 data via MCP with task creation, project management, and advanced searches.
467