想查个财报,要打开浏览器→找网站→搜索→翻页→截图,一套操作下来5分钟没了。要是直接问Claude"苹果最近营收多少"就能秒回呢?
今天介绍的这个工具,让这件事变成了现实。
它是什么
Financial Datasets MCP Server 是一个基于MCP(Model Context Protocol)协议的金融数据服务器,能让你在Claude、Cursor等AI工具里直接查询股票价格、公司财报、市场新闻和加密货币数据。
简单说:装上它,AI从"能聊天"变成"能查账"。
10个核心工具,覆盖股票+加密货币全链路:
• get_income_statements— 公司损益表• get_balance_sheets— 资产负债表• get_cash_flow_statements— 现金流量表• get_current_stock_price— 最新股价• get_historical_stock_prices— 历史股价• get_company_news— 公司新闻• get_available_crypto_tickers— 可用加密货币列表• get_crypto_prices— 加密货币价格• get_historical_crypto_prices— 加密货币历史价格• get_current_crypto_price— 加密货币最新价格
快速上手
环境准备
• Python 3.10 或更高版本 • uv 包管理器(Python新一代包管理器,比pip快10倍)
安装步骤
# 1. 克隆仓库git clone https://github.com/financial-datasets/mcp-servercd mcp-server# 2. 安装 uv(如果还没有)# Windows:curl -LsSf https://astral.sh/uv/install.ps1 | powershell# macOS/Linux:curl -LsSf https://astral.sh/uv/install.sh | sh# 3. 创建虚拟环境并安装依赖uv venv# Windows:.venv\Scripts\activate# macOS/Linux:source .venv/bin/activateuv add "mcp[cli]" httpx# 4. 配置 API Keycp .env.example .env# 编辑 .env,填入你的 Financial Datasets API Key# FINANCIAL_DATASETS_API_KEY=your-key-here# 5. 启动服务uv run server.py连接 Claude Desktop
编辑 Claude Desktop 配置文件:
macOS:~/Library/Application Support/Claude/claude_desktop_config.json
Windows:%APPDATA%\Claude\claude_desktop_config.json
{ "mcpServers": { "financial-datasets": { "command": "/path/to/uv", "args": [ "--directory", "/absolute/path/to/mcp-server", "run", "server.py" ] } }}重启 Claude Desktop,点击工具栏的 ? 图标,就能看到金融数据工具了。
试试看
• "Apple 最近的损益表是什么?" • "Tesla 现在股价多少?" • "帮我查 BTC 今天的价格"
实战场景
场景1:投资决策助手
你:帮我看看 NVDA 最近几个季度的收入增长趋势
Claude 会调用 get_income_statements 和 get_historical_stock_prices,直接返回 NVDA 的营收数据和股价走势,省去你翻财报网站的功夫。
场景2:加密货币监控
你:BTC 和 ETH 今天表现如何
一条消息同时查两种加密货币的最新价格,比打开 CoinGecko 还快。
场景3:财报快速对比
你:对比微软和谷歌的现金流
Claude 分别调用两家的 get_cash_flow_statements,自动整理对比表格,一目了然。
深度分析
优势:
• 对话式查询,自然语言替代手动操作 • 覆盖股票+加密货币,数据维度丰富 • MCP 生态集成,可被任何支持 MCP 的 AI 工具调用 • 开源免费,数据源来自 Financial Datasets API
局限:
• 依赖第三方 API(Financial Datasets),免费额度有限 • 暂不支持 A 股数据(需搭配 AkTools MCP 等国内数据源) • 加密货币覆盖范围有待扩展
适合谁: 美股/加密货币投资者、金融分析师、想用AI做投资研究的开发者
竞品对比: 传统财经App(同花顺、富途)需要手动搜索和切换页面;AkTools MCP 支持A股但不覆盖美股加密货币;Financial Datasets MCP 则是美股+加密货币场景的最佳选择。
资源链接
• GitHub:https://github.com/financial-datasets/mcp-server • API Key 申请:https://www.financialdatasets.ai/ • LobeHub MCP 市场:https://lobehub.com/mcp?q=stocks • 腾讯云 MCP 页面:https://cloud.tencent.cn/developer/mcp/server/10919
问一句"苹果赚了多少",比打开五个网页还快。MCP让AI从"能聊天"变成"能查账"——这才是AI+金融的正确打开方式。传统投资分析靠浏览器标签页,现在靠对话窗口。


