The Alpha Vantage MCP Server provides real-time access to financial market data through the Alpha Vantage API. This server implements a standardized interface for retrieving stock quotes, company information, cryptocurrency data, and options chain information.
cd alpha-vantage-mcp
docker build -t mcp/alpha-vantage .
claude_desktop_config.json
file (replace REPLACE_API_KEY
with your actual Alpha Vantage API key):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"
}
}
}
}
For automatic installation with Claude Desktop via Smithery:
npx -y @smithery/cli install @berlinbra/alpha-vantage-mcp --client claude
uv install -e .
uv run src/alpha_vantage_mcp/server.py
To run with inspector:
npx @modelcontextprotocol/inspector uv --directory /path/to/alpha-vantage-mcp run src/alpha_vantage_mcp/server.py
Retrieves the latest stock quote for a specific company.
Input:
{
"symbol": "AAPL"
}
Example Response:
Stock quote for AAPL:
Price: $198.50
Change: $2.50 (+1.25%)
Volume: 58942301
High: $199.62
Low: $197.20
Retrieves detailed company information.
Input:
{
"symbol": "AAPL"
}
Example Response:
Company information for AAPL:
Name: Apple Inc
Sector: Technology
Industry: Consumer Electronics
Market Cap: $3000000000000
Description: Apple Inc. designs, manufactures, and markets smartphones...
Exchange: NASDAQ
Currency: USD
Retrieves real-time cryptocurrency exchange rates.
Input:
{
"crypto_symbol": "BTC",
"market": "USD"
}
Example Response:
Cryptocurrency exchange rate for BTC/USD:
From: Bitcoin (BTC)
To: United States Dollar (USD)
Exchange Rate: 43521.45000
Last Updated: 2024-12-17 19:45:00 UTC
Bid Price: 43521.00000
Ask Price: 43522.00000
Retrieves daily time series (OHLCV) data for stocks.
Input:
{
"symbol": "AAPL",
"outputsize": "compact"
}
Example Response:
Time Series Data for AAPL (Last Refreshed: 2024-12-17 16:00:00):
Date: 2024-12-16
Open: $195.09
High: $197.68
Low: $194.83
Close: $197.57
Volume: 55,751,011
Retrieves historical options chain data with advanced sorting.
Input:
{
"symbol": "AAPL",
"date": "2024-02-20",
"limit": 10,
"sort_by": "strike",
"sort_order": "asc"
}
Example Response:
Historical Options Data for AAPL (2024-02-20):
Contract 1:
Strike: $190.00
Expiration: 2024-03-15
Last: $8.45
Bid: $8.40
Ask: $8.50
Volume: 1245
Open Interest: 4567
Implied Volatility: 0.25
Greeks:
Delta: 0.65
Gamma: 0.04
Theta: -0.15
Vega: 0.30
Rho: 0.25
Retrieves daily time series data for cryptocurrencies.
Input:
{
"symbol": "SOL",
"market": "USD"
}
Example Response:
Daily cryptocurrency time series for SOL in USD:
Daily Time Series for Solana (SOL)
Market: United States Dollar (USD)
Last Refreshed: 2025-04-17 00:00:00 UTC
Date: 2025-04-17
Open: 131.31000000 USD
High: 131.67000000 USD
Low: 130.74000000 USD
Close: 131.15000000 USD
Volume: 39652.22195178
---
Date: 2025-04-16
Open: 126.10000000 USD
High: 133.91000000 USD
Low: 123.46000000 USD
Close: 131.32000000 USD
Volume: 1764240.04195810
Retrieves weekly time series data for cryptocurrencies.
Input:
{
"symbol": "SOL",
"market": "USD"
}
Example Response:
Weekly cryptocurrency time series for SOL in USD:
Weekly Time Series for Solana (SOL)
Market: United States Dollar (USD)
Last Refreshed: 2025-04-17 00:00:00 UTC
Date: 2025-04-17
Open: 128.32000000 USD
High: 136.00000000 USD
Low: 123.46000000 USD
Close: 131.15000000 USD
Volume: 4823091.05667581
Retrieves monthly time series data for cryptocurrencies.
Input:
{
"symbol": "SOL",
"market": "USD"
}
Example Response:
Monthly cryptocurrency time series for SOL in USD:
Monthly Time Series for Solana (SOL)
Market: United States Dollar (USD)
Last Refreshed: 2025-04-17 00:00:00 UTC
Date: 2025-04-17
Open: 124.51000000 USD
High: 136.18000000 USD
Low: 95.16000000 USD
Close: 131.15000000 USD
Volume: 34268628.85976021
The server includes comprehensive error handling for:
All errors are returned in a clear, human-readable format.
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "alpha-vantage-mcp" '{"command":"uv","args":["run","src/alpha_vantage_mcp/server.py"],"env":{"ALPHA_VANTAGE_API_KEY":"<insert api key>"}}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"alpha-vantage-mcp": {
"command": "uv",
"args": [
"run",
"src/alpha_vantage_mcp/server.py"
],
"env": {
"ALPHA_VANTAGE_API_KEY": "<insert api key>"
}
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"alpha-vantage-mcp": {
"command": "uv",
"args": [
"run",
"src/alpha_vantage_mcp/server.py"
],
"env": {
"ALPHA_VANTAGE_API_KEY": "<insert api key>"
}
}
}
}
3. Restart Claude Desktop for the changes to take effect