Alpha Vantage
Access Alpha Vantage financial data APIs to get real-time and historical stock data, forex rates, and cryptocurrency information.
Alpha Vantage MCP Server
A Model Context Protocol (MCP) server that provides access to Alpha Vantage financial data APIs for use with Claude Desktop and other MCP-compatible applications.
🚀 Features
- Stock Data: Real-time quotes and historical daily prices
- Financial Statements: Income statements, balance sheets, and cash flow statements
- Company Information: Company overviews and earnings data
- News & Sentiment: Latest financial news with sentiment analysis
- Error Handling: Robust API error handling and rate limit management
📋 Prerequisites
- Alpha Vantage API Key: Get your free API key from Alpha Vantage
- Python 3.8+: Make sure you have Python installed
- Claude Desktop: Or another MCP-compatible application
🛠️ Installation
1. Clone the Repository
git clone https://github.com/yourusername/alphavantage-mcp-server.git
cd alphavantage-mcp-server
2. Install Dependencies
pip install -r requirements.txt
3. Get Your API Key
- Visit Alpha Vantage
- Sign up for a free account
- Copy your API key
⚙️ Configuration
For Claude Desktop
Add this configuration to your Claude Desktop config file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"alphavantage": {
"command": "python3",
"args": ["/path/to/alphavantage_server.py"],
"env": {
"ALPHAVANTAGE_API_KEY": "your_actual_api_key_here"
}
}
}
}
Important: Replace /path/to/alphavantage_server.py
with the actual path to your script and your_actual_api_key_here
with your Alpha Vantage API key.
🎯 Usage Examples
Once configured, you can ask Claude:
- "Get the current stock quote for Apple (AAPL)"
- "Show me Microsoft's latest income statement"
- "What's the latest news about Tesla stock?"
- "Get Amazon's balance sheet data"
- "Show me Google's cash flow statement"
📊 Available Functions
Function | Description |
---|---|
get_stock_quote | Current stock price and basic metrics |
get_daily_prices | Historical daily price data |
get_income_statement | Annual income statements |
get_balance_sheet | Annual balance sheet data |
get_cash_flow | Annual cash flow statements |
get_company_overview | Company fundamentals and key metrics |
get_news_sentiment | Latest news with sentiment analysis |
get_earnings | Quarterly and annual earnings data |
🔧 Testing
Test your installation by running the server directly:
export ALPHAVANTAGE_API_KEY="your_api_key"
python3 alphavantage_server.py
The server should start without errors. Press Ctrl+C
to stop.
📝 API Limits
- Free Tier: 25 requests/day for premium endpoints, 500 requests/day for standard endpoints
- Rate Limit: 5 calls/minute
- Premium Tiers: Available for higher limits
🐛 Troubleshooting
Common Issues
-
"Server disconnected" error
- Check that your API key is correct
- Verify the file path in your config
- Ensure dependencies are installed
-
"ModuleNotFoundError: No module named 'mcp'"
- Install dependencies:
pip install -r requirements.txt
- Use the correct Python path in your config
- Install dependencies:
-
API rate limit errors
- You've exceeded the free tier limits
- Wait for the rate limit to reset or upgrade your plan
🤝 Contributing
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🙏 Acknowledgments
- Alpha Vantage for providing the financial data API
- Anthropic for creating the Model Context Protocol
- The MCP community for tools and documentation
📞 Support
If you encounter any issues or have questions:
- Check the troubleshooting section
- Search existing GitHub issues
- Create a new issue with detailed information about your problem
Related Servers
Shopify MCP Server
Interact with Shopify store data using the GraphQL API.
Autodesk Platform Services
An experimental MCP server providing access to the Autodesk Platform Services (APS) API.
Multi-Cloud VM MCP Server
Manage virtual machines across multiple cloud providers, including AWS EC2, Azure Virtual Machines, and GCP Compute Engine.
Cloudglue
Connects Cloudglue to AI assistants, turning video collections into structured data for LLMs. Requires a Cloudglue API Key.
Google Ads MCP
Manage Google Ads campaigns and reporting using the Google Ads API.
Stock Market MCP Server
Provides real-time US stock market data and company financial information using the Alpha Vantage API.
PlayFab MCP Server
A middleware server that allows large language models to interact directly with PlayFab services.
Kaltura MCP Server
A server for performing secure, read-only operations on the Kaltura API.
Kubernetes MCP Server
A versatile MCP server for Kubernetes and OpenShift, distributed as a native binary, npm/Python package, or Docker image.
MCP-OpenStack-Ops
A comprehensive MCP (Model Context Protocol) server providing OpenStack cluster management and monitoring capabilities with built-in safety controls.