alpha_vantage_mcp

alphavantage/alpha_vantage_mcp

3.4

If you are the rightful owner of alpha_vantage_mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The Alpha Vantage MCP Server provides access to real-time and historical financial data through the Model Context Protocol, leveraging the Alpha Vantage API.

Tools
5
Resources
0
Prompts
0

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, get your free Alpha Vantage API key, copy it to your clipboard, then follow the instructions below for the agentic tool/platform of your interest.

👉 Any questions? Please contact support@alphavantage.co

⭐ View MCP source code on Github

Connection Examples

Remote Server Connection:

https://mcp.alphavantage.co/mcp?apikey=YOUR_API_KEY

Local Server Connection:

uvx av-mcp YOUR_API_KEY

Setup Instructions by Use Case

💬📊 Power your chatbot with financial data

Install in Claude
Remote Server Connection

To connect Claude (Web or Desktop) to this MCP server:

📺 Watch the setup tutorial - Click the image below to watch a step-by-step video guide:

Alpha Vantage MCP Setup Tutorial

📺 Already have your Alpha Vantage MCP server set up? Below are a few examples of Claude performing various stock analysis & charting tasks:

Alpha Vantage MCP Example Prompts

Query Param Option (Recommended):

  1. Go to claude.ai/settings/connectors (Web) or Settings → Connectors (Desktop)
  2. Click "Add Custom Connector"
  3. Add the MCP server URL with your API key: https://mcp.alphavantage.co/mcp?apikey=YOUR_API_KEY (replace YOUR_API_KEY with your actual Alpha Vantage API key)
  4. Click "Connect"

OAuth Option:

  1. Go to claude.ai/settings/connectors (Web) or Settings → Connectors (Desktop)
  2. Click "Add Custom Connector"
  3. Add the MCP server URL: https://mcp.alphavantage.co/mcp
  4. Click "Connect"
  5. Enter your Alpha Vantage API token
  6. Click "Authorize Access"
Local Server Connection

Open Claude Desktop developer settings and edit your claude_desktop_config.json file to add the following configuration. See Claude Desktop MCP docs for more info.

{
  "mcpServers": {
    "alphavantage": {
      "command": "uvx",
      "args": ["av-mcp", "YOUR_API_KEY"]
    }
  }
}

Replace YOUR_API_KEY with your actual Alpha Vantage API key.

Install in ChatGPT

To connect ChatGPT to this MCP server using ChatGPT Developer mode:

Requirements:

Setup:

  1. Go to ChatGPT Settings → Connectors
  2. Enable Advanced → Developer mode
  3. Add a remote MCP server with URL: https://mcp.alphavantage.co/mcp?apikey=YOUR_API_KEY (replace YOUR_API_KEY with your actual Alpha Vantage API key)
  4. In conversations, choose Developer mode from the Plus menu and select the Alpha Vantage connector

Note: While Developer mode is available for both Pro and Plus accounts, MCP tool execution is currently most reliable with Pro accounts. We're monitoring Plus plan functionality and will update this guide as improvements are made.

 

💻💵 Code up fintech apps

Install in OpenAI Codex

See OpenAI Codex for more information.

Add the following configuration to your Codex MCP server settings by editing ~/.codex/config.toml (replace YOUR_API_KEY with your actual Alpha Vantage API key):

[mcp_servers.alphavantage]
command = "uvx"
args = ["av-mcp", "YOUR_API_KEY"]

Run codex in your terminal from your project directory

Then connect with:

/mcp
Install in Visual Studio Code

Add this to your VS Code MCP config file. See VS Code MCP docs for more info.

VS Code Remote Server Connection

Create a .vscode/mcp.json file in your workspace and add this configuration (replace YOUR_API_KEY with your actual Alpha Vantage API key):

{
  "servers": {
    "alphavantage": {
      "type": "http",
      "url": "https://mcp.alphavantage.co/mcp?apikey=YOUR_API_KEY"
    }
  }
}
VS Code Local Server Connection
{
  "servers": {
    "alphavantage": {
      "type": "stdio",
      "command": "uvx",
      "args": ["av-mcp", "YOUR_API_KEY"]
    }
  }
}

Open the Chat view and select Agent mode

Install in Cursor

Pasting the following configuration into your Cursor ~/.cursor/mcp.json file is the recommended approach. You may also install in a specific project by creating .cursor/mcp.json in your project folder. See Cursor MCP docs for more info.

Cursor Remote Server Connection

