金融数据MCP服务器

@xBlueCode/findata-mcp-server
1 Stars 2.0k 次浏览 xBlueCode 更新于 2026-08-23

这是一个提供对 Alpha Vantage API 访问的 MCP 服务器,允许检索股票数据以用作 LLM 的上下文。

该服务暂未提供标准配置,请参考 README 手动接入

可用工具 (2 个)

该服务在 MCP 协议中暴露的工具,AI 可按需调用

getStockQuote 1 个参数 需填 1 项

Get the current quote for a stock.

必填参数:symbol

getHistoricalData 3 个参数 需填 1 项

Get historical data for a stock.

必填参数:symbol

服务介绍

金融数据 - MCP 服务器

smithery 徽章

这是一个提供访问 Alpha Vantage API 的 MCP 服务器,允许检索股票数据作为 LLMs 的上下文使用。

可用功能

  • getStockQuote: 获取股票的当前报价。
  • getHistoricalData: 获取股票的历史数据(日、周或月)。
  • (之后将添加更多用于技术分析、公司概况等工具。)

设置

通过 Smithery 安装

要通过 Smithery 自动为 Claude Desktop 安装 Financial Data Server:

npx -y @smithery/cli install findata-mcp-server --client claude

手动安装

npm install findata-mcp-server

在主机中使用

  1. 从 Alpha Vantage 获取 API 密钥 https://www.alphavantage.co/support/#api-key
  2. 配置您的 MCP 客户端(例如 Claude Desktop)以连接到服务器:
{
  "mcpServers": {
    "alphaVantage": {
      "command": "npx",
      "args": ["-y", "findata-mcp-server"],
      "env": {
        "ALPHA_VANTAGE_API_KEY": "PUT_YOUR_API_KEY_HERE"
      }
    }
  }
}

工具

getStockQuote

获取股票的当前报价。

输入:

symbol: 股票代码(例如 AAPL)
输出示例:

getHistoricalData

获取股票的历史数据。

输入:

  • symbol: 股票代码(例如 AAPL)
  • interval: 数据的时间间隔(dailyweeklymonthly)(可选,默认: daily
  • outputsize: 输出大小(compactfull)(可选,默认: compact
    输出:

包含历史数据的 JSON 对象。输出结构取决于 interval 参数。

贡献

欢迎贡献!请打开一个 issue 或 pull request。

许可证

MIT

相关 MCP 服务