Alpha Vantage MCP

by iferdelja

1 stars
385 downloads
Not rated
GitHub

About

A Model Context Protocol (MCP) server for accessing Alpha Vantage stock and financial data.

Details

Author
iferdelja
GitHub stars
1
Downloads
385
Categories
Finance

- Complete support for all Alpha Vantage API endpoints
- Consolidated technical indicators into 5 unified endpoints with type parameters
- Unified commodities endpoint with commodity_type parameter
- Forex time series consolidated with series_type parameter
- Cryptocurrency time series consolidated with series_type parameter
- Reduced context window usage through endpoint consolidation

Clone the repository, install dependencies with npm install, copy .env.example to .env, add your Alpha Vantage API key, then build with npm run build. Connect to any MCP-compatible client and query using natural language (e.g., "Get a stock quote for MSFT").

Alpha Vantage MCP

A Model Context Protocol (MCP) server for accessing Alpha Vantage stock and financial data.

Features

- Complete support for all Alpha Vantage API endpoints including stocks, economic indicators, technical indicators, forex, cryptocurrencies, and commodities

- For reduced context window usage, certain endpoints are organized under same tool (technical indicators, forex, commodities, and cryptocurrencies)

API Organization

To provide a more efficient experience and reduce context window usage:

- Technical Indicators: Consolidated into 5 unified endpoints (moving averages, momentum, volatility, volume, cycle) with type parameters
- Commodities: Unified into a single endpoint with commodity_type parameter
- Forex: Time series endpoints consolidated with a series_type parameter
- Cryptocurrencies: Time series endpoints consolidated with a series_type parameter

This organization maintains full functionality while significantly reducing the number of tools required.

Setup

1. Clone this repository
2. Install dependencies: npm install
3. Copy the example environment file: cp .env.example .env
4. Edit the .env file and add your Alpha Vantage API key
- Get a free API key at Alpha Vantage
5. Build the project: npm run build

Usage

Connect to a Claude client

This MCP server can be used with any MCP-compatible client, such as Claude.

Example queries:
- "Get a stock quote for MSFT"
- "Show me the RSI momentum indicator for AAPL with a 14-day period"
- "What's the exchange rate between USD and EUR?"
- "Get the monthly price data for Bitcoin in USD"
- "Show me crude oil prices for the last quarter"

License

MIT

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.