Claude Code
Connect Claude Code to MT-MCP.
Requires a terminal key that's already bound to a terminal.
Add the server
Claude Code can register a remote HTTP MCP server directly from the CLI:
claude mcp add --transport http mt-mcp https://mcp.mtcontext.com/mcp/v1 \
--header "Authorization: Bearer MTMCP-YOUR-TERMINAL-KEY"Replace MTMCP-YOUR-TERMINAL-KEY with your actual terminal key. Run claude mcp list afterward to confirm mt-mcp shows up as connected.
If your Claude Code version doesn't support --transport http yet, fall back to the mcp-remote connector — the same one used for Claude Desktop — as a stdio-based bridge:
npm install -g mcp-remote
claude mcp add mt-mcp -- mcp-remote https://mcp.mtcontext.com/mcp/v1 --header "Authorization: Bearer MTMCP-YOUR-TERMINAL-KEY"Project-scoped config
To check the connection into a repo instead of your global Claude Code config, add an .mcp.json at the project root:
{
"mcpServers": {
"mt-mcp": {
"type": "http",
"url": "https://mcp.mtcontext.com/mcp/v1",
"headers": {
"Authorization": "Bearer MTMCP-YOUR-TERMINAL-KEY"
}
}
}
}If you do this, treat the terminal key as a secret the same way you would an API key — don't commit it directly; reference an environment variable if your Claude Code version supports variable interpolation in .mcp.json, or keep the file out of version control.
Verify
Start a session in the project and ask something that requires live data, e.g. "What's the current price of EURUSD?" Claude Code should call get_tick through the mt-mcp server and return a live quote.
Trading tools follow the same dry-run rules as everywhere else — see Enabling live trading for the two conditions that have to be true before dry_run: false actually executes.