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 the AI page 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. The AI page lists every call it makes, and Disconnect stops it at once.
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 works on every DT Terminal plan, Free included: the app can read your account and, when you allow 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

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

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

04Choose what Claude Code can do
Reading is ticked and writing is not. Press Customise to see every permission: read your profile; read and change your journal, your backtests, your charts, and what Edge remembers and watches; read your connected accounts and add notes to their orders; read your practice; and read your progress and change its settings. Deleting journal entries, backtests, chart items, or Edge alerts and routines is its own permission: it stays off unless you tick it, and All does not tick it.
Tick a write only if you want Claude Code to log trades, write reflections or add notes to your broker orders 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

05What to ask Claude Code
Ask about your trades the way you would ask Edge, the assistant inside DT Terminal. Claude Code reads the same journal, so its answers come from your own trades and notes 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.
- What can you do?
- Where am I losing money?
- Compare my winning and losing trades: what's different?
06See what it did, and disconnect
The AI page 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

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, any plan, Free included: it can connect, read and, when you allow it, write to your journal. Claude Code itself runs on your Claude plan.
Only if you tick a write permission for it, on any plan. Reading is the default. With journal write it can log trades, write notes and reflections, and edit them. Deleting is a separate permission that stays off unless you tick it, and anything it deletes goes to Recently Deleted. Every call it makes is listed on the AI page.
No. An AI app can never place, change or close a trade. The accounts write permission only adds your own notes to orders synced from your broker and reports when an account last synced, 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 on the AI page 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 on the AI page and a page like this one. Any other app that supports remote MCP servers with sign in can connect with the same URL.