Alpha Vantage Stock MCP Server logo

Alpha Vantage Stock MCP Server

by qubaomingg

This is a Model Context Protocol (MCP) server that provides stock market data from Alpha Vantage API. It allows Claude and other MCP clients to access real-time and historical stock data.

View on GitHub

Last updated: N/A

What is Alpha Vantage Stock MCP Server?

The Alpha Vantage Stock MCP Server is a Node.js application that acts as a Model Context Protocol (MCP) server. It retrieves stock market data from the Alpha Vantage API and makes it accessible to MCP clients like Claude for Desktop.

How to use Alpha Vantage Stock MCP Server?

  1. Clone the repository. 2. Install dependencies using npm install. 3. Create a .env file with your Alpha Vantage API key. 4. Build the project using npm run build. 5. Run the server using npm start. 6. Configure Claude for Desktop to use the server by adding the server configuration to claude_desktop_config.json.

Key features of Alpha Vantage Stock MCP Server

  • Get intraday stock data with customizable intervals

  • Get daily stock data

  • Generate stock alerts based on price movements

  • Access stock data as resources

Use cases of Alpha Vantage Stock MCP Server

  • Analyzing stock trends with Claude

  • Generating automated stock alerts

  • Accessing real-time stock data within Claude

  • Comparing different stock performances

FAQ from Alpha Vantage Stock MCP Server

What is an Alpha Vantage API key and how do I get one?

The Alpha Vantage API key is required to access the Alpha Vantage API. You can get one for free at Alpha Vantage

What is the default interval for intraday stock data?

The default interval is 5min.

What is the default output size for stock data?

The default output size is 'compact', which returns the latest 100 data points.

How do I specify a different interval for intraday stock data?

You can specify the interval as a parameter when calling the get-stock-data tool. For example: get-stock-data symbol=IBM interval=15min

How do I access stock data as a resource?

You can access stock data using the URI template stock://{symbol}/{interval}. For example: stock://AAPL/daily