金融数据服务

Alpha Vantage MCP Server 是一个与 Alpha Vantage 金融数据 API 无缝集成的模型上下文协议服务器,提供实时股票市场数据、加密货币价格、外汇汇率和技术指标。

  • by deepsuthar496
  • JavaScript
  • 本地部署
  • 4 星标
  • 更新于
在 GitHub 查看 deepsuthar496/alpha-ventage-mcp

使用说明

Alpha Vantage MCP服务器📈

模型上下文协议(MCP)服务器,可与AlphaVantage的财务数据API无缝集成,实现实时股票市场数据、加密货币价格、外汇汇率和技术指标。

🌟 特性

股市数据

  • 来自全球市场的实时股票报价
  • 历史价格数据(每日、每周)
  • 全面的公司信息
  • 支持多个交易所(纽约证券交易所、纳斯达克、BSE)

加密货币数据

  • 实时加密货币价格
  • 数字货币汇率
  • 主要加密货币市场数据

外汇交易

  • 实时外汇汇率
  • 货币对转换
  • 全球外汇市场数据

技术分析

  • 先进技术指标
  • 移动平均线(SMA、EMA)
  • 市场动能指标
  • 交易信号和模式

🚀 快速开始

安装

通过Smithery安装

通过以下方式自动安装适用于Claude Desktop的Alpha Vantage金融数据服务器 史密瑟里:

npx -y @smithery/cli install @deepsuthar496/alpha-ventage-mcp --client claude

手动安装[由回购所有者管理]

  1. 克隆存储库:
git clone https://github.com/deepsuthar496/alpha-ventage-mcp
cd alpha-vantage-server
  1. 安装依赖项:
npm install
  1. 构建服务器:
npm run build

配置

在MCP设置文件中配置服务器:

{
  "mcpServers": {
    "alpha-vantage": {
      "command": "node",
      "args": ["path/to/alpha-vantage-server/build/index.js"],
      "env": {
        "ALPHA_VANTAGE_API_KEY": "your-api-key-here"
      },
      "disabled": false,
      "alwaysAllow": []
    }
  }
}

🛠️ 可用工具

股票市场工具

get_stock_price

// Get real-time stock quotes
<use_mcp_tool>
<server_name>alpha-vantage</server_name>
<tool_name>get_stock_price</tool_name>
<arguments>
{
  "symbol": "AAPL" 
}
</arguments>
</use_mcp_tool>

获取每日时间系列

// Get daily stock price history
<use_mcp_tool>
<server_name>alpha-vantage</server_name>
<tool_name>get_daily_time_series</tool_name>
<arguments>
{
  "symbol": "MSFT",
  "outputsize": "compact"
}
</arguments>
</use_mcp_tool>

加密货币工具

加密价格

// Get cryptocurrency prices
<use_mcp_tool>
<server_name>alpha-vantage</server_name>
<tool_name>get_crypto_price</tool_name>
<arguments>
{
  "symbol": "BTC",
  "market": "USD"
}
</arguments>
</use_mcp_tool>

外汇工具

get_forex_rate

// Get currency exchange rates
<use_mcp_tool>
<server_name>alpha-vantage</server_name>
<tool_name>get_forex_rate</tool_name>
<arguments>
{
  "from_currency": "USD",
  "to_currency": "EUR"
}
</arguments>
</use_mcp_tool>

📊 技术分析

get_技术指标

// Get technical indicators
<use_mcp_tool>
<server_name>alpha-vantage</server_name>
<tool_name>get_technical_indicator</tool_name>
<arguments>
{
  "symbol": "AAPL",
  "indicator": "SMA",
  "interval": "daily"
}
</arguments>
</use_mcp_tool>

🔑 API密钥

在注册API密钥 阿尔法Vantage免费套餐包括:

  • 每天25个API调用
  • 实时和历史数据访问
  • 全球市场覆盖

🌐 支持的市场

  • 美国股市(纽约证券交易所、纳斯达克)
  • 全球加密货币市场
  • 外汇市场
  • 国际股票市场

🤝 贡献

  1. 分叉存储库
  2. 创建功能分支
  3. 提交您的更改
  4. 推到分支
  5. 创建新的Pull请求

📝 许可证

麻省理工学院