Skip to content
Skip to main content

TradeZero MCP

Connect your TradeZero account to Claude, Claude Code, ChatGPT, Perplexity, Grok, Cursor, or VS Code. Paste the hosted URL, complete OAuth 2.0 sign-in, and manage orders, positions, and short locates in natural language.

TradeZero MCP exposes trading as tools in your assistant. Add the server URL, sign in when prompted, and keep write-approval prompts on.

Hosted MCP URL

https://webapi.tradezero.com/mcp

Paste this into your assistant as a remote MCP server. Sign in with OAuth - do not put API keys in the client.

Live trading

Orders you approve through MCP are real on a live account - same fees, fills, and risk as TradeZero Platforms. Confirm paper vs live (accountType) before any write. Keep write-approval prompts on. Paper uses simulated funds only.

Before you connect: a TradeZero login and an MCP client that supports remote Streamable HTTP + OAuth 2.0.

Connect your client​

Select a platform

Plan notes

Remote custom connectors work on Free (one connector), Pro, Max, Team, and Enterprise. On Team/Enterprise, an Owner adds the connector first; members then click Connect.

3 steps

  1. Open Connectors

    Free / Pro / Max: claude.ai → Customize → Connectors → + → Add custom connector.

    Team / Enterprise: Owner adds under Organization settings → Connectors. Members open Customize → Connectors and click Connect.

  2. Paste the hosted URL

    Use Remote MCP server URL. Leave OAuth client ID/secret empty. Click Add.

    https://webapi.tradezero.com/mcp
  3. Authorize

    Complete TradeZero sign-in when prompted, then ask which accounts you can trade.

What you can do​

21 tools - 14 reads, 7 writes (6 destructive; locate_quote is a write but free until accept).

21tools
14read-only
7writes
  • Accounts, balances, P&L, open and closed positions, cash history
  • Today's orders - place, read, cancel (equities, options, multi-leg)
  • Short locates on live accounts (quote, accept, inventory, sell-back)
No market data

The hosted server does not return quotes, options chains, or charts. Supply your own limit prices.

Tools​

Read = data only. Write = changes your account - keep approval prompts on.

Accounts and PnL​

Try

Show me my buying power and whether I'm on paper or live. · How is my P&L looking today?

ToolAccessNotes
list_accountsReadStart here for accountId / accountType
get_accountReadSnapshot - buying power, option level
get_account_pnlReadAccount + per-position P&L

Positions​

ToolAccessNotes
get_positionsReadOpen lots (accountId)
get_closed_positionsReadClosed lifecycles + realized P&L

Orders​

Try

What open orders do I have? · Place a limit buy for 100 AAPL at $180. · Cancel my open AAPL order.

ToolAccessNotes
get_routesReadRoutes, types, TIFs - call before live placement
get_todays_ordersReadSession blotter
get_orderReadOne order (orderId = clientOrderId)
get_historical_ordersReadFills from startDate (~1 week)
get_historical_orders_paginatedReadSame, paginated (~1 year)
create_orderWriteEquity, option, or spread
cancel_orderWriteOne clientOrderId
cancel_all_ordersWriteAll working (symbol: null = everything)

create_order​

All fields required; send null when unused. Enums are case-sensitive (Buy, Limit, Mleg).

FieldSend
accountIdFrom list_accounts
symbolTicker, OCC, or underlying for Mleg
side / openCloseBuy/Sell + Open/Close; both null for Mleg
orderTypeMarket, Limit, Stop, StopLimit only
securityTypeStock, Option, Mleg
timeInForce / routeMust match get_routes
orderQuantityWhole integer
limitPrice / stopPriceNumbers or null
clientOrderIdFresh id per order (or null)
legsJsonJSON array string for Mleg only

Reading an order response​

Poll get_order until terminal (Filled, Canceled, Rejected). Do not cancel a Rejected order. Full order rules: Equity Trading · Options.

Short locates​

Writes need a live account. Details: Short Locates.

Try

Is BB easy to borrow? · Quote 500 shares of BB and show each offer's cost.

ToolAccessNotes
is_easy_to_borrowReadETB check
get_locate_inventoryReadActive inventory
get_locate_historyReadDay history / statuses
locate_quoteWriteFresh quoteReqId; no fee yet
accept_locateWriteFee - reuse quote id
cancel_locateWriteCancel quote or pending sell-back
sell_locateWriteCredit unused inventory

*Sent: true means queued - confirm in get_locate_history.

Cash​

ToolAccessNotes
get_cash_transactionsReadLedger up to 1 year (accountId, startDate, pagination args)

Tools that can move money​

ToolEffect
create_orderOrder to market
cancel_order / cancel_all_ordersWithdraw working orders
locate_quoteQuote only
accept_locateLocate fee
cancel_locate / sell_locateCancel or credit inventory

Try these prompts​

After you connect

  • ReadWhich TradeZero accounts can I trade, and are they paper or live?
  • ReadWhat open orders do I have right now?
  • ReadShow my buying power and today's P&L.
  • WritePlace a limit order to buy 100 shares of AAPL at $180.
  • WriteQuote a locate for 500 shares of BB and show the cost of each offer before I accept.
  • WriteCancel my open AAPL order.