← Trading & Brokerage

Alpaca MCP

Alpaca

OfficialRead-WriteIntermediate
claudechatgptcursorgemini
Visit WebsiteView on GitHub

Security Notice

CRITICAL β€” read-write server that can place real stock and crypto orders in a live brokerage account. ALWAYS test with paper trading API first β€” Alpaca provides a full paper trading environment at paper-api.alpaca.markets that is completely separate from live accounts. Use separate API keys for paper vs live trading β€” never mix them. Implement mandatory human confirmation before any order placement β€” never allow autonomous execution without explicit user approval per order. Restrict API key permissions to minimum required β€” use trading-only keys not account management keys. US live trading only β€” paper trading available globally.

Alpaca MCP is the official MCP server for the Alpaca commission-free brokerage β€” enabling AI agents to query portfolio data, monitor positions, and place stock and crypto orders through natural language. Read-write with real trade execution capability. ALWAYS use paper trading API for testing β€” never connect to a live account without thorough paper trading validation. Free for both paper and live trading. US live accounts only.

About Alpaca MCP

The official Alpaca MCP server connects AI agents to Alpaca's commission-free brokerage for stock and crypto trading. Agents can query account balances, monitor positions and unrealized P&L, retrieve market data, and place market, limit, stop, and trailing stop orders through natural language commands. For developers building trading AI tools, Alpaca's paper trading environment β€” available globally at no cost β€” provides a realistic sandbox for testing strategies before risking real capital. The server is read-write with real trade execution capability, making credential management and human confirmation workflows critical. Use separate API keys for paper and live trading, implement explicit human confirmation before every order, and never allow autonomous execution without per-trade user approval. Live brokerage accounts are available to US residents only β€” non-US users can use the paper trading API globally.

Use Cases

  • Build AI-powered portfolio monitoring tools that query real account data through conversation
  • Prototype algorithmic trading strategies using paper trading before risking real capital
  • Automate portfolio rebalancing workflows with human confirmation steps before order execution
  • Monitor positions and unrealized P&L across stock and crypto holdings simultaneously
  • Research market data and place orders through natural language in the same AI conversation

Available Tools

get_account

account balance, buying power, and portfolio value

get_positions

current holdings with market value and unrealized P&L

place_order

submit market, limit, stop, and trailing stop orders for stocks and crypto

get_orders

retrieve open and historical orders

cancel_order

cancel pending orders

get_market_data

real-time and historical OHLCV data for stocks and crypto

get_watchlist

retrieve watchlist holdings

get_portfolio_history

historical portfolio value over time

get_crypto_positions

crypto holdings and values separate from equity positions

get_news

market news feed for portfolio holdings

Pricing

FreeFree

Alpaca brokerage is commission-free. Paper trading API is completely free globally. Live trading requires US brokerage account. MCP server itself is free. Alpaca earns on payment for order flow and premium data.

Technical Details

Install Method

npm, pip, api-key

Compatible Clients

claude, chatgpt, cursor, gemini

Access Type

Read-Write

Target Audience

personal, smb

Available Regions

US

Release Status

GA

Last Updated

2026-07-01

More in Trading & Brokerage