Three ways to reach an MT5 account
- The MCP server built into the MT5 desktop terminal. MetaQuotes ships it, and it runs inside the terminal, on the computer where you run it.
- An EA bridge. An Expert Advisor that you attach to a chart passes requests between the terminal and a program or service outside it.
- A hosted server. A provider runs the terminal on its own machines and gives you an address on the internet. FiveSocket is one.
Everything this page says about the first two comes from MetaQuotes' own help, release notes and MQL5 reference, read on 28 November 2026 and linked under each section. Where those pages are silent, this page says so.
What MetaQuotes says about the built-in MCP
- It arrived in build 6060 on 23 July 2026. The release notes say: "We've introduced native support for the Model Context Protocol (MCP) and agentic AI."
- You turn it on in the desktop terminal under Tools, Options, on the MCP tab, with the option "Enable internal server". The help describes it as "the built-in terminal MCP server, allowing external AI clients and agents to connect directly to your platform".
- It listens on an address you set in the terminal. The example in the help is http://127.0.0.1:22346/mcp, a loopback address, which means the same computer the terminal runs on. A client sends an API key that the terminal generates, as a bearer token over HTTP.
- The terminal has to be running. The help tells users of a third-party agent to "ensure the MetaTrader app is running" before they send a prompt.
- The clients the help names are Claude Code and Codex. It adds that the servers connect to "any MCP-compatible AI agent or application via a JSON configuration".
- Its tools place and manage orders, read account data, positions and history, manage charts and indicators, attach Expert Advisors and run the Strategy Tester. A terminal setting lets the AI agent trade, asks you to confirm each trade, or blocks trading.
- There are two more servers. One belongs to MetaEditor, for writing code. The other is a market data server at https://www.metatrader.com/mcp, which the help describes as providing market data, news and economic calendars.
- The desktop terminal runs under Windows 10 and 11. On macOS and Linux, MetaQuotes installs it inside Wine.
MetaQuotes' pages do not say whether the built-in server can be reached from another computer or from the internet, whether it works in a terminal installed through Wine on macOS or Linux, whether the web terminal or the mobile apps have it or whether the terminal must be logged in to a trading account for the server to answer. This page makes no claim about those points.
Sources
- MetaTrader 5 help: MCP Servers and AI Assistant
- MetaTrader 5 help: Configuring Settings for AI
- MetaTrader 5 help: Tools and Operations Supported by MCP Servers
- MetaTrader 5 release notes: build 6060, 23 July 2026
- MetaTrader 5 help: installation on Windows
- MetaTrader 5 help: installation on macOS
- MetaTrader 5 help: installation on Linux
What MetaQuotes says about Expert Advisors
EA bridges differ from one another, so this page describes only what every Expert Advisor has in common.
- An Expert Advisor runs inside the terminal, attached to a chart. The MQL5 reference lists when it is unloaded, including "terminal shutdown" and "close of a chart, to which the Expert Advisor is attached".
- An Expert Advisor can call a web address only after you allow it. The MQL5 reference says: "To use the WebRequest() function, add the addresses of the required servers in the list of allowed URLs in the "Expert Advisors" tab of the "Options" window."
- To run one all day, the terminal has to stay on. MetaQuotes sells virtual hosting for this, "a service providing the round-the-clock operation of the trading platform", and says of robots and copied signals: "All these cases require constant connection to a trade server and uninterrupted power supply. Using a home PC is not always possible and convenient."
How they compare
| What differs | Built-in MCP | EA bridge | FiveSocket |
|---|---|---|---|
| What runs on your side | The MT5 desktop terminal, running | The MT5 desktop terminal, running, with the Expert Advisor on an open chart | Nothing |
| Computer it needs | One that runs the MT5 desktop terminal. MetaQuotes lists Windows 10 and 11, and Wine installs for macOS and Linux | The same computer as the terminal | None. It is a web service |
| Available when your computer is off | No. The terminal has to be running | No. The Expert Advisor is unloaded when the terminal shuts down | Yes |
| How a client connects | HTTP to an address you set in the terminal, such as http://127.0.0.1:22346/mcp, with an API key | Depends on the bridge | HTTPS to https://api.fivesocket.com, with OAuth for MCP and an API key for REST |
| Interfaces | MCP | Depends on the bridge | MCP and a REST API |
| Clients | Claude Code and Codex are named, and any MCP-compatible agent with a JSON configuration | Depends on the bridge | Claude on the web, Desktop and phone, ChatGPT, Claude Code, Cursor, VS Code, and any language over REST |
| Trading | Tools place and manage orders. A terminal setting allows, confirms or blocks AI trading | Depends on the bridge | Off until you set the symbols and largest size per account. https://api.fivesocket.com/mcp/read has no trading tools |
| Charts, Strategy Tester and Expert Advisors | Yes, through its tools | Yes, it runs inside the terminal | No |
| Prop firm loss limits | Not described in the help | Depends on the bridge | An order guard for FTMO, FundedNext and The5ers programs |
| Where the broker password is kept | In your terminal | In your terminal | At FiveSocket, encrypted |
| Price | Part of the MT5 terminal | Depends on the bridge, plus a computer or VPS that stays on | From $9.99 a month after a free trial |
When the built-in MCP or an EA bridge is the better choice
- You work at the computer where MT5 is open, with Claude Code, Codex or another agent on that same computer.
- You want the agent to work with charts, indicators, the Strategy Tester or Expert Advisors. FiveSocket has none of those.
- You want your broker password to stay in your own terminal.
- You do not want a monthly fee, and you already keep a computer or VPS running.
When FiveSocket is the better choice
- You do not want to keep a computer, a VPS or a terminal running.
- Your assistant runs in a browser or on a phone, such as Claude on the web or ChatGPT, and signs in with OAuth.
- Your own code needs the account too. The same account answers over REST at https://api.fivesocket.com/v1 from any language.
- You trade a prop firm account and want each order checked against the daily loss and maximum loss limits before it is sent. Programs are built in for FTMO 2-Step, FTMO 1-Step, FundedNext Stellar 2-Step, FundedNext Stellar 1-Step and The5ers High Stakes.
- You want trading off by default, then limited per account to exact symbols and sizes.
FiveSocket links any MT5 broker account with its login, password and exact server name. See the hosted MT5 MCP server
What FiveSocket does not do
- No charts, indicators, Strategy Tester, Expert Advisors or MQL5 code.
- No tick stream, WebSocket or webhooks. It answers when asked.
- No MetaTrader 4.
- It logs in to your broker from its own hosting addresses, and it holds your MT5 password, encrypted.
Trading leveraged FX and CFDs carries a high risk of losing money quickly. Try any new setup on a demo account first. FiveSocket connects software to your account, and neither FiveSocket nor an AI assistant's output is investment advice.
Frequently asked questions
- Does MetaTrader 5 have a built-in MCP server?
- Yes. MetaQuotes added it to the desktop terminal in build 6060 on 23 July 2026. You turn it on under Tools, Options, on the MCP tab.
- Does the built-in MCP work when my computer is off?
- No. It is part of the desktop terminal, and MetaQuotes' help says to ensure the MetaTrader app is running. FiveSocket runs the terminal on its own servers, so your computer can be off.
- Can ChatGPT or Claude on the web use the built-in MCP?
- MetaQuotes' help shows the server at a loopback address, http://127.0.0.1:22346/mcp, which is the computer the terminal runs on, and names Claude Code and Codex as clients. It does not describe reaching the server from the internet. An assistant that runs in a browser connects from its provider's servers, so it needs a server with a public HTTPS address, which is what a hosted server gives it.
- Does the built-in MCP need Windows?
- MetaQuotes' help says the desktop terminal runs under Windows 10 and 11, and that on macOS and Linux it is installed inside Wine. It does not say whether the MCP server works in a Wine install.
- Do I need an Expert Advisor to use FiveSocket?
- No. FiveSocket runs the MT5 terminal for your account and you install nothing in your own MetaTrader.
- Does FiveSocket have a REST API as well as MCP?
- Yes. The MCP server is at https://api.fivesocket.com/mcp and the REST API is at https://api.fivesocket.com/v1. Both read and trade the same linked account.
- How much does FiveSocket cost?
- Plans start at $9.99 a month for one MT5 account. Link your MT5 account and try it free, no card: 7 days or 100 calls, whichever comes first. Then a 7-day free trial, card required. Cancel anytime. The trial includes one connected MT5 account.