← Setup guides

Connect Claude Code to an official broker MCP

Education only. Updated Nov 10, 2026. Based only on official Claude Code and broker pages (sources below). Menu names can change; check the live docs if a command looks different.

⚠ You are responsible for trades your agent places.

You are responsible for every trade your agent places. TraderStacks explains how the software works; this is not investment advice, and nothing here suggests what to buy, sell or when. Agents can make mistakes, and you can lose money.

What this guide covers

Claude Code can connect to outside services through the Model Context Protocol (MCP). This page is the Claude Code–specific path for official broker MCP servers from Robinhood, Coinbase and Interactive Brokers: how to add the server, how to keep Claude Code asking before tool calls, how to isolate funds on the broker side, and what not to paste into a chat.

It is not a trading strategy, not a list of tickers, and not a recommendation to turn trading on. For a side-by-side of the three brokers, see Compare official broker MCP setups. For click-throughs of each broker’s own screens, use the Robinhood, Coinbase and Interactive Brokers guides.

Before you add a server

  1. Pick a first job that does not need an order. A useful first request is “list my accounts or portfolios and balances.” You can refuse any tool call that would place, change or cancel an order.
  2. Isolate funds at the broker first. Official pages (checked today) describe these controls, not a Claude Code paper-trading mode:
    • Robinhood: a dedicated MCP (or Agentic) account. The connected agent gets read access to all your Robinhood accounts (including account numbers, positions, balances and order history) and can place trades only in that MCP account.
    • Coinbase: create a separate portfolio, fund it with only what you are willing to risk, and scope the agent to that portfolio. Isolated agent portfolios are spot crypto only; US Derivatives (futures) are available only in the default portfolio.
    • Interactive Brokers: standard AI Integration supports research, analysis, monitoring and trade instruction preparation. ChatGPT, Claude, Grok and Perplexity can generate trade instructions, but you review and submit every order yourself. Autonomous Trading is a separate, optional feature in a cash-funded AI Partition, without confirmation for each order, and has its own eligibility rules.
  3. Work through the AI agent safety checklist and the before-you-connect checklist.

Add the official MCP in Claude Code

Anthropic’s MCP reference says HTTP is the recommended transport for remote servers, and the command shape is:

claude mcp add --transport http <name> <url>

Run that in your terminal, not inside an already-open claude session. The official broker URLs, and the command each firm documents where it documents one, are:

BrokerOfficial MCP URLCommand on the broker’s official page
Robinhood Trading MCPhttps://agent.robinhood.com/mcp/tradingclaude mcp add robinhood-trading --transport http https://agent.robinhood.com/mcp/trading
Coinbase for Agentshttps://agents.coinbase.com/mcpclaude mcp add coinbase --transport http https://agents.coinbase.com/mcp
Interactive Brokershttps://api.ibkr.com/v1/api/mcp-publicIBKR documents the URL and says to use Add MCP Server or Custom Connector. The equivalent Claude Code command, using Anthropic’s documented syntax, is claude mcp add --transport http ibkr https://api.ibkr.com/v1/api/mcp-public.

Anthropic’s default scope is local: the server loads only in the current project and stays private to you in ~/.claude.json. Prefer that for a brokerage connection. Project scope writes .mcp.json in the repo, which you can commit and share with a team. Do not put API keys, bearer tokens or other secrets in a project-scoped file. User scope loads the server in every project on your machine.

After the add command succeeds:

  1. Start Claude Code and run /mcp.
  2. Select the server (Robinhood’s help says to select robinhood-trading and authenticate; Coinbase’s docs say to choose coinbase → Authenticate).
  3. Complete sign-in in the browser on the broker’s official login or OAuth screen. Interactive Brokers says it retains control of authentication and that your login credentials are never passed to the AI platform.
  4. On Coinbase’s approval screen, select only the portfolio you created for the agent.

Check health with claude mcp list or the /mcp panel. Anthropic shows statuses such as connected, needs authentication, or failed to connect.

Lock down permissions in Claude Code

