How to connect Claude Code to DT Terminal with MCP

By DT Terminal · Published

Claude Code connects to DT Terminal with one command. In DT Terminal, open Settings, MCP and press Copy next to Claude Code, then run it in your terminal: claude mcp add --transport http dt-terminal https://dtterminal.app/api/mcp. Claude Code answers that it added the server. Start Claude Code, type /mcp, pick dt-terminal and choose Authenticate. Your browser opens DT Terminal's permission screen, which says the app sends to this computer, because Claude Code runs on your machine. Reading your profile, journal, backtests and connected accounts is ticked; writing is not until you tick it, and nothing can place a trade at your broker. Tick the box that says your data will leave DT Terminal and press Allow. The command adds DT Terminal to the current project; add --scope user to have it everywhere. Settings, MCP lists every call it makes, and Disconnect stops it at once.

Step by step

One command, one sign in. Run it in the folder you want DT Terminal in, or add it for every project.

01Copy the connector URL

Open DT Terminal, go to Settings and choose MCP. The connector URL sits at the top: https://dtterminal.app/api/mcp. Copy next to Claude Code copies the whole command, URL included.

MCP needs a paid DT Terminal plan: Verified lets the app read your account, and Pro also lets it write to your journal. You need an account before you connect, because the app you connect signs in to it.

  • Settings, then MCP, then Copy next to the connector URL
  • Or press the button for your app and skip the copying
DT Terminal Settings, MCP: the connector URL with a Copy button, then Claude, ChatGPT, Claude Code, Cursor and VS Code, each with its logo and a connect button.
Settings, MCP. One URL, and a button for each app.

02Run the command

Paste the command into your terminal: claude mcp add --transport http dt-terminal https://dtterminal.app/api/mcp. Claude Code answers that it added the HTTP MCP server dt-terminal.

It is added to the project you ran it in. To have DT Terminal in every project, put --scope user after add.

  • claude mcp add, then the transport, the name and the URL
  • Add --scope user to use it in every project
A terminal running claude mcp add with the DT Terminal connector URL, and Claude Code replying that it added the HTTP MCP server dt-terminal.
The real output of the command from Settings, MCP.

03Authenticate from /mcp

Start Claude Code, type /mcp, pick dt-terminal and choose Authenticate. Your browser opens DT Terminal's permission screen.

It says the app sends to this computer, with a local address, because Claude Code runs on your machine. It is marked as an unverified app, since anyone can register one: allow it only if you just ran the command.

  • /mcp, dt-terminal, Authenticate
  • The screen says it sends to this computer
  • Back in Claude Code, dt-terminal shows as connected
The DT Terminal permission screen for Claude Code: it sends to this computer at a local address, marked as an unverified app, read only by default.
Claude Code runs on your machine, so the data comes back to it there.

04Choose what Claude Code can do

Reading is ticked and writing is not. Press Customise to see all seven permissions: read your profile, read and change your journal, read and change your backtests, read and change your connected accounts.

Tick a write only if you want Claude Code to log trades, write reflections or start a sync for you. No permission can place a trade at your broker. Then tick the box that says your data will leave DT Terminal, and press Allow.

  • Reads are on, writes stay off until you tick them
  • Nothing you allow can place a trade
  • What Claude Code reads is handled under its own terms from then on
The DT Terminal permission list opened with Customise: four reads ticked, and journal, backtest and account writes unticked, each marked READ or WRITE.
Customise opens the full list. Writes start unticked.

05What to ask Claude Code

Ask about your trades the way you would ask Edge, the coach inside DT Terminal. Claude Code reads the same journal, so its answers come from your own record rather than from trading in general.

Claude Code can also work with the numbers: export a month of trades to a CSV, chart your R by setup, or check a strategy's rules against how you actually traded it.

  • Run my weekly debrief
  • Find my leaks from the last 90 days
  • Review today against my plan

06See what it did, and disconnect

Settings, MCP lists Claude Code with when you connected it, when it was last used and what it may do. Under it, What your AI read lists the latest calls, newest first, and whether each one worked.

Disconnect stops Claude Code at once. Every token it held stops working, and it cannot read or change anything until you connect it again. What it already read stays with it.

  • Every call it made, newest first
  • Disconnect cuts it off straight away
Connected apps in DT Terminal: Claude, ChatGPT, Claude Code and Cursor with their permissions and a Disconnect button each, above the list of their recent calls.
Connected apps and their recent calls, from the demo account.

FAQ

The Model Context Protocol is an open standard for connecting an AI app to a tool it can read and use. An app that speaks it can work with any product that publishes a connector, without a separate integration for each one.

On DT Terminal, Verified to connect and read, and Pro to let Claude Code write to your journal. Claude Code itself runs on your Claude plan.

Only on Pro, and only if you tick a write permission for it. On Verified it can read but not write, and reading is the default on Pro too. With journal write it can log trades, write notes and reflections, and edit or delete what it created. Every call it makes is listed in Settings, MCP.

No. Broker connections are read only by design. The accounts write permission can start a sync and edit account details, and no permission opens order execution, whatever the app asks for.

Run /mcp, pick dt-terminal and choose Authenticate. If it still fails, check the URL is exactly https://dtterminal.app/api/mcp, remove the server with claude mcp remove dt-terminal and add it again.

Press Disconnect next to it in Settings, MCP and its access stops at once. Then run claude mcp remove dt-terminal so it stops trying.

Claude, ChatGPT, Claude Code, Cursor and VS Code each have a button in Settings, MCP and a page like this one. Any other app that supports remote MCP servers with sign in can connect with the same URL.

Bring the record, then bring Claude Code.

Start free and verify your record, then connect from Settings, MCP on Verified or Pro.

All guides