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
Chronicle SecOps
Interact with Google's Chronicle Security Operations suite.
Webflow
Interact with Webflow APIs to list and edit your site and CMS data.
MCP Remote with Okta/Adobe IMS Authentication
A remote MCP server that uses Adobe IMS/Okta for authentication.
Remote MCP Server on Cloudflare
A remote MCP server running on Cloudflare Workers with OAuth login support.
Vidu MCP Server
Generate videos from images and manage tasks using the Vidu video generation API.
HubSpot MCP Server
Interact with HubSpot CRM data, providing access to contacts, companies, and engagement information.
Hostinger
Official Hostinger API MCP server for services managment.
AverbePorto-MCP
Integrates with the AverbePorto platform for authentication and document submission using AI tools.
Vast.ai
Interact with Vast.ai's cloud GPU services for on-demand computing power.
LlamaCloud
Connect to and manage data indexes on the LlamaCloud platform.