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
MiniMax MCP
Interact with MiniMax's powerful Text-to-Speech, image, and video generation APIs.
Zuora Product Catalog
An MCP server for accessing a Zuora product catalog, deployable on Cloudflare Workers.
CData eBay Analytics
Access eBay Analytics data via the CData JDBC Driver.
Coolify MCP
MCP server for Coolify API operations.
Weather
Accurate weather forecasts via the AccuWeather API (free tier available).
AWS Cognito MCP Server
An MCP server for AWS Cognito, providing authentication and user management.
Cyclops MCP
Manage Kubernetes applications safely by creating and updating Cyclops Modules for AI agents.
Coinbase Chat MCP
Access cryptocurrency data, market information, and trading insights from Coinbase's public API.
DEX Metrics MCP
Tracks DEX trading volume metrics from Dune Analytics, segmented by blockchain, aggregator, and more.
Octodet Keycloak
Administer Keycloak by managing users, realms, roles, and other resources through an LLM interface.