概览
What is Alpha_vantage?
Alpha_vantage is an MCP (Model Context Protocol) server that provides access to financial data from Alpha Vantage. It offers tools to retrieve OHLCV (Open, High, Low, Close, Volume) data, dividend data, and ETF holdings for any ticker. This server is intended for users who need to query financial market data through an MCP-compatible client.
How to use Alpha_vantage?
The server requires an Alpha Vantage API key set in the environment variable ALPHAVANTAGE_API_KEY. To configure it, add a new entry to your MCP settings with the command npx -y alpha_vantage_finance and the API key in the environment. Once running, you can call any of its three tools: get_ticker_ohlcv, get_ticker_dividend, or get_etf_holdings.
Key features of Alpha_vantage
- Retrieve OHLCV data for a specific ticker and date.
- Fetch dividend data for any ticker.
- Obtain ETF holdings data.
- Simple JSON input for all tools.
- Configured via environment variable for the API key.
Use cases of Alpha_vantage
- Get the closing price of a stock on a specific date.
- Retrieve dividend history for equities.
- Analyze the composition of an ETF by its holdings.
- Integrate financial data into an AI assistant workflow.
FAQ from Alpha_vantage
What do I need to use Alpha_vantage?
You need an Alpha Vantage API key set as the environment variable ALPHAVANTAGE_API_KEY. The server is run via npx -y alpha_vantage_finance.
What tools does Alpha_vantage provide?
Three tools: get_ticker_ohlcv (OHLCV data by date), get_ticker_dividend (dividend data), and get_etf_holdings (ETF composition). Each expects a ticker string.
How do I configure the server in my MCP settings?
Add a JSON block with the command npx -y alpha_vantage_finance and set the ALPHAVANTAGE_API_KEY in the environment section.
Does Alpha_vantage require an API key?
Yes, the environment variable ALPHAVANTAGE_API_KEY must be set to a valid Alpha Vantage API key for the tools to work.