Configure Cursor by editing ~/.cursor/mcp.json (replace YOUR_API_KEY with your actual Alpha Vantage API key):

{
  "mcpServers": {
    "alphavantage": {
      "url": "https://mcp.alphavantage.co/mcp?apikey=YOUR_API_KEY"
    }
  }
}
Cursor Local Server Connection
{
  "mcpServers": {
    "alphavantage": {
      "command": "uvx",
      "args": ["av-mcp", "YOUR_API_KEY"]
    }
  }
}

Replace YOUR_API_KEY with your actual Alpha Vantage API key.

Install in Claude Code

Run this command. See Claude Code MCP docs for more info.

Claude Code Remote Server Connection
claude mcp add -t http alphavantage https://mcp.alphavantage.co/mcp?apikey=YOUR_API_KEY
Claude Code Local Server Connection
claude mcp add alphavantage -- uvx av-mcp 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
Install in Gemini CLI

See Gemini CLI Configuration for details.

CLI Command (Recommended):

gemini mcp add -t http alphavantage https://mcp.alphavantage.co/mcp?apikey=YOUR_API_KEY

Local Server CLI Command:

gemini mcp add alphavantage uvx av-mcp YOUR_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:
{
  "mcpServers": {
    "alphavantage": {
      "httpUrl": "https://mcp.alphavantage.co/mcp?apikey=YOUR_API_KEY"
    }
  }
}

Or, for a local server:

{
  "mcpServers": {
    "alphavantage": {
      "command": "uvx",
      "args": ["av-mcp", "YOUR_API_KEY"]
    }
  }
}

If the mcpServers object does not exist, create it.

Replace YOUR_API_KEY with your actual Alpha Vantage API key.

 

🤖📈 Create agentic workflows for quantitative investing

Install in OpenAI Agents SDK

To use the Alpha Vantage MCP server with OpenAI Agents SDK, see our example agent 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.

 

Category Filtering

Optionally filter available tools by category using:

  • Query parameter: ?categories=core_stock_apis,alpha_intelligence

Available categories:

  • core_stock_apis - Core stock market data APIs
  • options_data_apis - Options data APIs
  • alpha_intelligence - News sentiment and intelligence APIs
  • fundamental_data - Company fundamentals and financial data
  • forex - Foreign exchange rates and data
  • cryptocurrencies - Digital and crypto currencies data
  • commodities - Commodities and precious metals data
  • economic_indicators - Economic indicators and market data
  • technical_indicators - Technical analysis indicators and calculations
  • ping - Health check and utility tools

If no categories are specified, all tools will be available.

Tools Reference

CategoryTools
core_stock_apisTIME_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, SYMBOL_SEARCH, MARKET_STATUS
options_data_apisREALTIME_OPTIONS, HISTORICAL_OPTIONS
alpha_intelligenceNEWS_SENTIMENT, EARNINGS_CALL_TRANSCRIPT, TOP_GAINERS_LOSERS, INSIDER_TRANSACTIONS, ANALYTICS_FIXED_WINDOW, ANALYTICS_SLIDING_WINDOW
fundamental_dataCOMPANY_OVERVIEW, INCOME_STATEMENT, BALANCE_SHEET, CASH_FLOW, EARNINGS, LISTING_STATUS, EARNINGS_CALENDAR, IPO_CALENDAR
forexFX_INTRADAY, FX_DAILY, FX_WEEKLY, FX_MONTHLY
cryptocurrenciesCURRENCY_EXCHANGE_RATE, DIGITAL_CURRENCY_INTRADAY, DIGITAL_CURRENCY_DAILY, DIGITAL_CURRENCY_WEEKLY, DIGITAL_CURRENCY_MONTHLY
commoditiesWTI, BRENT, NATURAL_GAS, COPPER, ALUMINUM, WHEAT, CORN, COTTON, SUGAR, COFFEE, ALL_COMMODITIES
economic_indicatorsREAL_GDP, REAL_GDP_PER_CAPITA, TREASURY_YIELD, FEDERAL_FUNDS_RATE, CPI, INFLATION, RETAIL_SALES, DURABLES, UNEMPLOYMENT, NONFARM_PAYROLL
technical_indicatorsSMA, 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
pingPING, ADD_TWO_NUMBERS

Table of Contents - API Tools

💡 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.

CORE_STOCK_APIS

