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
GCP MCP Server
Manage and interact with Google Cloud Platform (GCP) resources through an AI assistant.
Remote MCP Server on Cloudflare
A remote MCP server running on Cloudflare Workers with OAuth login support.
Spotify MCP Server
Interact with the Spotify API to manage playlists and control music playback.
Cloudflare Remote MCP Server (Authless)
An example for deploying a remote, authentication-free MCP server on Cloudflare Workers.
Solana Agent Kit MCP Server
Interact with the Solana blockchain using the Solana Agent Kit.
MCP Salesforce Connector
Interact with Salesforce data using SOQL queries and SOSL searches via an MCP server.
Remote MCP Server (Authless)
A remote MCP server deployable on Cloudflare Workers that operates without authentication.
Free USDC Transfer
Enables free USDC transfers on the Base network using a Coinbase CDP MPC Wallet.
Uptime Agent
Connects your Uptime Agent monitoring system to AI assistants.
EdgeOne Pages MCP
An MCP service for deploying HTML content to EdgeOne Pages and obtaining a publicly accessible URL.