Generating a Terminal Key
The one credential every MCP client and every EA connection needs.
A terminal key (MTMCP- followed by 32 hex characters) is the only credential your EA and MCP
client need. You generate it from the dashboard after subscribing — there's nothing in your
welcome email to copy.
Why a separate key
A terminal key is bound to exactly one MT4/MT5 terminal the first time that terminal connects with it. That binding is what stops a command from ever being routed to the wrong account and guarantees one key maps to one terminal context.
Generate one
- Log in to your dashboard with the email you used at checkout.
- Go to Terminal Keys → Generate New Key.
- Copy the generated key (
MTMCP-followed by 32 hex characters) somewhere safe — it's shown once.
Shown once
The plaintext key is shown one time at creation. If you lose it, generate a new key; you cannot reveal the old plaintext value again.
Bind it
A freshly generated terminal key isn't usable yet — it has to be bound to a terminal first:
- Install the MTContext Expert Advisor on the terminal you want to connect (download the
.ex5/.ex4from your dashboard, drop it intoMQL5/Experts/orMQL4/Experts/, attach it to any chart). - Enter the terminal key as the EA's license input and let it connect once.
- Once the EA shows as connected in your dashboard, the key is bound — it will now work in any MCP client config.
Keep it safe
A terminal key is a durable credential. Anyone holding it can act on the bound terminal within your subscription tier's capabilities until you revoke it — the session tokens issued from it don't bound the blast radius of a leaked key. If a key is ever exposed, revoke it from Dashboard → Terminal Keys immediately; the server stops issuing new sessions for it within seconds. An MCP session that's already running keeps working until its cached session token expires (default 1 hour), then fails to refresh.
Rotation and revocation
Use this sequence when rotating credentials without downtime:
- Generate a new key in the dashboard.
- Update your client configuration to use the new key.
- Verify with a read-only prompt (
get_tickorget_account_info). - Revoke the previous key.
For emergency revocation (suspected leak), revoke first, then generate and deploy a new key immediately.
Common key errors
401 Unauthorized: key is invalid, malformed, or already revoked.403 Forbidden: key is valid but lacks required capability for that tool.- Terminal mismatch style errors: key is bound to a different terminal than the one currently expected.
- Works in dashboard but not in client: stale client config or wrong profile file loaded.
Troubleshooting checklist
- Confirm the key starts with
MTMCP-and has no trailing spaces. - Confirm your client is sending
Authorization: Bearer <key>exactly. - Confirm terminal is connected and key binding completed at least once.
- Restart the client to force config reload.
- If still failing, rotate the key and test again.