Content
<div class="cta-row" align="center" style="display:flex;flex-wrap:wrap;gap:0.75rem;justify-content:center;margin:0 0 2rem;">
<a class="cta-btn" href="https://claude.ai/customize/connectors/directory/alpha-vantage" target="_blank" rel="noopener noreferrer" onclick="gtag('event', 'mcp_addToClaude')" style="display:inline-flex;align-items:center;gap:0.5rem;padding:0.7rem 1.4rem;border:1px solid #D97757;border-radius:0.5rem;background-color:#D97757;color:#ffffff;font-weight:600;font-size:1rem;line-height:1;text-decoration:none;"><svg width="18" height="18" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="m4.7144 15.9555 4.7174-2.6471.079-.2307-.079-.1275h-.2307l-.7893-.0486-2.6956-.0729-2.3375-.0971-2.2646-.1214-.5707-.1215-.5343-.7042.0546-.3522.4797-.3218.686.0608 1.5179.1032 2.2767.1578 1.6514.0972 2.4468.255h.3886l.0546-.1579-.1336-.0971-.1032-.0972L6.973 9.8356l-2.55-1.6879-1.3356-.9714-.7225-.4918-.3643-.4614-.1578-1.0078.6557-.7225.8803.0607.2246.0607.8925.686 1.9064 1.4754 2.4893 1.8336.3643.3035.1457-.1032.0182-.0728-.164-.2733-1.3539-2.4467-1.445-2.4893-.6435-1.032-.17-.6194c-.0607-.255-.1032-.4674-.1032-.7285L6.287.1335 6.6997 0l.9957.1336.419.3642.6192 1.4147 1.0018 2.2282 1.5543 3.0296.4553.8985.2429.8318.091.255h.1579v-.1457l.1275-1.706.2368-2.0947.2307-2.6957.0789-.7589.3764-.9107.7468-.4918.5828.2793.4797.686-.0668.4433-.2853 1.8517-.5586 2.9021-.3643 1.9429h.2125l.2429-.2429.9835-1.3053 1.6514-2.0643.7286-.8196.85-.9046.5464-.4311h1.0321l.759 1.1293-.34 1.1657-1.0625 1.3478-.8804 1.1414-1.2628 1.7-.7893 1.36.0729.1093.1882-.0183 2.8535-.607 1.5421-.2794 1.8396-.3157.8318.3886.091.3946-.3278.8075-1.967.4857-2.3072.4614-3.4364.8136-.0425.0304.0486.0607 1.5482.1457.6618.0364h1.621l3.0175.2247.7892.522.4736.6376-.079.4857-1.2142.6193-1.6393-.3886-3.825-.9107-1.3113-.3279h-.1822v.1093l1.0929 1.0686 2.0035 1.8092 2.5075 2.3314.1275.5768-.3218.4554-.34-.0486-2.2039-1.6575-.85-.7468-1.9246-1.621h-.1275v.17l.4432.6496 2.3436 3.5214.1214 1.0807-.17.3521-.6071.2125-.6679-.1214-1.3721-1.9246L14.38 17.959l-1.1414-1.9428-.1397.079-.674 7.2552-.3156.3703-.7286.2793-.6071-.4614-.3218-.7468.3218-1.4753.3886-1.9246.3157-1.53.2853-1.9004.17-.6314-.0121-.0425-.1397.0182-1.4328 1.9672-2.1796 2.9446-1.7243 1.8456-.4128.164-.7164-.3704.0667-.6618.4008-.5889 2.386-3.0357 1.4389-1.882.929-1.0868-.0062-.1579h-.0546l-6.3385 4.1164-1.1293.1457-.4857-.4554.0608-.7467.2307-.2429 1.9064-1.3114Z"/></svg>Add to Claude</a>
<a class="cta-btn" href="https://chatgpt.com/plugins/plugin_asdk_app_6a5a6774ddc08191a0750a0dc4b10b97" target="_blank" rel="noopener noreferrer" onclick="gtag('event', 'mcp_addToChatGPT')" style="display:inline-flex;align-items:center;gap:0.5rem;padding:0.7rem 1.4rem;border:1px solid rgba(255,255,255,0.25);border-radius:0.5rem;background-color:#000000;color:#ffffff;font-weight:600;font-size:1rem;line-height:1;text-decoration:none;"><svg width="18" height="18" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z"/></svg>Add to ChatGPT</a>
</div>
# Alpha Vantage MCP Server
The official Alpha Vantage API MCP server enables LLMs and agentic workflows to seamlessly interact with real-time and historical stock market data through the Model Context Protocol (MCP). Add this server to your favorite apps such as Claude, Claude Code, Cursor, VS Code, and many more to give them access to comprehensive financial data.
---
## Quickstart
To use the server, <a href="https://www.alphavantage.co/support/#api-key" onclick="gtag('event', 'mcp_getKey')">get your free Alpha Vantage API key</a>, copy it to your clipboard, then follow the instructions below for the agentic tool/platform of your interest.
The Alpha Vantage functions are exposed directly as MCP tools. MCP clients discover the available tools with `tools/list` and invoke them with `tools/call`.
⭐ View MCP source code on [Github](https://github.com/alphavantage/alpha_vantage_mcp)
👉 Any questions? Please contact support@alphavantage.co
### Connection Examples
**Remote Server Connection (Recommended, OAuth):**
```
https://mcp.alphavantage.co/mcp
```
When you connect, an authentication page opens where you enter and authorize your Alpha Vantage API key. If you would like to update/rotate the API key in the future, simple disconnect then reconnect the MCP server and enter the new key in the authentication page.
**Remote Server Connection (Legacy, API key in URL, deprecated):**
```
https://mcp.alphavantage.co/mcp?apikey=YOUR_API_KEY
```
**Local Server Connection:**
```
uvx marketdata-mcp-server YOUR_API_KEY
```
### Setup Instructions by Platform
💬📊 _Chatbots_
<details>
<summary><b>⭐ (Anthropic-Verified Connector) Install in Claude</b></summary>
**Requirements:**
- Any free or paid Claude account
📺 Watch the **setup tutorial**. (Click image below.)
[](https://www.youtube.com/watch?v=-I7auJJ4jy8)
#### Claude Remote Server Connection (Recommended, OAuth)
The Alpha Vantage MCP Server is already listed in Claude's official Connectors directory. Getting started is easy:
1. Go to [https://claude.ai/new#settings/customize-connectors](https://claude.ai/new#settings/customize-connectors) (Web) or Settings → Connectors (Desktop)
2. Click the "Add" button in the upper-right corner and choose "Browse connectors" in the dropdown menu
3. Search for "Alpha Vantage" in the search box
4. Click on the "Alpha Vantage MCP Server" tile returned by the search result
5. Click "Connect" near the top-right of the page
6. Enter your Alpha Vantage API key in the pop-up authentication page
7. Click "Authorize Access"
If you would like to update/rotate the API key in the future, simply disconnect then reconnect to the MCP server and follow steps #6 and #7 again. This brief video shows the key rotation process:
[](https://www.youtube.com/watch?v=R36OcQXUNhM)
#### Claude Local Server Connection
See [Claude Desktop MCP docs](https://modelcontextprotocol.io/quickstart/user) for more info.
Install `uv` (a [modern Python package](https://docs.astral.sh/uv/) and project manager):
```bash
curl -LsSf https://astral.sh/uv/install.sh | sh
```
Open Claude Desktop developer settings and edit your `claude_desktop_config.json` file to add the following configuration:
```json
{
"mcpServers": {
"alphavantage": {
"command": "uvx",
"args": ["marketdata-mcp-server", "YOUR_API_KEY"]
}
}
}
```
Replace `YOUR_API_KEY` with your actual Alpha Vantage API key.
</details>
<details>
<summary><b>⭐ (OpenAI-Verified Connector) Install in ChatGPT</b></summary>
**Requirements:**
- Any free or paid ChatGPT account
#### ChatGPT Remote Server Connection (Recommended, OAuth)
The Alpha Vantage MCP Server is already listed in ChatGPT's official app directory. Getting started is easy:
1. In ChatGPT, click **Plugins**
2. Type "Alpha Vantage" into the **Search plugins** bar
3. Click the **+** (or **Install**) button on the Alpha Vantage result.
4. Enter your Alpha Vantage API key in the pop-up authentication page
5. Click "Authorize Access"
If you would like to update/rotate the API key in the future, simply disconnect then reconnect the MCP server and follow steps #4 and #5 again.
Test your connection with a sample query:
```
Give me last week's OHLCV data for IBM
```
📺 Below are a few examples of ChatGPT performing various stock analysis & charting tasks:
[](https://www.youtube.com/watch?v=LBuHa8Ymw-0)
</details>
<details>
<summary><b>Install in Grok</b></summary>
**Requirements:**
- SuperGrok (or higher tier)
**Setup:**
1. Click the `+` button → **Connectors** → **Add connector** → **Custom**
2. **Name**: Alpha Vantage MCP Server (or whatever you prefer)
3. **Server URL**: `https://mcp.alphavantage.co/mcp?apikey=YOUR_API_KEY` (replace `YOUR_API_KEY` with your actual Alpha Vantage API key).
4. Click **Add Connector**
</details>
🤖📈 _Agentic systems_
<details>
<summary><b>⭐ (Microsoft-Verified Connector) Connect in Microsoft Azure AI Foundry</b></summary>
**Requirements:**
- Azure subscription with access to [Azure AI Foundry](https://ai.azure.com)
📺 Watch the **setup tutorial**. (Click image below.)
[](https://www.youtube.com/watch?v=_Du-NkmevK0)
#### Microsoft Azure AI Foundry — Agent Service Connection
To connect a Foundry agent to this MCP server:
1. Open your agent (or Create Agent from Home Dashboard) in Azure AI Foundry's Agent playground or Agent designer.
2. In the **Tools** section of the agent configuration, click **Add** → **Browse All Tools**. Select the **Catalog** tab, then search for **Alpha Vantage MCP Server** or filter by **Finance** under the **Category** filter. Click **Create**.
3. Configure the connection with the following settings:
- **Name:** Accept the default generated name, or enter your own
- *(read-only)* **Remote MCP Server endpoint:** `https://mcp.alphavantage.co/mcp`
- *(read-only)* **Authentication:** Key-based
- **Credential — apikey:** Enter your Alpha Vantage API key
4. Click **Connect**.
**Recommended Agent Instructions:**
Add the following to your agent's system prompt to optimize performance:
```
You are a helpful financial agent with access to market data through Alpha Vantage MCP Server.
The Alpha Vantage functions (TIME_SERIES_DAILY, RSI, COMPANY_OVERVIEW, etc.) are exposed
directly as MCP tools. Call them by name with their parameters, e.g.
TIME_SERIES_DAILY(symbol="IBM", outputsize="compact").
Always use Alpha Vantage MCP Server for market data queries. Do not answer from prior knowledge or web search.
```
</details>
<details>
<summary><b>Install in Hermes Agent (Nous Research)</b></summary>
**Requirements:**
- Hermes Agent installed with the `hermes` CLI available
#### Hermes Remote Server Connection (Recommended, OAuth)
Add the server and start the authorization flow:
```bash
hermes mcp add alphavantage --url https://mcp.alphavantage.co/mcp --auth oauth
hermes mcp login alphavantage
```
Or configure it directly in `config.yaml`:
```yaml
mcp_servers:
alphavantage:
url: https://mcp.alphavantage.co/mcp
auth: oauth
```
A browser consent page opens where you enter and authorize your Alpha Vantage API key. If you would like to update/rotate the API key in the future, run `hermes mcp login alphavantage` (or `hermes mcp reauth alphavantage`) again and enter the new key on the consent page.
Verify the connection with:
```bash
hermes mcp test alphavantage
```
#### Hermes Remote Server Connection (API key in URL)
For non-interactive environments (e.g., terminal-only setups where the browser-based OAuth flow is not possible), put the API key in the server URL instead. Add the server to your `config.yaml` under `mcp_servers`:
```yaml
mcp_servers:
alphavantage:
url: https://mcp.alphavantage.co/mcp?apikey=YOUR_API_KEY
```
Replace `YOUR_API_KEY` with your actual Alpha Vantage API key. To update/rotate the API key, simply change the key in the URL.
Verify the connection with:
```bash
hermes mcp test alphavantage
```
</details>
<details>
<summary><b>Install in 🦞OpenClaw🦞</b></summary>
**Requirements:**
- Mac with Apple Silicon (or dedicated Mac mini)
- LLM API Key (OpenAI used in demo)
- Messaging Platform Bot Token (Telegram used in demo)
📺 Watch the **setup tutorial** (click image below)
[](https://www.youtube.com/watch?v=Z6DjYKN4uos)
- [View the detailed installation guide from GitHub Gist](https://gist.github.com/gabriel1l/2e6ebe57e9a17983aa8596fd7c5bcdc7)
- For additional support links, please check the video description on YouTube.
</details>
<details>
<summary><b>Configure in OpenAI Agent Builder</b></summary>
**Requirements:**
- OpenAI account with [access to Agent Builder](https://platform.openai.com/docs/guides/agents) (e.g., billing details added, organization verified)
📺 Watch the **setup tutorial**. (Click image below.)
[](https://www.youtube.com/watch?v=2Rsvzjn8hwE)
#### OpenAI Agent Builder Connection
To connect OpenAI Agent Builder to this MCP server:
1. Do not add a separate MCP Server object. Instead, click on your agent in OpenAI Agent Builder to add the MCP Server directly to the agent.
2. Find the Tools section of the agent and click the + button to add a new tool
3. Select MCP Server
4. Click "+ Server" in the upper right of the "Add MCP server" menu
5. Configure the MCP server with the following settings:
- URL: `https://mcp.alphavantage.co/mcp`
- Label: `Alpha Vantage MCP Server` (or any name you prefer)
- Description: `Financial market data and technical indicators` (or any description you prefer)
- Authentication: Select "Access token / API key" (should be default)
- Access Token: Enter your Alpha Vantage API key
6. Click Connect
7. If successful, the next prompt will display all the tools. Scroll to the bottom and click Add.
**Recommended Agent Instructions:**
Add the following instruction to your agent's configuration to optimize performance:
```
You are a helpful financial agent with access to market data through Alpha Vantage MCP Server.
The Alpha Vantage functions (TIME_SERIES_DAILY, RSI, COMPANY_OVERVIEW, etc.) are exposed
directly as MCP tools. Call them by name with their parameters, e.g.
TIME_SERIES_DAILY(symbol="AAPL", outputsize="compact").
```
</details>
<details>
<summary><b>Install in OpenAI Agents SDK</b></summary>
To use the Alpha Vantage MCP server with OpenAI Agents SDK, see our [example agent](https://github.com/alphavantage/alpha_vantage_mcp/blob/main/examples/agent/README.md) that demonstrates:
- Interactive financial analysis agent
- Session management for conversation continuity
- Real-time tool execution with Alpha Vantage data
- Support for both HTTP and stdio MCP connections
The example includes a complete setup guide and configuration templates.
</details>
💻💵 _Coding tools_
<details>
<summary><b>⭐ (Anthropic-Verified Connector) Install in Claude Code</b></summary>
**Requirements:**
- Any free or paid Claude account
#### Claude Remote Server Connection (Recommended, OAuth)
The Alpha Vantage MCP Server is already listed in Claude's official Connectors directory. Getting started is easy:
1. Go to [https://claude.ai/new#settings/customize-connectors](https://claude.ai/new#settings/customize-connectors) (Web) or Settings → Connectors (Desktop)
2. Click the "Add" button in the upper-right corner and choose "Browse connectors" in the dropdown menu
3. Search for "Alpha Vantage" in the search box
4. Click on the "Alpha Vantage MCP Server" tile returned by the search result
5. Click "Connect" near the top-right of the page
6. Enter your Alpha Vantage API key in the pop-up authentication page
7. Click "Authorize Access"
If you would like to update/rotate the API key in the future, simply disconnect then reconnect the MCP server and follow steps #6 and #7 again. [This brief video](https://www.youtube.com/watch?v=R36OcQXUNhM) shows the key rotation process.
#### Claude Code Local Server Connection
First, install `uv` (a [modern Python package](https://docs.astral.sh/uv/) and project manager):
```bash
curl -LsSf https://astral.sh/uv/install.sh | sh
```
Then run:
```bash
claude mcp add alphavantage -- uvx marketdata-mcp-server YOUR_API_KEY
```
Replace `YOUR_API_KEY` with your actual Alpha Vantage API key.
Run `claude` in your terminal from your project directory.
Then connect with:
```
/mcp
```
</details>
<details>
<summary><b>⭐ (OpenAI-Verified Connector) Install in OpenAI Codex</b></summary>
**Requirements:**
- Any free or paid ChatGPT account
See [OpenAI Codex](https://github.com/openai/codex) for more information.
> **Note:** Codex and ChatGPT share the same account, so a plugin installed in one should be available for the other.
#### Codex Remote Server Connection via ChatGPT App (Recommended, OAuth)
The Alpha Vantage MCP Server is already listed in ChatGPT's official app directory. Getting started is easy:
1. In Codex, click **Plugins**
2. Type "Alpha Vantage" into the **Search plugins** bar
3. Click the **+** (or **Install**) button on the Alpha Vantage result.
4. Enter your Alpha Vantage API key in the pop-up authentication page
5. Click "Authorize Access"
If you would like to update/rotate the API key in the future, simply disconnect then reconnect the MCP server and follow steps #4 and #5 again.
Test your connection with a sample query:
```
Give me last week's OHLCV data for IBM
```
📺 Watch the **tutorial**. (Click image below.)
> ⚠️ **Legacy setup notice:** The initial connection steps demonstrate the legacy local method. For new installations, we strongly recommend following the OAuth instructions above.
Starting at **[01:41](https://www.youtube.com/watch?v=8exfs5wpTU0&t=101s)**, the video covers troubleshooting and building end-to-end applications powered by Alpha Vantage market data and dynamic visualizations.
[](https://www.youtube.com/watch?v=8exfs5wpTU0)
- [Download the companion .md file from Github Gist.](https://tinyurl.com/7uwdd6ud)
- For additional support links, please check the video description on YouTube.
#### Codex Remote Server Connection via CLI (Alternative, OAuth)
Prefer the command line? Getting started is easy:
1. Add the server by running:
```bash
codex mcp add alphavantage --url https://mcp.alphavantage.co/mcp
```
2. Codex will open your browser. Enter your Alpha Vantage API key in the pop-up authentication page
3. Click "Authorize Access"
4. Run `codex` from your project directory
5. Verify the connection with:
```text
/mcp
```
If you would like to update/rotate the API key in the future, simply run `codex mcp add` again and enter the new key in the authentication page.
Test your connection with a sample query:
```
Give me last week's OHLCV data for IBM
```
</details>
<details>
<summary><b>Install in VS Code (Visual Studio Code)</b></summary>
See [VS Code MCP docs](https://code.visualstudio.com/docs/copilot/chat/mcp-servers) for more info.
Create `.vscode/mcp.json` (your VS Code MCP config file) in your workspace, and paste into it one of the following configurations, depending on whether you’re connecting remotely or running the server locally.
#### VS Code Remote Server Connection
Paste the following into `.vscode/mcp.json`:
```json
{
"servers": {
"alphavantage": {
"type": "http",
"url": "https://mcp.alphavantage.co/mcp?apikey=YOUR_API_KEY"
}
}
}
```
Replace `YOUR_API_KEY` with your actual Alpha Vantage API key.
#### VS Code Local Server Connection
First, install `uv` (a [modern Python package](https://docs.astral.sh/uv/) and project manager):
```bash
curl -LsSf https://astral.sh/uv/install.sh | sh
```
Then, paste the following into `.vscode/mcp.json`:
```json
{
"servers": {
"alphavantage": {
"type": "stdio",
"command": "uvx",
"args": ["marketdata-mcp-server", "YOUR_API_KEY"]
}
}
}
```
Replace `YOUR_API_KEY` with your actual Alpha Vantage API key.
Open the Chat view and select Agent mode
</details>
<details>
<summary><b>Install in Continue (Extension for VS Code, JetBrains)</b></summary>
See [Continue MCP docs](https://docs.continue.dev/customize/deep-dives/mcp) for more information. Continue uses its own configuration format (not VS Code's mcp.json).
Create `.continue/mcpServers/alphavantage.yaml` in your workspace, and paste into it one of the following configurations, depending on whether you’re connecting remotely or running the server locally. (Recommended: Remote)
#### Continue Remote Server Connection
Paste the following into `.continue/mcpServers/alphavantage.yaml`:
```yaml
name: Alpha Vantage MCP Server
version: 1.0
schema: v1
mcpServers:
- name: alphavantage
type: streamable-http
url: https://mcp.alphavantage.co/mcp?apikey=YOUR_API_KEY
```
Replace `YOUR_API_KEY` with your actual Alpha Vantage API key.
#### Continue Local Server Connection
First, install `uv` (a [modern Python package](https://docs.astral.sh/uv/) and project manager):
```bash
curl -LsSf https://astral.sh/uv/install.sh | sh
```
Then, paste the following into `.continue/mcpServers/alphavantage.yaml`:
```yaml
name: Alpha Vantage MCP Server
version: 1.0
schema: v1
mcpServers:
- name: alphavantage
type: stdio
command: uvx
args:
- marketdata-mcp-server
- YOUR_API_KEY
```
Replace `YOUR_API_KEY` with your actual Alpha Vantage API key.
Open the Continue panel and select Agent mode. Set up your LLM provider.
</details>
<details>
<summary><b>Install in Cursor</b></summary>
See [Cursor MCP docs](https://docs.cursor.com/context/model-context-protocol) for more information.
Paste one of the following configurations into your Cursor `~/.cursor/mcp.json` file, depending on whether you’re connecting remotely or running the server locally. You may also install in a specific project by creating `.cursor/mcp.json` in your project folder.
#### Cursor Remote Server Connection
Configure Cursor by editing `~/.cursor/mcp.json`:
```json
{
"mcpServers": {
"alphavantage": {
"url": "https://mcp.alphavantage.co/mcp?apikey=YOUR_API_KEY"
}
}
}
```
Replace `YOUR_API_KEY` with your actual Alpha Vantage API key.
#### Cursor Local Server Connection
First, install `uv` (a [modern Python package](https://docs.astral.sh/uv/) and project manager):
```bash
curl -LsSf https://astral.sh/uv/install.sh | sh
```
Then, paste the following into your Cursor `~/.cursor/mcp.json` file:
```json
{
"mcpServers": {
"alphavantage": {
"command": "uvx",
"args": ["marketdata-mcp-server", "YOUR_API_KEY"]
}
}
}
```
Replace `YOUR_API_KEY` with your actual Alpha Vantage API key.
</details>
<details>
<summary><b>Install in Gemini CLI</b></summary>
See [Gemini CLI Configuration](https://google-gemini.github.io/gemini-cli/docs/tools/mcp-server.html) for more information.
Run one of the following commands, depending on whether you’re connecting remotely or running the server locally.
**Gemini CLI Remote Server Connection (Recommended):**
```bash
gemini mcp add -t http alphavantage https://mcp.alphavantage.co/mcp?apikey=YOUR_API_KEY
```
Replace `YOUR_API_KEY` with your actual Alpha Vantage API key.
**Gemini CLI Local Server Connection:**
Install `uv` (a [modern Python package](https://docs.astral.sh/uv/) and project manager):
```bash
curl -LsSf https://astral.sh/uv/install.sh | sh
```
Then run:
```bash
gemini mcp add alphavantage uvx marketdata-mcp-server YOUR_API_KEY
```
Replace `YOUR_API_KEY` with your actual Alpha Vantage API key.
**Manual Configuration:**
1. Open the Gemini CLI settings file. The location is `~/.gemini/settings.json` (where `~` is your home directory).
2. Add the following to the `mcpServers` object in your `settings.json` file (replace `YOUR_API_KEY` with your actual Alpha Vantage API key):
```json
{
"mcpServers": {
"alphavantage": {
"httpUrl": "https://mcp.alphavantage.co/mcp?apikey=YOUR_API_KEY"
}
}
}
```
Or, for a local server (replace `YOUR_API_KEY` with your actual Alpha Vantage API key):
```json
{
"mcpServers": {
"alphavantage": {
"command": "uvx",
"args": ["marketdata-mcp-server", "YOUR_API_KEY"]
}
}
}
```
If the `mcpServers` object does not exist, create it.
</details>
💡💡 _I'm just exploring_
Just exploring what to build? Check out the [Trading Agents stock research tool](https://trading-agents.ai/) (#1 trending on Github), which is powered by Alpha Vantage market data with no setup required.
## Examples
Below are four example prompts and Claude's expected responses when using the MCP server.
### 1. Fetch and display structured market data across assets
**Prompt:** “Give me last week’s OHLCV data for IBM”
Expected Behavior:
- Claude will select and invoke the correct tool, in this case the TIME_SERIES_DAILY function.
- Claude will make the necessary request to the TIME_SERIES_DAILY function and receive the relevant response.
- Claude will then respond directly in the chat interface with both text and image content:
Here's IBM's OHLCV data for last week (March 16–20, 2026):
<img width="751" height="348" alt="IBM_price" src="https://github.com/user-attachments/assets/6316329d-81a6-4972-a857-f059ceccf040" />
IBM had a strong Tuesday rally to $256.11, then pulled back through the rest of the week. Friday saw a sharp selloff to close at the session low of $241.77 on more than double the average weekly volume — likely some notable news or broad market pressure driving that move.
### 2. Use technical indicators and price data to conduct technical analysis
**Prompt:** “Get NVDA’s hourly price data for the last two days. Compute RSI as well, and plot both hourly with guidelines at 30 and 70 for RSI”
Expected Behavior:
- Claude will select and invoke the correct tools, in this case the TIME_SERIES_INTRADAY function and the RSI function.
- Claude will make two separate requests, one to the TIME_SERIES_INTRADAY function and one to the RSI function. Claude will receive the relevant responses.
- Claude will then make an HTML artifact with the requested visualizations:
<img width="770" height="892" alt="NVDA_RSI" src="https://github.com/user-attachments/assets/f9e36e1a-d1d2-4816-b687-95e4c35d91f8" />
### 3. Visualize fundamental data
**Prompt:** “Help me visualize AAPL’s earnings surprise trends for the past 4 quarters. Compare actual EPS to analyst estimates”
Expected Behavior:
- Claude will select and invoke the correct tool, in this case the EARNINGS function.
- Claude will make the necessary request to the EARNINGS function and receive the relevant response.
- Claude will do any necessary calculations on top of the returned data, and create an HTML artifact:
<img width="781" height="842" alt="AAPL_earnings" src="https://github.com/user-attachments/assets/714d7eb9-e210-4008-9757-5896c8eabb4d" />
### 4. Compare performance across asset classes
**Prompt:** “Compare gold, silver, and Bitcoin performance over the past 5 years”
Expected Behavior:
- Claude will select and invoke the correct tools, in this case the TIME_SERIES_MONTHLY function and the DIGITAL_CURRENCY_MONTHLY function.
- Claude will make three separate requests, one to the TIME_SERIES_INTRADAY function using the GLD symbol, one to the TIME_SERIES_INTRADAY function using the SLV symbol, and one to the DIGITAL_CURRENCY_MONTHLY function using the BTC symbol. Claude will receive the relevant responses.
- Claude will do any necessary calculations on top of the returned data, and create an HTML artifact:
<img width="770" height="756" alt="Commodity_price" src="https://github.com/user-attachments/assets/953c5bcb-1b30-4880-a78b-7bc2ae3a8a70" />
## Tools Reference
**Note:** The tools listed below are exposed directly as MCP tools and can be called by name.
| Category | Tools |
|----------|-------|
| core_stock_apis | `TIME_SERIES_INTRADAY`, `TIME_SERIES_DAILY`, `TIME_SERIES_DAILY_ADJUSTED`, `TIME_SERIES_WEEKLY`, `TIME_SERIES_WEEKLY_ADJUSTED`, `TIME_SERIES_MONTHLY`, `TIME_SERIES_MONTHLY_ADJUSTED`, `GLOBAL_QUOTE`, `REALTIME_BULK_QUOTES`, `REALTIME_BULK_BID_ASK_PRICES`, `SYMBOL_SEARCH`, `MARKET_STATUS` |
| options_data_apis | `REALTIME_OPTIONS`, `REALTIME_OPTIONS_FMV`, `HISTORICAL_OPTIONS` |
| alpha_intelligence | `NEWS_SENTIMENT`, `EARNINGS_CALL_TRANSCRIPT`, `TOP_GAINERS_LOSERS`, `INSIDER_TRANSACTIONS`, `INSTITUTIONAL_HOLDINGS`, `ANALYTICS_FIXED_WINDOW`, `ANALYTICS_SLIDING_WINDOW` |
| fundamental_data | `COMPANY_OVERVIEW`, `COMPANY_LOGO`, `INCOME_STATEMENT`, `BALANCE_SHEET`, `CASH_FLOW`, `EARNINGS`, `LISTING_STATUS`, `EARNINGS_CALENDAR`, `IPO_CALENDAR` |
| forex | `FX_INTRADAY`, `FX_DAILY`, `FX_WEEKLY`, `FX_MONTHLY` |
| cryptocurrencies | `CURRENCY_EXCHANGE_RATE`, `DIGITAL_CURRENCY_INTRADAY`, `DIGITAL_CURRENCY_DAILY`, `DIGITAL_CURRENCY_WEEKLY`, `DIGITAL_CURRENCY_MONTHLY` |
| commodities | `WTI`, `BRENT`, `NATURAL_GAS`, `COPPER`, `ALUMINUM`, `WHEAT`, `CORN`, `COTTON`, `SUGAR`, `COFFEE`, `GOLD_SILVER_SPOT`, `GOLD_SILVER_HISTORY`, `ALL_COMMODITIES` |
| economic_indicators | `REAL_GDP`, `REAL_GDP_PER_CAPITA`, `TREASURY_YIELD`, `FEDERAL_FUNDS_RATE`, `CPI`, `INFLATION`, `RETAIL_SALES`, `DURABLES`, `UNEMPLOYMENT`, `NONFARM_PAYROLL` |
| technical_indicators | `SMA`, `EMA`, `WMA`, `DEMA`, `TEMA`, `TRIMA`, `KAMA`, `MAMA`, `VWAP`, `T3`, `MACD`, `MACDEXT`, `STOCH`, `STOCHF`, `RSI`, `STOCHRSI`, `WILLR`, `ADX`, `ADXR`, `APO`, `PPO`, `MOM`, `BOP`, `CCI`, `CMO`, `ROC`, `ROCR`, `AROON`, `AROONOSC`, `MFI`, `TRIX`, `ULTOSC`, `DX`, `MINUS_DI`, `PLUS_DI`, `MINUS_DM`, `PLUS_DM`, `BBANDS`, `MIDPOINT`, `MIDPRICE`, `SAR`, `TRANGE`, `ATR`, `NATR`, `AD`, `ADOSC`, `OBV`, `HT_TRENDLINE`, `HT_SINE`, `HT_TRENDMODE`, `HT_DCPERIOD`, `HT_DCPHASE`, `HT_PHASOR` |
| ping | `PING`, `ADD_TWO_NUMBERS` |
| congress | `CONGRESS_TRADES`, `POLITICIAN_METADATA` |
### Table of Contents - API Tools
- [core_stock_apis](#core_stock_apis)
- [options_data_apis](#options_data_apis)
- [alpha_intelligence](#alpha_intelligence)
- [fundamental_data](#fundamental_data)
- [forex](#forex)
- [cryptocurrencies](#cryptocurrencies)
- [commodities](#commodities)
- [economic_indicators](#economic_indicators)
- [technical_indicators](#technical_indicators)
- [ping](#ping)
- [congress](#congress)
💡 Each of these MCP tools maps to a corresponding Alpha Vantage API endpoint. If you are interested in the full API specs (in addition to the brief tool descriptions below), please refer to the Alpha Vantage [API documentation](https://www.alphavantage.co/documentation/). For general guidance on choosing the best stock market data API and/or MCP server in the AI agent era, please refer to [this article](https://medium.com/alpha-vantage/best-stock-market-apis-in-2026-e8a982b1ea0c). Independent API & MCP aggregation platform API Market has also published a [practitioner's guide to stock data](https://api.market/blog/magicapi/stock-market-api/choosing-the-best-stock-market-api), which details when to use an MCP server vs. a conventional API (or both) for your workflow design.
### CORE_STOCK_APIS
| Category | Tool | Description |
|----------|------|-------------|
| core_stock_apis | `TIME_SERIES_INTRADAY` | Current and 20+ years of historical intraday OHLCV data |
| core_stock_apis | `TIME_SERIES_DAILY` | Daily time series (OHLCV) covering 20+ years |
| core_stock_apis | `TIME_SERIES_DAILY_ADJUSTED` | Daily adjusted OHLCV with split/dividend events |
| core_stock_apis | `TIME_SERIES_WEEKLY` | Weekly time series (last trading day of week) |
| core_stock_apis | `TIME_SERIES_WEEKLY_ADJUSTED` | Weekly adjusted time series with dividends |
| core_stock_apis | `TIME_SERIES_MONTHLY` | Monthly time series (last trading day of month) |
| core_stock_apis | `TIME_SERIES_MONTHLY_ADJUSTED` | Monthly adjusted time series with dividends |
| core_stock_apis | `GLOBAL_QUOTE` | Latest price and volume for a ticker |
| core_stock_apis | `REALTIME_BULK_QUOTES` | Realtime quotes for up to 100 symbols |
| core_stock_apis | `REALTIME_BULK_BID_ASK_PRICES` | Realtime bid and ask prices for up to 100 US-traded symbols, including extended hours |
| core_stock_apis | `SYMBOL_SEARCH` | Search for symbols by keywords |
| core_stock_apis | `MARKET_STATUS` | Current market status worldwide |
### OPTIONS_DATA_APIS
| Category | Tool | Description |
|----------|------|-------------|
| options_data_apis | `REALTIME_OPTIONS` | Realtime US options data with Greeks |
| options_data_apis | `REALTIME_OPTIONS_FMV` | Realtime US options FMV (fair market value) mark prices |
| options_data_apis | `HISTORICAL_OPTIONS` | Historical options chain for 15+ years |
### ALPHA_INTELLIGENCE
| Category | Tool | Description |
|----------|------|-------------|
| alpha_intelligence | `NEWS_SENTIMENT` | Live and historical market news & sentiment |
| alpha_intelligence | `EARNINGS_CALL_TRANSCRIPT` | Earnings call transcripts with LLM sentiment |
| alpha_intelligence | `TOP_GAINERS_LOSERS` | Top 20 gainers, losers, and most active |
| alpha_intelligence | `INSIDER_TRANSACTIONS` | Latest and historical insider transactions |
| alpha_intelligence | `INSTITUTIONAL_HOLDINGS` | Institutional ownership and holdings information |
| alpha_intelligence | `ANALYTICS_FIXED_WINDOW` | Advanced analytics over fixed windows |
| alpha_intelligence | `ANALYTICS_SLIDING_WINDOW` | Advanced analytics over sliding windows |
### FUNDAMENTAL_DATA
| Category | Tool | Description |
|----------|------|-------------|
| fundamental_data | `COMPANY_OVERVIEW` | Company information, financial ratios, and metrics |
| fundamental_data | `INCOME_STATEMENT` | Annual and quarterly income statements |
| fundamental_data | `BALANCE_SHEET` | Annual and quarterly balance sheets |
| fundamental_data | `CASH_FLOW` | Annual and quarterly cash flow statements |
| fundamental_data | `EARNINGS` | Annual and quarterly earnings data |
| fundamental_data | `LISTING_STATUS` | Listing and delisting data for equities |
| fundamental_data | `EARNINGS_CALENDAR` | Earnings calendar for upcoming earnings |
| fundamental_data | `IPO_CALENDAR` | Initial public offering calendar |
| fundamental_data | `COMPANY_LOGO` | Company logo URLs in PNG and SVG formats |
### FOREX
| Category | Tool | Description |
|----------|------|-------------|
| forex | `FX_INTRADAY` | Intraday foreign exchange rates |
| forex | `FX_DAILY` | Daily foreign exchange rates |
| forex | `FX_WEEKLY` | Weekly foreign exchange rates |
| forex | `FX_MONTHLY` | Monthly foreign exchange rates |
### CRYPTOCURRENCIES
| Category | Tool | Description |
|----------|------|-------------|
| cryptocurrencies | `CURRENCY_EXCHANGE_RATE` | Exchange rate between digital/crypto currencies |
| cryptocurrencies | `DIGITAL_CURRENCY_INTRADAY` | Intraday time series for digital currencies |
| cryptocurrencies | `DIGITAL_CURRENCY_DAILY` | Daily time series for digital currencies |
| cryptocurrencies | `DIGITAL_CURRENCY_WEEKLY` | Weekly time series for digital currencies |
| cryptocurrencies | `DIGITAL_CURRENCY_MONTHLY` | Monthly time series for digital currencies |
### COMMODITIES
| Category | Tool | Description |
|----------|------|-------------|
| commodities | `WTI` | West Texas Intermediate (WTI) crude oil prices |
| commodities | `BRENT` | Brent crude oil prices |
| commodities | `NATURAL_GAS` | Henry Hub natural gas spot prices |
| commodities | `COPPER` | Global copper prices |
| commodities | `ALUMINUM` | Global aluminum prices |
| commodities | `WHEAT` | Global wheat prices |
| commodities | `CORN` | Global corn prices |
| commodities | `COTTON` | Global cotton prices |
| commodities | `SUGAR` | Global sugar prices |
| commodities | `COFFEE` | Global coffee prices |
| commodities | `GOLD_SILVER_SPOT` | Live spot prices for gold and silver |
| commodities | `GOLD_SILVER_HISTORY` | Historical gold and silver prices (daily, weekly, monthly) |
| commodities | `ALL_COMMODITIES` | All commodities prices |
### ECONOMIC_INDICATORS
| Category | Tool | Description |
|----------|------|-------------|
| economic_indicators | `REAL_GDP` | Real Gross Domestic Product |
| economic_indicators | `REAL_GDP_PER_CAPITA` | Real GDP per capita |
| economic_indicators | `TREASURY_YIELD` | Daily treasury yield rates |
| economic_indicators | `FEDERAL_FUNDS_RATE` | Federal funds rate (interest rates) |
| economic_indicators | `CPI` | Consumer Price Index |
| economic_indicators | `INFLATION` | Inflation rates |
| economic_indicators | `RETAIL_SALES` | Retail sales data |
| economic_indicators | `DURABLES` | Durable goods orders |
| economic_indicators | `UNEMPLOYMENT` | Unemployment rate |
| economic_indicators | `NONFARM_PAYROLL` | Non-farm payroll data |
### TECHNICAL_INDICATORS
| Category | Tool | Description |
|----------|------|-------------|
| technical_indicators | `SMA` | Simple moving average (SMA) values |
| technical_indicators | `EMA` | Exponential moving average (EMA) values |
| technical_indicators | `WMA` | Weighted moving average (WMA) values |
| technical_indicators | `DEMA` | Double exponential moving average (DEMA) values |
| technical_indicators | `TEMA` | Triple exponential moving average (TEMA) values |
| technical_indicators | `TRIMA` | Triangular moving average (TRIMA) values |
| technical_indicators | `KAMA` | Kaufman adaptive moving average (KAMA) values |
| technical_indicators | `MAMA` | MESA adaptive moving average (MAMA) values |
| technical_indicators | `VWAP` | Volume weighted average price (VWAP) for intraday time series |
| technical_indicators | `T3` | Triple exponential moving average (T3) values |
| technical_indicators | `MACD` | Moving average convergence / divergence (MACD) values |
| technical_indicators | `MACDEXT` | Moving average convergence / divergence values with controllable moving average type |
| technical_indicators | `STOCH` | Stochastic oscillator (STOCH) values |
| technical_indicators | `STOCHF` | Stochastic fast (STOCHF) values |
| technical_indicators | `RSI` | Relative strength index (RSI) values |
| technical_indicators | `STOCHRSI` | Stochastic relative strength index (STOCHRSI) values |
| technical_indicators | `WILLR` | Williams' %R (WILLR) values |
| technical_indicators | `ADX` | Average directional movement index (ADX) values |
| technical_indicators | `ADXR` | Average directional movement index rating (ADXR) values |
| technical_indicators | `APO` | Absolute price oscillator (APO) values |
| technical_indicators | `PPO` | Percentage price oscillator (PPO) values |
| technical_indicators | `MOM` | Momentum (MOM) values |
| technical_indicators | `BOP` | Balance of power (BOP) values |
| technical_indicators | `CCI` | Commodity channel index (CCI) values |
| technical_indicators | `CMO` | Chande momentum oscillator (CMO) values |
| technical_indicators | `ROC` | Rate of change (ROC) values |
| technical_indicators | `ROCR` | Rate of change ratio (ROCR) values |
| technical_indicators | `AROON` | Aroon (AROON) values |
| technical_indicators | `AROONOSC` | Aroon oscillator (AROONOSC) values |
| technical_indicators | `MFI` | Money flow index (MFI) values |
| technical_indicators | `TRIX` | 1-day rate of change of a triple smooth exponential moving average (TRIX) values |
| technical_indicators | `ULTOSC` | Ultimate oscillator (ULTOSC) values |
| technical_indicators | `DX` | Directional movement index (DX) values |
| technical_indicators | `MINUS_DI` | Minus directional indicator (MINUS_DI) values |
| technical_indicators | `PLUS_DI` | Plus directional indicator (PLUS_DI) values |
| technical_indicators | `MINUS_DM` | Minus directional movement (MINUS_DM) values |
| technical_indicators | `PLUS_DM` | Plus directional movement (PLUS_DM) values |
| technical_indicators | `BBANDS` | Bollinger bands (BBANDS) values |
| technical_indicators | `MIDPOINT` | Midpoint values - (highest value + lowest value)/2 |
| technical_indicators | `MIDPRICE` | Midpoint price values - (highest high + lowest low)/2 |
| technical_indicators | `SAR` | Parabolic SAR (SAR) values |
| technical_indicators | `TRANGE` | True range (TRANGE) values |
| technical_indicators | `ATR` | Average true range (ATR) values |
| technical_indicators | `NATR` | Normalized average true range (NATR) values |
| technical_indicators | `AD` | Chaikin A/D line (AD) values |
| technical_indicators | `ADOSC` | Chaikin A/D oscillator (ADOSC) values |
| technical_indicators | `OBV` | On balance volume (OBV) values |
| technical_indicators | `HT_TRENDLINE` | Hilbert transform, instantaneous trendline (HT_TRENDLINE) values |
| technical_indicators | `HT_SINE` | Hilbert transform, sine wave (HT_SINE) values |
| technical_indicators | `HT_TRENDMODE` | Hilbert transform, trend vs cycle mode (HT_TRENDMODE) values |
| technical_indicators | `HT_DCPERIOD` | Hilbert transform, dominant cycle period (HT_DCPERIOD) values |
| technical_indicators | `HT_DCPHASE` | Hilbert transform, dominant cycle phase (HT_DCPHASE) values |
| technical_indicators | `HT_PHASOR` | Hilbert transform, phasor components (HT_PHASOR) values |
### PING
| Category | Tool | Description |
|----------|------|-------------|
| ping | `PING` | Health check tool that returns 'pong' |
| ping | `ADD_TWO_NUMBERS` | Example tool for adding two numbers |
### CONGRESS
| Category | Tool | Description |
|----------|------|-------------|
| congress | `CONGRESS_TRADES` | Congressional stock trades disclosed by US representatives, filtered by stock symbol and/or politician BioGuide ID |
| congress | `POLITICIAN_METADATA` | Complete roster of US congressional representatives with bioguide_id, district, and time-in-service metadata |
`CONGRESS_TRADES` requires at least one of `symbol` or `bioguide_id` (both may be given together to intersect the results); `datatype` defaults to `json` and also accepts `csv`. Example calls: `CONGRESS_TRADES(symbol="AAPL")` and `CONGRESS_TRADES(bioguide_id="S000510")`. Use `POLITICIAN_METADATA` to look up a politician's `bioguide_id`.
`POLITICIAN_METADATA` takes no filter or pagination arguments: every call returns the complete, deterministic roster of representatives directly from Alpha Vantage. The response is large enough to trigger the server's standard preview/CDN handling by default; pass `return_full_data=true` to receive the complete payload inline.
Both tools proxy the public Alpha Vantage `CONGRESS_TRADES` and `POLITICIAN_METADATA` endpoints and preserve upstream response fields (including `source_url`) unchanged.
Connection Info
You Might Also Like
Vibe-Trading
Vibe-Trading: Your Personal Trading Agent
ai-berkshire
Berkshire in the AI Era: A Value Investment Research Framework Based on...
hexstrike-ai
HexStrike AI is an AI-powered MCP cybersecurity automation platform with 150+ tools.
valuecell
Valuecell is a Python project for efficient data management.
tradingview-mcp
AI-assisted TradingView chart analysis — connect Claude Code to your...
tradingview-mcp
TradingView MCP Server offers real-time market analysis for crypto and stocks.