alpaca-mcp-server MCP Server

Alpaca MCP Server v2 is here. This version is a complete rewrite built with FastMCP and OpenAPI. If you're upgrading from v1, please read the Upgrade Guide — tool names, parameters, and…

Local serverstdio

What is the alpaca-mcp-server MCP Server?

alpaca-mcp-server is an MCP project maintained in the alpacahq/alpaca-mcp-server repository. The maintainer describes its purpose as “Alpaca MCP Server v2 is here. This version is a complete rewrite built with FastMCP and OpenAPI. If you're upgrading from v1, please read the…”. Read the project documentation for the complete scope.

Installation

The documented pypi package is alpaca-mcp-server. The configuration below comes from the maintainer’s example; adapt its paths and account values to your environment.

Configuration values

The example declares ALPACA_API_KEY, ALPACA_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_infoBalance, margin, and account status
get_account_configTrading restrictions, margin settings, PDT checks
update_account_configUpdate account configuration settings
get_portfolio_historyEquity and P/L over time
get_account_activitiesFills, dividends, transfers
get_account_activities_by_typeActivities filtered by type
get_ordersRetrieve orders with filters
get_order_by_idSingle order by ID
get_order_by_client_idSingle order by client order ID
replace_order_by_idReplace an existing open order
cancel_order_by_idCancel a specific order
cancel_all_ordersCancel all open orders
place_stock_orderStocks/ETFs (market, limit, stop, stop-limit, trailing-stop, brackets)
place_crypto_orderCrypto (market, limit, stop-limit)
place_option_orderOptions (single-leg or multi-leg)
get_all_positionsAll current positions
get_open_positionDetails for a specific position
close_positionClose a specific position
close_all_positionsLiquidate entire portfolio
exercise_options_positionExercise a held option contract
do_not_exercise_options_positionDo-not-exercise instruction
create_watchlistCreate a new watchlist
get_watchlistsList all watchlists
get_watchlist_by_idGet a specific watchlist
update_watchlist_by_idUpdate a watchlist
delete_watchlist_by_idDelete a watchlist
add_asset_to_watchlist_by_idAdd an asset to a watchlist
remove_asset_from_watchlist_by_idRemove an asset from a watchlist
get_all_assetsList assets with optional filtering
get_assetDetailed info for a specific asset
get_option_contractsOption contracts for underlying symbol(s)
get_option_contractSingle option contract by symbol or ID
get_calendarMarket calendar for a date range
get_clockCurrent market status and next open/close
get_corporate_action_announcementsCorporate action announcements
get_corporate_action_announcementSingle announcement by ID
get_stock_barsHistorical OHLCV bars
get_stock_quotesHistorical bid/ask quotes
get_stock_tradesHistorical trades
get_stock_latest_barLatest minute bar
get_stock_latest_quoteLatest quote
get_stock_latest_tradeLatest trade
get_stock_snapshotComprehensive snapshot
get_most_active_stocksMost active by volume/trade count
get_market_moversTop gainers and losers
get_crypto_barsHistorical OHLCV bars
get_crypto_quotesHistorical quotes
get_crypto_tradesHistorical trades
get_crypto_latest_barLatest minute bar
get_crypto_latest_quoteLatest quote
get_crypto_latest_tradeLatest trade
get_crypto_snapshotComprehensive snapshot
get_crypto_latest_orderbookLatest orderbook
get_option_barsHistorical OHLCV bars
get_option_tradesHistorical trades
get_option_latest_tradeLatest trade
get_option_latest_quoteLatest quote with bid/ask and exchange info
get_option_snapshotSnapshot with Greeks and IV
get_option_chainFull option chain for an underlying
get_option_exchange_codesExchange code to name mapping
get_corporate_actionsCorporate action announcements from market data
get_newsNews articles for stocks and crypto
get_fixed_income_latest_quotesLatest quotes for fixed income securities by ISIN
get_locatesList locate requests filtered by status, symbol, or date range
create_locateCreate a locate request for a short sale
get_locateGet a single locate request by ID
get_locate_quotesGet locate availability and pricing for symbols
search_alpaca_docsSearch Alpaca documentation pages and guides
fetch_alpaca_docFetch one Alpaca ReadMe documentation page by page ID
search_alpaca_api_specsSearch Alpaca API reference endpoints by topic, path, parameter, or schema term
list_alpaca_api_endpointsList endpoints for one allowed Alpaca OpenAPI spec
get_alpaca_endpoint_docsFetch reference docs for one exact Alpaca API endpoint by method and path

How to install the alpaca-mcp-server MCP Server

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

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

Configuration

VariableDescriptionRequired
ALPACA_API_KEYDeclared in the maintainer’s client configuration.Yes
ALPACA_SECRET_KEYDeclared in the maintainer’s client configuration.Yes