- Explore MCP Servers
- mcp-alphavantage
Mcp Alphavantage
What is Mcp Alphavantage
mcp-alphavantage is an MCP server designed to interact with the Alpha Vantage API, providing access to various financial data endpoints such as stocks, options, intelligence, fundamental data, and technical indicators.
Use cases
Use cases include retrieving stock prices, analyzing options data, generating technical indicators, and integrating financial data into applications for decision-making.
How to use
To use mcp-alphavantage, clone the repository, install dependencies using npm, obtain an Alpha Vantage API key, configure the environment variable, build the server, and run it either directly or via an MCP runner.
Key features
Key features include access to multiple Alpha Vantage API endpoints, simplified integration with MCP-compatible agents, and support for various financial data types like core stocks and options.
Where to use
mcp-alphavantage can be used in financial analysis, investment applications, trading systems, and any project requiring real-time financial data.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Overview
What is Mcp Alphavantage
mcp-alphavantage is an MCP server designed to interact with the Alpha Vantage API, providing access to various financial data endpoints such as stocks, options, intelligence, fundamental data, and technical indicators.
Use cases
Use cases include retrieving stock prices, analyzing options data, generating technical indicators, and integrating financial data into applications for decision-making.
How to use
To use mcp-alphavantage, clone the repository, install dependencies using npm, obtain an Alpha Vantage API key, configure the environment variable, build the server, and run it either directly or via an MCP runner.
Key features
Key features include access to multiple Alpha Vantage API endpoints, simplified integration with MCP-compatible agents, and support for various financial data types like core stocks and options.
Where to use
mcp-alphavantage can be used in financial analysis, investment applications, trading systems, and any project requiring real-time financial data.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Content
Alpha Vantage MCP Server
A Model Context Protocol (MCP) server that exposes various Alpha Vantage API endpoints as MCP tools, providing access to financial data including core stocks, options, intelligence, fundamental data, and technical indicators. This server simplifies integrating Alpha Vantage data into MCP-compatible agents and systems.
Prerequisites
- Node.js (v18 or later recommended)
- npm (comes with Node.js)
- Alpha Vantage API key
- (Optional) MCP-compatible client or runner (e.g., VSCode extension, CLI)
Setup
-
Clone the repository or ensure you are in the project directory.
-
Install dependencies:
npm install -
Configuration:
- Obtain an Alpha Vantage API key from https://www.alphavantage.co/.
- Configure the
ALPHAVANTAGE_API_KEYenvironment variable via your MCP runner’s settings. This is the recommended method for seamless integration with the MCP client. Avoid using.envfiles for this purpose when running via an MCP runner.
Building and Running
-
Build the server:
npm run buildThis will create a
builddirectory with the compiled JavaScript code. -
Run the server:
npm run startor directly:
node build/index.js -
Via MCP runner:
Configure your MCP client to run the server using stdio transport.
Example MCP settings entry (adjust/path/to/mcp-alphavantageto your actual path and replaceYOUR_API_KEY_HEREwith your actual key):
Available Tools
The server exposes Alpha Vantage API endpoints as distinct MCP tools, categorized by function:
- Core Stocks
- Options Data
- Alpha Intelligence
- Fundamental Data
- Technical Indicators
- Forex
- Cryptocurrencies
- Commodities
- Economic Indicators
Detailed input schemas and descriptions for each tool are automatically discoverable by MCP agents connecting to the server via introspection.
Project Structure
The project follows a modular structure:
. ├── src/ │ ├── index.ts # Server entry point │ └── tools/ │ ├── index.ts # Registers all tool categories │ ├── fundamentals/ # Fundamental Data tools │ │ └── ... │ ├── indicators/ # Technical Indicators tools │ │ └── ... │ ├── intelligence/ # Alpha Intelligence tools │ │ └── ... │ ├── options/ # Options Data tools │ │ └── ... │ ├── stocks/ # Core Stocks tools │ │ └── ... │ ├── forex/ # Forex tools │ │ └── ... │ ├── crypto/ # Cryptocurrency tools │ │ └── ... │ ├── commodities/ # Commodities tools │ │ └── ... │ └── economic/ # Economic Indicators tools │ └── ... ├── memory-bank/ # Project documentation │ └── ... ├── package.json # Project dependencies and scripts ├── tsconfig.json # TypeScript configuration ├── eslint.config.js # ESLint configuration ├── .prettierrc # Prettier configuration ├── LICENSE # Project license └── README.md # This file
Caching
The server implements an in-memory Least Recently Used (LRU) cache for tool responses. This helps reduce redundant calls to the Alpha Vantage API, improving performance and adhering to rate limits.
- Mechanism: The cache stores responses based on the tool name and input parameters.
- Configurable TTLs: Each tool has a configurable Time To Live (TTL) for its cached data, defined in
src/cacheConfig.ts. This allows for different caching durations based on the update frequency of the data provided by each Alpha Vantage endpoint.
Licensing
This project is licensed under the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. See the LICENSE file for details.
Contributing
Contributions are welcome! Please follow the standard fork-and-pull request workflow.
Support
For issues or questions, please open an issue on the GitHub repository.
Dev Tools Supporting MCP
The following are the main code editors that support the Model Context Protocol. Click the link to visit the official website for more information.










