Connecting MetaTrader 5 to an AI client with MTContext means installing exactly one file: the MTContextBridge.ex5 Expert Advisor. There's no Python, no local server, and no DLL — the EA connects outward to MTContext's cloud over a native WebSocket, so there's nothing to expose on your machine. This guide gets it running in a few minutes.
Before you start
-
An active MTContext account and license key (from your dashboard)
-
MetaTrader 5 installed and logged in to your broker account
-
The
MTContextBridge.ex5file, downloaded from your dashboard
Step 1 — Download the EA
In your MTContext dashboard, download the MT5 Expert Advisor (MTContextBridge.ex5).

Step 2 — Put it in the MT5 data folder
In MetaTrader 5, open File → Open Data Folder. Navigate into MQL5 → Experts and copy MTContextBridge.ex5 into that folder.

Step 3 — Refresh the Navigator
Back in MT5, find the Navigator panel (Ctrl+N). Right-click Expert Advisors → Refresh. MTContextBridge now appears in the list.
Step 4 — Allow algorithmic trading
Go to Tools → Options → Expert Advisors and make sure Allow algorithmic trading is enabled. Also confirm the Algo Trading button in the toolbar is on (green).
Step 5 — Attach the EA to a chart
Open any chart, then drag MTContextBridge from the Navigator onto it. In the dialog that opens:
-
On the Common tab, make sure Allow Algo Trading is checked.
-
On the Inputs tab, paste your license key into the key field.
-
Click OK.
A smiley face in the top-right of the chart means the EA is running. The chart symbol doesn't matter — the EA bridges your whole terminal, not just that chart.

Step 6 — Confirm it's connected
Within a few seconds the EA should report connected. Check your MTContext dashboard — the terminal should now show as online.
Troubleshooting
-
EA won't attach / no smiley — algorithmic trading is off. Re-check Step 4.
-
Shows "disconnected" — usually the license key or WebRequest/firewall. See the EA won't connect / shows "disconnected" article.
-
Terminal not showing online in the dashboard — give it a few seconds, then confirm the key you pasted matches your account.
Next steps
With the terminal online, connect your AI client: see Connecting Claude Desktop, Connecting Claude Code, or Connecting Cursor. On MT4? Support for MetaTrader 4 is coming soon.
Start free at mtcontext.com or see the full setup documentation.