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
Google Cloud Run
Official MCP Server to deploy to Google Cloud Run.
Kong Konnect MCP Server
Interact with Kong Konnect APIs to query and analyze Kong Gateway configurations, traffic, and analytics.
Kontent.ai
Create, manage, and explore your content and content model using natural language in any MCP-compatible AI tool.
Jimeng MCP Server
An MCP server that integrates with the Jimeng AI image generation service.
1Panel
An MCP server for 1Panel, a modern Linux server operation and maintenance panel.
OpenAI
A bridge to OpenAI's Chat Completion and Assistants APIs.
Cisco NSO MCP Server
An MCP server for Cisco NSO (Network Services Orchestrator) that exposes NSO data and operations as MCP primitives.
Remote MCP Server on Cloudflare
A remote MCP server for Cloudflare Workers with OAuth login support, using Cloudflare KV for storage.
My MCP Server
A remote MCP server deployable on Cloudflare Workers without authentication.
MCP Weather Server
Provides hourly weather forecasts using the AccuWeather API.