Alpaca MCP Server enables LLMs to interact with Alpaca's trading API through natural language, supporting stock/options trading, portfolio management, market data, and watchlists for Claude Desktop, Cursor, and VS Code.
View balance, margin, and account status.
List all held assets.
Detailed info on a specific position.
Close part or all of a position.
Liquidate entire portfolio.
Real-time bid/ask quote.
OHLCV historical bars with flexible timeframes (1Min, 5Min, 1Hour, 1Day, etc.).
Latest market trade price.
Most recent OHLC bar.
Comprehensive snapshot with latest quote, trade, minute bar, daily bar, and previous daily bar.
Trade-level history.
Retrieve all or filtered orders.
Place a stock order of any type (market, limit, stop, stop_limit, trailing_stop).
Cancel a specific order.
Cancel all open orders.
Place a crypto order supporting market, limit, and stop_limit types with GTC/IOC time in force.
Get option contracts with flexible filtering.
Latest bid/ask on contract.
Get Greeks and underlying.
Execute option strategy.
Exercise a held option contract, converting it into the underlying asset.
Market open/close schedule.
Holidays and trading days.
Historical and future corporate actions (e.g., earnings, dividends, splits).
Create a new list.
Modify an existing list.
Retrieve all saved watchlists.
Search asset metadata.
List all tradable instruments with filtering options.
{
"mcpServers": {
"alpaca": {
"command": "/path/to/your/alpaca-mcp-server/venv/bin/python",
"args": [
"/path/to/your/alpaca-mcp-server/alpaca_mcp_server.py"
],
"env": {
"ALPACA_API_KEY": "your_alpaca_api_key",
"ALPACA_SECRET_KEY": "your_alpaca_secret_key"
}
}
}
}