trackmcp
Back to directory
smani7dm

alphavantage-mcp-server

View on GitHub

Alpha Vantage MCP Server for financial data access

0 stars PythonServers & Infrastructure Updated Aug 7, 2025

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

bash
git clone https://github.com/yourusername/alphavantage-mcp-server.git
cd alphavantage-mcp-server

2. Install Dependencies

bash
pip install -r requirements.txt

3. 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`

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

FunctionDescription
`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:

bash
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

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

        Run your own MCP server? See who uses it and what to fix.

        Measure it with TrackMCP