返回市场
财务数据-MCP服务器

财务数据-MCP服务器

作者:xBlueCode9 星标更新:2025-04-04

项目介绍

财务数据 - MCP服务器

smithery徽章

这是一个提供Alpha Vantage API访问的MCP服务器,允许获取股票数据并将其用作LLMs的上下文。

<a href="https://glama.ai/mcp/servers/czslwc47w9"><img width="380" height="200" src="https://gips3.baidu.com/it/u=3566450698,3484276116&fm=3081&app=3081&f=PNG?w=760&h=400" alt="findata-mcp-server MCP服务器" /></a>

可用功能

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

安装

通过Smithery安装

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

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