Alpha Vantage MCP server

Retrieves real-time financial market data from Alpha Vantage, enabling comprehensive stock analysis, investment research, and market intelligence through dynamic querying capabilities.
Back to servers
Provider
MCP-100
Release date
Mar 17, 2025
Language
TypeScript
Stats
5 stars

This Stock Market MCP Server allows you to fetch real-time stock market data and company financial information through the Alpha Vantage API. It's designed to provide stock prices, market reports, and comprehensive financial data using Model Context Protocol.

Installation

Prerequisites

  • Node.js installed on your system
  • An Alpha Vantage API key (obtain one from Alpha Vantage)

Setup Steps

  1. Clone the repository to your local machine:

    git clone <repository-url>
    cd stock-market-mcp-server
    
  2. Install dependencies:

    npm install
    
  3. Build the project:

    npm run build
    

Configuring Claude Desktop

To use this server with Claude Desktop, you need to add the server configuration:

For MacOS: Edit the configuration file at: ~/Library/Application Support/Claude/claude_desktop_config.json

For Windows: Edit the configuration file at: %APPDATA%/Claude/claude_desktop_config.json

Add this configuration:

{
  "mcpServers": {
    "stock-market-server": {
      "command": "/path/to/stock-market-server/build/index.js"
    }
  }
}

Replace /path/to/stock-market-server with the actual path to your installation.

Usage

The server provides several tools to access stock market data:

Get Stock Ticker Price

Retrieves the current price of a stock by its ticker symbol.

Parameters:

  • symbol: Stock ticker symbol (e.g., AAPL, MSFT, AMZN)

Example usage:

get_ticker_price AAPL

Get Market Report

Generates a comprehensive report on the current US market conditions.

Example usage:

get_market_report

Get Financial Statement

Retrieves financial statements for a specified company.

Parameters:

  • symbol: Stock ticker symbol
  • statement_type: Type of statement (income, balance, or cashflow)

Example usage:

get_financial_statement AAPL income

Get Company Overview

Provides key metrics and basic information about a company.

Parameters:

  • symbol: Stock ticker symbol

Example usage:

get_company_overview TSLA

Debugging

Since MCP servers communicate via standard input/output (stdio), debugging can be challenging. You can use the MCP Inspector tool:

npm run inspector

After running this command, the Inspector will provide a browser URL where you can access debugging tools.

API Rate Limits

Please be aware of Alpha Vantage API rate limits when using this server. The free API key typically has limitations on the number of requests you can make per minute and per day.

How to add this MCP server to Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "cursor-rules-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "cursor-rules-mcp"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later