alphavantage-mcp-server
Alpha Vantage MCP Server for financial data access
Documentation
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
1. Alpha Vantage API Key: Get your free API key from Alpha Vantage
2. Python 3.8+: Make sure you have Python installed
3. 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-server2. Install Dependencies
pip install -r requirements.txt3. Get Your API Key
1. Visit Alpha Vantage
2. Sign up for a free account
3. 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.pyThe 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
1. "Server disconnected" error
2. "ModuleNotFoundError: No module named 'mcp'"
3. API rate limit errors
๐ค Contributing
1. Fork the repository
2. Create a feature branch (`git checkout -b feature/amazing-feature`)
3. Commit your changes (`git commit -m 'Add amazing feature'`)
4. Push to the branch (`git push origin feature/amazing-feature`)
5. 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:
1. Check the troubleshooting section
2. Search existing GitHub issues
3. Create a new issue with detailed information about your problem
Frequently asked questions
What is alphavantage-mcp-server?
alphavantage-mcp-server is Alpha Vantage MCP Server for financial data access
How do I install alphavantage-mcp-server?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is alphavantage-mcp-server open source?
Yes โ it is hosted on GitHub at https://github.com/smani7dm/alphavantage-mcp-server.
Related MCP tools
Damn Vulnerable MCP Server Python-based implementation. Trusted by 1200+ developers. Trusted by 1200+ developers. Trusted by 1200+ developers.
A Model Context Protocol (MCP) server that enables secure interaction with MySQL databases Python-based implementation. Trusted by 900+ developers.
Query MCP enables end-to-end management of Supabase via chat interface: read & write query executions, management API support, automatic migration versioning...
Model Context Protocol with Neo4j Python-based implementation. Trusted by 700+ developers. Trusted by 700+ developers. Trusted by 700+ developers.
๐ OpenHands: Code Less, Make More for the Model Context Protocol. Enhance AI assistants with powerful integrations. Python-based implementation.
Universal memory layer for AI Agents; Announcing OpenMemory MCP - local and secure memory management. Python-based implementation.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP