API

Get Started

WelcomeQuickstartGuidesChangelogSDKs and ToolsAdditional Info

Authorization

POSTCreate personal access token

List Accounts

GETGet accounts

Account Details

GETGet account portfolio v2GETGet history

Tax Lot Selling

GETGet unrealized tax lotsGETGet unrealized tax lots for symbolGETGet unrealized tax lots csv

Instrument Details

GETGet all instrumentsGETGet instrumentGETSearch bonds

Market Data

POSTGet quotesGETGet bond detailsPOSTGet option expirationsPOSTGet option chainGETGet bars v2GETGet bars v2 with aggregation

Orders

POSTPreflight single legPOSTPreflight multi legPOSTPlace orderPUTReplace orderPOSTSearch ordersPOSTPlace multileg orderGETGet orderDELETECancel order

Option Details

GETGet option greeksPOSTGet strategy quote
HelpFeedback

Get Started

ChatGPT & Codex Connector for Stock & Options Trading on Public MCP

Connect ChatGPT and Codex to Public.com and trade stocks, crypto, and options from your chat or terminal. Powered by the Public MCP server with OAuth sign-in.

Before You Get Started

  • →You will need a Public.com brokerage account. Create one at public.com/signup.
  • →You will need a ChatGPT account. Codex uses the same account.
  • →The hosted MCP server URL is https://mcp.public.com/mcp.

Set up ChatGPT

3 steps

Trading permissions

To place trades from ChatGPT, you may need to adjust the connector's permissions. By default, ChatGPT can require additional approval before write actions such as placing orders are allowed.

  1. 1

    Open Plugins

    In ChatGPT, click Plugins, then click the + icon in the top right next to the Search plugins bar.
  2. 2

    Complete the MCP server form

    NamePublic MCP
    Connectionhttps://mcp.public.com/mcp
    AuthenticationSelect OAuth
    Risk DisclosureCheck the server's risk box

    Click Create.

  3. 3

    Authenticate

    Follow the prompts to authenticate.

Set up Codex

3 steps
  1. 1

    Install Codex and the Codex CLI

    Install Codex and make sure the codex command is available in your terminal.
  2. 2

    Add the Public MCP server

    Run this command in your terminal:
    codex mcp add public --url https://mcp.public.com/mcp
  3. 3

    Authenticate

    Run this command and follow the OAuth flow in your browser:
    codex mcp login public

Trade with ChatGPT through Public

Once connected, ChatGPT and Codex can use the Public MCP server to retrieve live market data, review your portfolio, and place orders from a conversation.

Markets

Research and trade stocks, ETFs, options, and crypto supported by Public.

Trading access

Submit supported order types during the trading sessions available for each asset. Eligible equity orders can use extended hours.

Accounts and permissions

ChatGPT uses the accounts and trading permissions you authorize when you connect. Options strategies require the appropriate approval level.

Tools available

View balances, positions, quotes, option chains, open orders, and transaction history; run preflight checks; and submit or cancel orders.

Prompts to try

Use these examples after you connect your Public account.

  1. 01Show me my current account balance and buying power.
  2. 02How is my portfolio performing today?
  3. 03What is the current price of TSLA?
  4. 04Show me the options chain for AAPL expiring next Friday.
  5. 05Show me my recent transactions.
  6. 06What are my open orders?
  7. 07Cancel my open AAPL order.
  8. 08Find a good covered call opportunity on SPY based on my holdings.
  9. 09Place a buy order for 1 share of NVDA at market.

Important

Placing a trade through ChatGPT is a real order using real money in your Public account. Review all preflight details carefully before confirming.