Back to MCP directory
publicPublicdnsLocal runtime

alpha-ventage-mcp

Alpha Vantage MCP服务器是一个金融数据集成服务,通过Alpha Vantage API提供实时股票市场数据、加密货币价格、外汇汇率和技术指标分析。

article

README

🚀 Alpha Vantage MCP 服务器 📈

这是一个模型上下文协议(MCP)服务器,它能与 Alpha Vantage 的金融数据 API 实现无缝集成,可提供实时股票市场数据、加密货币价格、外汇汇率以及技术指标等信息,为金融数据获取提供便利。

🚀 快速开始

安装

  1. 克隆仓库:
git clone [your-repo-url]
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": []
    }
  }
}

✨ 主要特性

股票市场数据

  • 提供全球市场的实时股票报价。
  • 可获取历史股价数据(每日、每周)。
  • 能查询公司详细信息。
  • 支持多个交易所,如纽约证券交易所、纳斯达克、印度国家证券交易所。

加密货币数据

  • 提供实时加密货币价格。
  • 可查询数字货币兑换汇率。
  • 提供主要加密货币市场数据。

外汇交易

  • 提供实时外汇汇率。
  • 支持货币对转换。
  • 提供全球外汇市场数据。

技术分析

  • 提供高级技术指标。
  • 包含移动平均线(SMA、EMA)。
  • 提供市场动能指标。
  • 能给出交易信号和模式。

💻 使用示例

基础用法

股票市场工具

get_stock_price
// 获取实时股票报价
<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_time_series
// 获取每日股票价格历史数据
<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_crypto_price
// 获取加密货币价格
<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
// 获取汇率
<use_mcp_tool>
<server_name>alpha-vantage</server_name>
<tool_name>get_forex_rate</tool_name>
<arguments>
{
  "from": "USD",
  "to": "EUR"
}
</arguments>
</use_mcp_tool>

技术分析工具

get_technical_indicators
// 获取技术指标数据
<use_mcp_tool>
<server_name>alpha-vantage</server_name>
<tool_name>get_technical_indicators</tool_name>
<arguments>
{
  "symbol": "AAPL",
  "interval": "1D"
}
</arguments>
</use_mcp_tool>

📌 API 密钥

要使用 Alpha Vantage 的 API,请先注册并获取免费 API 密钥:Alpha Vantage 注册页面

🌍 支持的市场

  • 美国股市(纽交所、纳斯达克)
  • 欧洲股市(伦敦证券交易所等)
  • 亚洲股市(东京证券交易所等)
  • 全球加密货币市场
  • 主要外汇市场

💡 贡献指南

如果要为项目做贡献,请参考我们的 贡献指南

📄 许可证

MIT License

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client