CategoryToolDescription
core_stock_apisTIME_SERIES_INTRADAYCurrent and 20+ years of historical intraday OHLCV data
core_stock_apisTIME_SERIES_DAILYDaily time series (OHLCV) covering 20+ years
core_stock_apisTIME_SERIES_DAILY_ADJUSTEDDaily adjusted OHLCV with split/dividend events
core_stock_apisTIME_SERIES_WEEKLYWeekly time series (last trading day of week)
core_stock_apisTIME_SERIES_WEEKLY_ADJUSTEDWeekly adjusted time series with dividends
core_stock_apisTIME_SERIES_MONTHLYMonthly time series (last trading day of month)
core_stock_apisTIME_SERIES_MONTHLY_ADJUSTEDMonthly adjusted time series with dividends
core_stock_apisGLOBAL_QUOTELatest price and volume for a ticker
core_stock_apisREALTIME_BULK_QUOTESRealtime quotes for up to 100 symbols
core_stock_apisSYMBOL_SEARCHSearch for symbols by keywords
core_stock_apisMARKET_STATUSCurrent market status worldwide

OPTIONS_DATA_APIS

CategoryToolDescription
options_data_apisREALTIME_OPTIONSRealtime US options data with Greeks
options_data_apisHISTORICAL_OPTIONSHistorical options chain for 15+ years

ALPHA_INTELLIGENCE

CategoryToolDescription
alpha_intelligenceNEWS_SENTIMENTLive and historical market news & sentiment
alpha_intelligenceEARNINGS_CALL_TRANSCRIPTEarnings call transcripts with LLM sentiment
alpha_intelligenceTOP_GAINERS_LOSERSTop 20 gainers, losers, and most active
alpha_intelligenceINSIDER_TRANSACTIONSLatest and historical insider transactions
alpha_intelligenceANALYTICS_FIXED_WINDOWAdvanced analytics over fixed windows
alpha_intelligenceANALYTICS_SLIDING_WINDOWAdvanced analytics over sliding windows

FUNDAMENTAL_DATA

CategoryToolDescription
fundamental_dataCOMPANY_OVERVIEWCompany information, financial ratios, and metrics
fundamental_dataINCOME_STATEMENTAnnual and quarterly income statements
fundamental_dataBALANCE_SHEETAnnual and quarterly balance sheets
fundamental_dataCASH_FLOWAnnual and quarterly cash flow statements
fundamental_dataEARNINGSAnnual and quarterly earnings data
fundamental_dataLISTING_STATUSListing and delisting data for equities
fundamental_dataEARNINGS_CALENDAREarnings calendar for upcoming earnings
fundamental_dataIPO_CALENDARInitial public offering calendar

FOREX

CategoryToolDescription
forexFX_INTRADAYIntraday foreign exchange rates
forexFX_DAILYDaily foreign exchange rates
forexFX_WEEKLYWeekly foreign exchange rates
forexFX_MONTHLYMonthly foreign exchange rates

CRYPTOCURRENCIES

CategoryToolDescription
cryptocurrenciesCURRENCY_EXCHANGE_RATEExchange rate between digital/crypto currencies
cryptocurrenciesDIGITAL_CURRENCY_INTRADAYIntraday time series for digital currencies
cryptocurrenciesDIGITAL_CURRENCY_DAILYDaily time series for digital currencies
cryptocurrenciesDIGITAL_CURRENCY_WEEKLYWeekly time series for digital currencies
cryptocurrenciesDIGITAL_CURRENCY_MONTHLYMonthly time series for digital currencies

COMMODITIES

CategoryToolDescription
commoditiesWTIWest Texas Intermediate (WTI) crude oil prices
commoditiesBRENTBrent crude oil prices
commoditiesNATURAL_GASHenry Hub natural gas spot prices
commoditiesCOPPERGlobal copper prices
commoditiesALUMINUMGlobal aluminum prices
commoditiesWHEATGlobal wheat prices
commoditiesCORNGlobal corn prices
commoditiesCOTTONGlobal cotton prices
commoditiesSUGARGlobal sugar prices
commoditiesCOFFEEGlobal coffee prices
commoditiesALL_COMMODITIESAll commodities prices

ECONOMIC_INDICATORS

CategoryToolDescription
economic_indicatorsREAL_GDPReal Gross Domestic Product
economic_indicatorsREAL_GDP_PER_CAPITAReal GDP per capita
economic_indicatorsTREASURY_YIELDDaily treasury yield rates
economic_indicatorsFEDERAL_FUNDS_RATEFederal funds rate (interest rates)
economic_indicatorsCPIConsumer Price Index
economic_indicatorsINFLATIONInflation rates
economic_indicatorsRETAIL_SALESRetail sales data
economic_indicatorsDURABLESDurable goods orders
economic_indicatorsUNEMPLOYMENTUnemployment rate
economic_indicatorsNONFARM_PAYROLLNon-farm payroll data

