alpaca-mcp-server MCP Server

This is a Model Context Protocol (MCP) server for Alpaca, allowing LLMs like Claude to interact with the Alpaca trading API. It enables trading stocks, checking positions, fetching market data, and…

Local serverstdio

What is the alpaca-mcp-server MCP Server?

alpaca-mcp-server is an MCP project maintained in the miguelyad26/alpaca-mcp-server repository. The maintainer describes its purpose as “This is a Model Context Protocol (MCP) server for Alpaca, allowing LLMs like Claude to interact with the Alpaca trading API. It enables trading stocks…”. Read the project documentation for the complete scope.

Local setup

The project provides a local client configuration using python. Follow the repository’s build and installation steps before copying it, and replace example paths with the paths on your own computer.

Configuration values

The example declares API_KEY_ID, API_SECRET_KEY. Secret-looking values have been replaced with placeholders. Required and optional labels are shown only when the documentation states them.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
get_account_info) - Get account balances and status
get_positions) - List all current positions in the portfolio
get_stock_quotesymbol) - Get the latest quote for a stock
get_stock_barssymbol, days) - Get historical price bars for a stock
get_ordersstatus, limit) - List orders with specified status
place_market_ordersymbol, side, quantity) - Place a market order
place_limit_ordersymbol, side, quantity, limit_price) - Place a limit order
cancel_all_orders) - Cancel all open orders
close_all_positionscancel_orders) - Close all open positions

How to install the alpaca-mcp-server MCP Server

{
  "mcpServers": {
    "alpaca": {
      "command": "python",
      "args": [
        "/path/to/alpaca_mcp_server.py"
      ],
      "env": {
        "API_KEY_ID": "YOUR_API_KEY_ID",
        "API_SECRET_KEY": "YOUR_API_SECRET_KEY"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
API_KEY_IDDeclared in the maintainer’s client configuration.Check documentation
API_SECRET_KEYDeclared in the maintainer’s client configuration.Check documentation