Adding the server is not the same as letting every tool run unprompted. From Anthropic’s permissions and security pages:

  • Manual mode (the default mode; Claude Code also accepts manual as an alias) prompts for permission on first use of each tool. Use this while you are learning how the broker tools behave.
  • You can allow or deny MCP tools with rules named mcp__<server>__* (every tool on one server you configured) or mcp__<server>__<tool> (one tool). A deny rule for mcp__* matches every MCP tool across all servers. Do not add a wildcard allow for a broker server if you only want to try a balances or portfolio question.
  • bypassPermissions skips permission prompts. Anthropic says to use it only in isolated environments like containers or VMs where Claude Code cannot cause damage. Do not use it with a live brokerage connection. You can set permissions.disableBypassPermissionsMode to "disable" in a settings file to prevent the mode.
  • auto mode runs without routine prompts; a background classifier reviews actions such as shell commands and network requests. You can disable it with permissions.disableAutoMode.

Broker-side settings still matter, and they differ:

  • Robinhood: trade approvals are turned off by default for MCP accounts (external agents) and on by default for built-in Robinhood Agents. Approvals are still rolling out for MCP accounts, so not every customer has the setting. If you have it, turn it on under Safety Controls in Agent Settings for your MCP account.
  • Coinbase remote MCP uses OAuth. The local CLI uses a CDP API key instead. If you create a key, Coinbase documents enabling Trade, and Transfer only if you need moves between your own portfolios (it does not allow withdrawals to external addresses). Prefer the isolated portfolio, and do not put the key file in a chat or a shared repo. On Linux, Coinbase documents installing keyring support so secrets stay out of plaintext.
  • Interactive Brokers: stay on standard AI Integration if you want to review and submit every order. Autonomous Trading, if you later qualify and turn it on, can place supported trades in the funded AI Partition without confirming each order. IBKR says Autonomous Trading is available to individual, non-margin accounts; joint, retirement, advisor-managed, organizational and Lite accounts are not eligible. AI Integration is not available in India or Japan.

What not to paste into a chat

  • Passwords, 2FA codes, recovery phrases, and full account or routing numbers. Official broker MCP flows use the broker’s own sign-in page. Type credentials only there.
  • API key JSON, bearer tokens, and Authorization headers. Anthropic’s add-server examples include a --header "Authorization: Bearer …" form for generic HTTP servers. Official Robinhood, Coinbase remote MCP and IBKR pages describe browser sign-in or OAuth, not pasting a brokerage password into the CLI. If you ever pass a header, keep it out of project-scoped .mcp.json and out of chat logs.
  • Coinbase CDP key material. Coinbase says the key secret is only shown at creation time. Clearing a chat or deleting a local skill does not revoke access.
  • Untrusted pages or dumps piped into Claude. Anthropic warns that servers which fetch external content can expose you to prompt injection, that you should verify you trust each server before connecting it, and that you should avoid piping untrusted content directly to Claude. Anthropic reviews connectors against listing criteria before adding them to the Anthropic Directory, but does not security-audit or manage any MCP server.

If you use a Free, Pro, Max or Ultra consumer plan, Anthropic’s data-usage page says Claude Code chats from those accounts can be used to train future models when that setting is on. Do not put secrets in a chat regardless of the setting. Commercial/API terms are described separately on that page.

We do not reproduce sample prompts from broker docs that name securities or strategies.

A first check, then how to disconnect

Once /mcp shows the server as connected, ask Claude Code to list accounts or portfolios only. Review any permission prompt. If the prompt is for an order tool, deny it.

Coinbase notes that on some hosted chat clients, high-reasoning or extended-thinking modes may draft an order and stop short of placing it; that note is about those chat clients, and Coinbase still treats an explicit “place the order” request as execution. In Claude Code, you still have the permission prompt in Manual mode, plus whatever the broker requires.

If you use Coinbase research payments (x402) through the remote MCP or CLI, Coinbase says payments are capped at 5 USDC per payment, that telling the agent a research budget does not authorize a trade, and that you should ask it to cite the data and report what it spent. Additional account controls may apply.

To disconnect:

  • Anthropic: run claude mcp logout <name> in your shell before claude mcp remove <name> if you want to revoke the token at the authorization server. Removing the server deletes the tokens Claude Code stored locally, but Claude Code does not revoke them at the issuer unless you log out first. You can also use “Clear authentication” in the /mcp menu.
  • Coinbase: Account → Security → Connections, then revoke the connection.
  • Interactive Brokers: Manage Third-Party Consents in Client Portal. IBKR says revoking access does not automatically cancel pending or partially filled orders.
  • Robinhood: remove the connector in your AI app (Robinhood’s troubleshooting notes describe disconnecting and reconnecting the MCP from your AI platform).