TECHNICAL_INDICATORS

CategoryToolDescription
technical_indicatorsSMASimple moving average (SMA) values
technical_indicatorsEMAExponential moving average (EMA) values
technical_indicatorsWMAWeighted moving average (WMA) values
technical_indicatorsDEMADouble exponential moving average (DEMA) values
technical_indicatorsTEMATriple exponential moving average (TEMA) values
technical_indicatorsTRIMATriangular moving average (TRIMA) values
technical_indicatorsKAMAKaufman adaptive moving average (KAMA) values
technical_indicatorsMAMAMESA adaptive moving average (MAMA) values
technical_indicatorsVWAPVolume weighted average price (VWAP) for intraday time series
technical_indicatorsT3Triple exponential moving average (T3) values
technical_indicatorsMACDMoving average convergence / divergence (MACD) values
technical_indicatorsMACDEXTMoving average convergence / divergence values with controllable moving average type
technical_indicatorsSTOCHStochastic oscillator (STOCH) values
technical_indicatorsSTOCHFStochastic fast (STOCHF) values
technical_indicatorsRSIRelative strength index (RSI) values
technical_indicatorsSTOCHRSIStochastic relative strength index (STOCHRSI) values
technical_indicatorsWILLRWilliams' %R (WILLR) values
technical_indicatorsADXAverage directional movement index (ADX) values
technical_indicatorsADXRAverage directional movement index rating (ADXR) values
technical_indicatorsAPOAbsolute price oscillator (APO) values
technical_indicatorsPPOPercentage price oscillator (PPO) values
technical_indicatorsMOMMomentum (MOM) values
technical_indicatorsBOPBalance of power (BOP) values
technical_indicatorsCCICommodity channel index (CCI) values
technical_indicatorsCMOChande momentum oscillator (CMO) values
technical_indicatorsROCRate of change (ROC) values
technical_indicatorsROCRRate of change ratio (ROCR) values
technical_indicatorsAROONAroon (AROON) values
technical_indicatorsAROONOSCAroon oscillator (AROONOSC) values
technical_indicatorsMFIMoney flow index (MFI) values
technical_indicatorsTRIX1-day rate of change of a triple smooth exponential moving average (TRIX) values
technical_indicatorsULTOSCUltimate oscillator (ULTOSC) values
technical_indicatorsDXDirectional movement index (DX) values
technical_indicatorsMINUS_DIMinus directional indicator (MINUS_DI) values
technical_indicatorsPLUS_DIPlus directional indicator (PLUS_DI) values
technical_indicatorsMINUS_DMMinus directional movement (MINUS_DM) values
technical_indicatorsPLUS_DMPlus directional movement (PLUS_DM) values
technical_indicatorsBBANDSBollinger bands (BBANDS) values
technical_indicatorsMIDPOINTMidpoint values - (highest value + lowest value)/2
technical_indicatorsMIDPRICEMidpoint price values - (highest high + lowest low)/2
technical_indicatorsSARParabolic SAR (SAR) values
technical_indicatorsTRANGETrue range (TRANGE) values
technical_indicatorsATRAverage true range (ATR) values
technical_indicatorsNATRNormalized average true range (NATR) values
technical_indicatorsADChaikin A/D line (AD) values
technical_indicatorsADOSCChaikin A/D oscillator (ADOSC) values
technical_indicatorsOBVOn balance volume (OBV) values
technical_indicatorsHT_TRENDLINEHilbert transform, instantaneous trendline (HT_TRENDLINE) values
technical_indicatorsHT_SINEHilbert transform, sine wave (HT_SINE) values
technical_indicatorsHT_TRENDMODEHilbert transform, trend vs cycle mode (HT_TRENDMODE) values
technical_indicatorsHT_DCPERIODHilbert transform, dominant cycle period (HT_DCPERIOD) values
technical_indicatorsHT_DCPHASEHilbert transform, dominant cycle phase (HT_DCPHASE) values
technical_indicatorsHT_PHASORHilbert transform, phasor components (HT_PHASOR) values

PING

CategoryToolDescription
pingPINGHealth check tool that returns 'pong'
pingADD_TWO_NUMBERSExample tool for adding two numbers