Skip to main content

Alpaca

Official 💰 Finance & Trading

Official Alpaca MCP server for stock, ETF, crypto, and options trading. Real-time market data, order management, portfolio tracking, watchlists, and corporate actions. Paper trading mode for safe testing before live execution.

Tags

stock tradingcryptooptions

Tools (24)

get_account_infoget_all_positionsget_open_positionget_assetget_portfolio_historycreate_watchlistget_watchlistsget_stock_barsget_stock_quotesget_stock_latest_quoteget_stock_snapshotget_crypto_barsget_crypto_latest_quoteget_crypto_snapshotget_option_contractsget_option_snapshotget_ordersplace_stock_orderplace_crypto_orderplace_option_ordercancel_order_by_idclose_positionget_calendarget_clock

Client configuration

Cursor (.cursor/mcp.json)

{ "mcpServers": { "alpaca": { "command": "uvx", "args": [ "alpaca-mcp-server@2.1.1", "serve" ], "env": { "ALPACA_API_KEY": "your-alpaca-api-key-here", "ALPACA_SECRET_KEY": "your-alpaca-secret-key-here", "ALPACA_PAPER_TRADE": "your-alpaca-paper-trade-here" } } } }

VS Code (.vscode/mcp.json)

{ "servers": { "alpaca": { "command": "uvx", "args": [ "alpaca-mcp-server@2.1.1", "serve" ], "env": { "ALPACA_API_KEY": "your-alpaca-api-key-here", "ALPACA_SECRET_KEY": "your-alpaca-secret-key-here", "ALPACA_PAPER_TRADE": "your-alpaca-paper-trade-here" }, "type": "stdio" } } }

Replace the placeholders before connecting. Authorize in your client when prompted.

The Cursor JSON also works in Claude Desktop's local MCP configuration. Install the required runtime and local software first.

Documentation →