alpaca-mcp-server

Level ALocal

Alpaca’s official MCP Server lets you trade stocks, ETFs, crypto, and options, run data analysis, and build strategies in plain English directly from your favorite LLM tools and IDEs

Overview

Alpaca's official MCP server lets users trade stocks, ETFs, crypto, and options, run data analysis, and build strategies in plain English from LLM tools and IDEs like Claude, Cursor, and VS Code. It supports portfolio management and real-time market data, and is rewritten on FastMCP and OpenAPI with toolset filtering via environment variables.

⭐ 1.1kDevelopment ToolsPythonRepo ↗Updated 2026-11-13

Installation

MCP client config (paste into mcp.json)

{
  "mcpServers": {
    "alpacahq-alpaca-mcp-server": {
      "command": "uvx",
      "args": [
        "alpaca-mcp-server"
      ],
      "env": {
        "ALPACA_API_KEY": "YOUR_ALPACA_API_KEY",
        "ALPACA_SECRET_KEY": "YOUR_ALPACA_SECRET_KEY"
      }
    }
  }
}

Agent install prompt

Copy and paste into Cursor / Claude / other agents to install this MCP for you

Please read this MCP repository and install it into my current environment:
https://github.com/alpacahq/alpaca-mcp-server

Known working client config (can write into mcp.json):
{
  "mcpServers": {
    "alpacahq-alpaca-mcp-server": {
      "command": "uvx",
      "args": [
        "alpaca-mcp-server"
      ],
      "env": {
        "ALPACA_API_KEY": "YOUR_ALPACA_API_KEY",
        "ALPACA_SECRET_KEY": "YOUR_ALPACA_SECRET_KEY"
      }
    }
  }
}

Please: 1) check README for deps and env vars; 2) write config for my client; 3) if secrets are missing, tell me what to fill — do not invent values.

Related servers