alphavantage

The Alpha Vantage MCP Server is a server designed for the Alphavantage API, which provides stock market data. Implemented in Python, this tool offers a convenient interface for retrieving real-time stock data. Users can easily start the server and fetch data by obtaining an Alphavantage API key and setting it in environment variables. It operates in two modes: the standard stdio server mode and a streamable HTTP server mode that provides real-time updates.

GitHub Stars

49

User Rating

Not Rated

Forks

18

Issues

0

Views

2

Favorites

0

README
✅ Official Alpha Vantage MCP Server

smithery badge Verified on MseeP

A MCP server for the stock market data API, Alphavantage API.

Configuration
Getting an API Key
  1. Sign up for a Free Alphavantage API key
  2. Add the API key to your environment variables as ALPHAVANTAGE_API_KEY
Clone the project
git clone https://github.com/calvernaz/alphavantage.git
Server Modes

The AlphaVantage server can run in two different modes:

Stdio Server (Default)

This is the standard MCP server mode used for tools like Claude Desktop.

alphavantage
# or explicitly:
alphavantage --server stdio
Streamable HTTP Server

This mode provides real-time updates via HTTP streaming.

alphavantage --server http --port 8080

Options:

  • --server: Choose between stdio (default) or http server mode
  • --port: Specify the port for the Streamable HTTP server (default: 8080)
Usage with Claude Desktop

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"
      }
    }
  }
}
Running the Server in Streamable HTTP Mode
{
  "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"
      }
    }
  }
}
📺 Demo Video

Watch a quick demonstration of the Alpha Vantage MCP Server in action:

Alpha Vantage MCP Server Demo

🤝 Contributing

We welcome contributions from the community! To get started, check out our contribution guide for setup instructions, development tips, and guidelines.

Author Information
Cesar Alvernaz

OSS contributor. Director @weirdloop

weirdloopDublin, Ireland

32

Followers

35

Repositories

17

Gists

46

Total Contributions

Top Contributors

Threads