BA

berlinbra/alpha-vantage-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

104 stars 40 forks 质量 67 趋势 0MIT

berlinbra/alpha-vantage-mcp 是从 https://github.com/berlinbra/alpha-vantage-mcp. 导入的 MCP 服务器候选服务器。

概览

berlinbra/alpha-vantage-mcp 是从 https://github.com/berlinbra/alpha-vantage-mcp. 导入的 MCP 服务器候选服务器。

概述(AI 翻译)

一个模型上下文协议(MCP)服务器,通过免费的 Alpha Vantage API 提供对金融市场数据的实时访问。该服务器实现了标准化接口,用于获取股票报价和公司信息。

特征

  • 实时股票报价,包含价格、成交量和变动数据
  • 详细的公司信息,包括行业、行业和市值
  • 实时加密货币汇率及买卖价
  • 每日、每周和每月加密货币时间序列数据
  • 实时期权链数据,希腊式和隐含波动率
  • 历史期权链数据,具备高级筛选和排序功能
  • 全面的ETF画像数据,包括持仓、行业配置及关键指标
  • 可自定义时间范围的即将公布财报日历
  • 历史盈利数据,含年度和季度报告
  • 内置错误处理和速率限制管理

安装

使用 Claude 桌面

通过 Docker 安装

  • 克隆仓库并构建本地镜像,供你的 Claude 桌面客户端使用

  • 将你的claude_desktop_config.json更改为匹配,将REPLACE_API_KEY替换为你的实际密钥:

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Alpha Vantage MCP Server

A Model Context Protocol (MCP) server that provides real-time access to financial market data through the free Alpha Vantage API. This server implements a standardized interface for retrieving stock quotes and company information.

Features

  • Real-time stock quotes with price, volume, and change data
  • Detailed company information including sector, industry, and market cap
  • Real-time cryptocurrency exchange rates with bid/ask prices
  • Daily, weekly, and monthly cryptocurrency time series data
  • Real-time options chain data with Greeks and implied volatility
  • Historical options chain data with advanced filtering and sorting
  • Comprehensive ETF profile data with holdings, sector allocation, and key metrics
  • Upcoming earnings calendar with customizable time horizons
  • Historical earnings data with annual and quarterly reports
  • Built-in error handling and rate limit management

Installation

Using Claude Desktop

Installing via Docker

  • Clone the repository and build a local image to be utilized by your Claude desktop client
cd alpha-vantage-mcp
docker build -t mcp/alpha-vantage .
  • Change your claude_desktop_config.json to match the following, replacing REPLACE_API_KEY with your actual key:

claude_desktop_config.json path

  • On MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json
  • On Windows: %APPDATA%/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "alphavantage": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "ALPHA_VANTAGE_API_KEY",
        "mcp/alpha-vantage"
      ],
      "env": {
        "ALPHA_VANTAGE_API_KEY": "REPLACE_API_KEY"
      }
    }
  }
}

Installing via Smithery

To install Alpha Vantage MCP Server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @berlinbra/alpha-vantage-mcp --client claude

Install packages

uv install -e .

Running

After connecting Claude client with the MCP tool via json file and installing the packages, Claude should see the server’s mcp tools:

You can run the sever yourself via:

在 GitHub 查看完整 README

安装

docker run -i -e ALPHA_VANTAGE_API_KEY mcp/alpha-vantage
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "alphavantage": { "command": "docker", "args": [ "run", "-i", "-e", "ALPHA_VANTAGE_API_KEY", "mcp/alpha-vantage" ], "env": { "ALPHA_VANTAGE_API_KEY": "REPLACE_API_KEY" } } } }