API

Get Started

WelcomeQuickstartGuidesChangelogSDKs and ToolsAdditional Info

Authorization

POSTCreate personal access token

List Accounts

GETGet accounts

Account Details

GETGet account portfolio v2GETGet history

Instrument Details

GETGet all instrumentsGETGet instrument

Market Data

POSTGet quotesPOSTGet 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.

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

    Create a new app

    Go to Settings → Apps → Create app.
  2. 2

    Complete the New App form

    NamePublic.com
    Connection URLhttps://mcp.public.com/mcp
    AuthenticationSelect OAuth
    Risk DisclosureCheck the Custom MCP Risk Disclosure 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.com
    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.com connector listed. Click on it, then click Add connector.The public.com 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.