How we checked this
Sources (official pages, opened Nov 10, 2026; each returned HTTP 200)
Connect Claude Code to tools via MCP and Connect to MCP servers (quickstart): claude mcp add --transport http, scopes, /mcp, OAuth, claude mcp logout / remove, prompt-injection warning. https://docs.anthropic.com/en/docs/claude-code/mcp redirects to the same live MCP reference.
Configure permissions: Manual / default mode, MCP rule names, bypassPermissions, disableBypassPermissionsMode, disableAutoMode.
Security: trust the server, Anthropic does not security-audit MCP servers, avoid piping untrusted content.
Data usage: consumer-plan training setting also covers Claude Code chats when that setting is on.
Robinhood: Onboarding an external agent and Trading with your agent: MCP URL, Claude Code command, read-all-accounts vs. trade-only in the MCP account, trade-approval defaults, your responsibility for trades.
Coinbase for Agents / Coinbase MCP: remote MCP URL and Claude Code command, isolated portfolio, OAuth vs. CLI key, Transfer limits, revoke path, x402 5 USDC cap, what’s supported today.
Interactive Brokers AI Integrations: MCP URL, credentials never passed to the AI platform, standard vs. Autonomous Trading, eligibility, revoke does not cancel open orders, not available in IN or JP.
Checked on
Nov 10, 2026
Not covered
Installing Claude Code itself, every permission-mode edge case, managed-enterprise MCP policy, and live testing with a funded account. We did not test these connections ourselves this session. Official pages can change; re-read them before you connect.

Frequently asked questions

What command adds a remote broker MCP in Claude Code?

Anthropic’s Claude Code docs give this shape: claude mcp add --transport http <name> <url>. Official broker pages document these URLs: Robinhood https://agent.robinhood.com/mcp/trading, Coinbase https://agents.coinbase.com/mcp, and Interactive Brokers https://api.ibkr.com/v1/api/mcp-public. Robinhood’s help shows claude mcp add robinhood-trading --transport http followed by that URL. Coinbase’s docs show claude mcp add coinbase --transport http https://agents.coinbase.com/mcp. Interactive Brokers tells you to use Add MCP Server or Custom Connector and enter its URL. Then start Claude Code, run /mcp, and authenticate on the broker’s own sign-in page.

Does Claude Code have a paper-trading or read-only mode for broker MCP tools?

Anthropic’s Claude Code MCP and permissions pages, checked Nov 10, 2026, do not describe a built-in paper-trading mode for broker connectors. What they do describe is a permission system: Manual mode (the default mode, also called default) prompts on first use of each tool, and you can allow or deny MCP tools with rules such as mcp__<server>__* or mcp__<server>__<tool>. Isolation and “can it trade?” are set on the broker side: a Robinhood MCP account, a Coinbase isolated portfolio, or IBKR’s standard AI Integration (you review and submit orders) versus optional Autonomous Trading.

What should I not paste into a Claude Code chat?

Do not paste broker passwords, 2FA codes, API key files, bearer tokens, or session cookies into a chat, a prompt, or a shared project file. Sign in only on the broker’s official OAuth or login screen that /mcp opens. Coinbase says a CDP API key secret is shown only at creation, and that deleting a local skill or clearing a chat is not the same as revoking access. Anthropic stores OAuth tokens for remote servers itself; when you remove a server it deletes the local tokens but does not revoke them at the authorization server unless you run claude mcp logout <name> first.

Is it safe to turn on bypassPermissions once the MCP is connected?

No. Anthropic says bypassPermissions skips permission prompts, and that you should only use that mode in isolated environments such as containers or VMs where Claude Code cannot cause damage. A funded brokerage connection is not that environment. You can set permissions.disableBypassPermissionsMode to "disable" in a settings file if you want to prevent the mode from being used.

Does TraderStacks tell me what to ask Claude Code to trade?

No. TraderStacks teaches the software and the safety settings only. We give no tickers, signals or strategies, and nothing here is financial advice. You are responsible for any trade your agent places.

Next: Compare official broker MCP setups · Robinhood MCP setup · Coinbase MCP setup · Interactive Brokers MCP guide · learning path · Claude / Claude Code tool page

Education only, never trade advice.