AlphaVantage MCP Server
by lifejwang11
This is a server based on the MCP (Model Control Protocol) framework, designed to integrate with the AlphaVantage financial data API service. It encapsulates AlphaVantage's functionality into an MCP service, making it easier to integrate with other applications.
Last updated: N/A
AlphaVantage MCP Server
This is a server based on the MCP (Model Control Protocol) framework, designed to integrate with the AlphaVantage financial data API service.The more information about AlphaVantage is here
Project Overview
AlphaVantage is an API service that provides real-time and historical financial market data, including:
- Stock market data
- Forex data
- Cryptocurrency data
- Technical indicators
- Fundamental data
This project encapsulates AlphaVantage's functionality into an MCP service, making it easier to integrate with other applications.
MCP Server Installation
Prerequisites
- Python 3.12
- pip package manager
Installation Steps
- Clone the project
git clone https://github.com/lifejwang11/alphavantage-mcp
cd alphavantage-mcp
- Create and activate virtual environment (recommended)
python -m venv venv
source venv/bin/activate # Unix/macOS
# or
.\venv\Scripts\activate # Windows
- Install dependencies
pip install -r requirements.txt
- Configure environment variables
export ALPHAVANTAGE_API_KEY=your_api_key
- Start the server
python main.py
AlphaVantage Features
This MCP server supports the following core AlphaVantage functionalities:
-
Stock Market Data
- Real-time quotes
- Historical price data
- Company information
-
Technical Indicators
- Moving averages
- RSI
- MACD and more
-
Fundamental Data
- Financial statements
- Earnings reports
- Company overview
Usage Guide
-
Get AlphaVantage API Key
- Visit AlphaVantage website
- Register and obtain API key
-
Configure API Key
- Set ALPHAVANTAGE_API_KEY in environment variables
- Or configure in the configuration file
-
Service Calls
- Make calls through the MCP protocol
- Refer to API documentation for detailed interface specifications
Important Notes
- Please refer to AlphaVantage's official documentation for API rate limits
- Premium API keys are recommended for production environments to get higher rate limits
- Handle API keys securely and never expose them in public code
Contributing
Issues and Pull Requests are welcome to help improve the project.
License
MIT License
Copyright (c) 2025 lifejwang11
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.