A MCP server for the stock market data API, Alphavantage API.
- Sign up for a Free Alphavantage API key
- Add the API key to your environment variables as
ALPHAVANTAGE_API_KEY
git clone https://github.com/calvernaz/alphavantage.git
The AlphaVantage server can run in two different modes:
This is the standard MCP server mode used for tools like Claude Desktop.
alphavantage
# or explicitly:
alphavantage --server stdio
This mode provides real-time updates via HTTP streaming.
alphavantage --server http --port 8080
Options:
--server
: Choose betweenstdio
(default) orhttp
server mode--port
: Specify the port for the Streamable HTTP server (default: 8080)
Add this to your claude_desktop_config.json
:
NOTE Make sure you replace the <DIRECTORY-OF-CLONED-PROJECT>
with the directory of the cloned project.
{
"mcpServers": {
"alphavantage": {
"command": "uv",
"args": [
"--directory",
"<DIRECTORY-OF-CLONED-PROJECT>/alphavantage",
"run",
"alphavantage"
],
"env": {
"ALPHAVANTAGE_API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}
{
"mcpServers": {
"alphavantage": {
"command": "uv",
"args": [
"--directory",
"<DIRECTORY-OF-CLONED-PROJECT>/alphavantage",
"run",
"alphavantage",
"--server",
"http",
"--port",
"8080"
],
"env": {
"ALPHAVANTAGE_API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}
Watch a quick demonstration of the Alpha Vantage MCP Server in action:
alphavantage-1080p.mov
We welcome contributions from the community! To get started, check out our contribution guide for setup instructions, development tips, and guidelines.