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

Order Placement

POSTPreflight single legPOSTPreflight multi legPOSTPlace orderPUTReplace orderPOSTPlace multileg orderGETGet orderDELETECancel order

Option Details

GETGet option greeksPOSTGet strategy quote
HelpFeedback

Get Started

Using the Public Hosted MCP Server

Connect your Public.com brokerage account to Claude, ChatGPT, and Perplexity through the Public-hosted MCP server. Just point each assistant at the hosted endpoint, authenticate, and start interacting with your brokerage using natural language.

Before You Get Started

  • →You will need a Public.com brokerage account. Create one at public.com/signup.
  • →An MCP-compatible client. This guide covers Claude, ChatGPT, and Perplexity.
  • →An API key. Generate one from the API settings page of your Public account.
  • →The hosted MCP server URL: https://mcp.public.com/mcp

Claude

3 steps
  1. 1

    Open Connectors

    Go to Settings and select Connectors. Click the + button, choose Add custom connector, and name your connector.
  2. 2

    Add the server URL

    Paste this URL into the Remote MCP server URL field: https://mcp.public.com/mcp then click Add.
  3. 3

    Connect and authorize

    Click Connect and complete the authorization flow in your browser.

Claude Code

7 steps
  1. 1

    Add the Public connector

    In claude.ai or the Claude Desktop app, go to Settings → Connectors, find Public, and click Add.
  2. 2

    Sign in to Public

    Sign in with your Public.com credentials when prompted. Confirm the connector shows as Connected.
  3. 3

    Start a Claude Code session

    Open a terminal and run claude to start a session. Make sure you're signed into the same Claude account you used in step 1.
  4. 4

    Open the MCP server list

    Type /mcp to see the list of available MCP servers.
  5. 5

    Select Public

    Select Public. If it's not listed, the connector wasn't added in step 1 or you're signed into a different account in the terminal.
  6. 6

    Authenticate if needed

    If Public shows as not authenticated, select Connect to launch the sign-in flow in your browser.
  7. 7

    Verify the connection

    Ask Claude Code to list your Public accounts.

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.

Perplexity Computer

4 steps

Paid plan required

Adding a custom connector to your Perplexity account requires a paid Perplexity plan. Make sure your account is on a paid tier before continuing.

  1. 1

    Open the connectors page

    Navigate to perplexity.ai/computer/connectors.
  2. 2

    Add a custom connector

    Click the + Custom connector button in the top right.The + Custom connector button on the Perplexity Computer connectors page
  3. 3

    Fill out the connector form

    In the Add custom connector form, fill out the fields as follows:
    NamePublic MCP
    MCP server URLhttps://mcp.public.com/mcp
    AuthenticationUnder Advanced, select API Key and paste your key
    TransportStreamable HTTP

    Accept the terms and click Add.

    The Add custom connector form filled out with the Public.com hosted MCP details
  4. 4

    Enable the connector

    In the Available connectors section, you should now see the Public MCP connector listed. Click on it, then click Add connector.The Public MCP connector listed under Available connectors in Perplexity Computer

Prompts to try

Once connected, start a new chat in any of these assistants and try prompts like:

  • Show me my current account balance and buying power.
  • How is my portfolio performing today?
  • What is the current price of TSLA?
  • Show me the options chain for AAPL expiring next Friday.
  • Show me my recent transactions.
  • What are my open orders?
  • Cancel my open AAPL order.
  • Find a good covered call opportunity on SPY based on my holdings.
  • Place a buy order for 1 share of NVDA at market.

Important

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