MCP Catalogs
Home

alpaca-mcp-server

by alpacahq·736·Score 53

Alpaca's official MCP server enables natural language trading of stocks, ETFs, crypto, and options through AI assistants.

financedeveloper-toolsai-llm
225
Forks
22
Open issues
1 mo ago
Last commit
2d ago
Indexed

Overview

Alpaca MCP Server v2 is a comprehensive implementation of the Model Context Protocol that provides access to Alpaca's Trading API through natural language interfaces. Built with FastMCP and OpenAPI, it supports trading operations, market data access, portfolio management, and strategy development directly from LLM tools like Claude, Cursor, and VS Code. The server supports multiple asset classes including stocks, options, and cryptocurrency trading with real-time market data and various order types.

Try asking AI

After installing, here are 5 things you can ask your AI assistant:

you:Automate stock and crypto trading through natural language commands in AI assistants
you:Build and test investment strategies using LLM-powered tools
you:Access real-time market data and portfolio information directly within development environments
you:Is there backward compatibility with v1?
you:How can I limit which trading tools are available?

When to choose this

Choose this when you need AI-powered trading capabilities directly through LLM tools and want comprehensive market data for stocks, crypto, and options.

When NOT to choose this

Not suitable for users who need multi-brokerage support or require more sophisticated algorithmic trading tools beyond basic order types.

Tools this server exposes

12 tools extracted from the README
  • get_account_info

    Get account information, balances, and buying power

  • get_positions

    View current positions in the account

  • place_order

    Place market, limit, stop, or stop-limit orders

  • cancel_order

    Cancel one or more open orders

  • liquidate_position

    Close or liquidate positions

  • get_crypto_quotes

    Get current quotes for cryptocurrencies

  • get_option_chain

    Get available option contracts for a symbol

  • get_option_quote

    Get latest quote for a specific option contract

  • place_option_order

    Place orders for option contracts

  • get_market_status

    Check market status and trading hours

  • get_watchlists

    Retrieve and manage watchlists

  • get_stock_data

    Get historical bars, quotes, and trades for stocks

Comparable tools

polygon-mcpbinance-mcptraditional-trading-api

Installation

Installation

Prerequisites

  • Python 3.10+
  • uv
  • Alpaca Trading API keys
  • MCP client (Claude Desktop, Cursor, VS Code, etc.)

Setup (Claude Desktop)

Edit ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "alpaca": {
      "command": "uvx",
      "args": ["alpaca-mcp-server"],
      "env": {
        "ALPACA_API_KEY": "your_alpaca_api_key",
        "ALPACA_SECRET_KEY": "your_alpaca_secret_key"
      }
    }
  }
}

Setup (Cursor)

Add to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "alpaca": {
      "command": "uvx",
      "args": ["alpaca-mcp-server"],
      "env": {
        "ALPACA_API_KEY": "your_alpaca_api_key",
        "ALPACA_SECRET_KEY": "your_alpaca_secret_key"
      }
    }
  }
}

FAQ

Is there backward compatibility with v1?
No, v2 is a complete rewrite with different tool names, parameters, and configuration methods. See the upgrade guide for migration instructions.
How can I limit which trading tools are available?
Use the ALPACA_TOOLSETS environment variable to specify which toolsets to enable (e.g., 'stock-data,crypto-data').

On Hacker News

Recent discussion from the developer community.

Compare alpaca-mcp-server with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.