The three kinds of MT5 MCP server
- Open-source servers you run yourself. Most are Python packages built on the MetaTrader5 package from MetaQuotes, which talks to a running MT5 terminal on the same Windows machine.
- The MCP server built into the MT5 desktop terminal. You turn it on under Tools > Options > MCP, and it listens on a local address such as http://127.0.0.1:22346/mcp with an API key.
- Hosted servers. A provider runs the terminal and the MCP server on the internet, and your assistant signs in over HTTPS. FiveSocket is one.
Some brokers also offer AI connectors for their own accounts, such as an Axi MCP alpha for Claude and read-only ChatGPT apps from CMC Markets UK and IG Australia. Each covers only that broker.
Open-source MT5 MCP servers
These are the projects people find most often, described from their own READMEs as of November 2026. All are MIT licensed and free to use. Check each README before you install, because projects change quickly.
| Project | Runs on | MT5 login | Trading |
|---|---|---|---|
| ariadng/metatrader-mcp-server | Python, with a running MT5 terminal. Quick start asks you to enable Algo Trading | Command-line arguments or a .env file | Market and pending orders, modify, close |
| Qoyyuum/mcp-metatrader5-server | Python, with the MT5 terminal installed on Windows | Environment variables in the MCP config, or a login tool | Sends orders through order_send |
| Cloudmeru Metatrader-5-MCP-Server (mt5-mcp on PyPI) | Windows, with the MT5 terminal installed and running | Not covered in the README | Read only. Order functions are blocked |
| amirkhonov/metatrader5-mcp | Windows, with the MT5 terminal on the same machine | A .env file or command-line arguments | Market and pending orders |
| vincentwongso/mt5-trading-mcp | Windows, or Linux in Docker with MT5 under Wine | Logged in inside the terminal, or a .env file for Docker | Place, modify, cancel, close, with an optional approval gate |
What they share: the terminal has to be installed, logged in and running on a machine you keep on, and the MCP server runs beside it. Most speak stdio for a desktop app on the same computer. Some can also listen over HTTP, but none of their READMEs describes OAuth sign-in, so exposing one to the internet safely is work you take on. FiveSocket's hosted option needs none of that: MT5 MCP server
Hosted MT5 MCP servers by name
Four services connect an AI assistant to an MT5 account without you writing code. This table is as of November 2026, taken from each one's own pages. Prices and features change, so check before you decide.
| Self-hosted GitHub servers | Tickwire | fxapis | MTContext | FiveSocket | |
|---|---|---|---|---|---|
| Price | Free software, plus a Windows PC or VPS that stays on | $12 per account a month, lower per account from 60 accounts | $9 a month for 1 live and 1 demo account, $29 for 2 live, $99 for 5 live | Free read-only tier, $29 a month per terminal to trade | $9.99 a month for 1 account, $29.99 a month for 5 accounts, $79.99 a month for 20 accounts |
| Free trial | Not needed | 7 days, one account, no card | 14 days on demo accounts, no card | Free tier instead of a trial | Free for 24 hours or 100 calls, whichever comes first with no card, then 7 days with a card, one live or demo account |
| What you run | Windows, a logged-in MT5 terminal, Python and the server | Nothing | Nothing | Your own MT5 or MT4 terminal with their Expert Advisor attached | Nothing |
| How the assistant signs in | None by default, or a token you add | OAuth, or an agent key | OAuth for Claude and ChatGPT, an API key for Cursor and VS Code | A license key in your client config | OAuth for every client |
| Where it works | Claude Desktop, Claude Code and Cursor on the same computer | Claude and ChatGPT as custom connectors, Claude Code, Cursor | Claude and ChatGPT as custom connectors, Claude Code, Cursor, VS Code | Claude Desktop, Claude Code, Cursor and other key-based clients | Claude on the web, Desktop and phone (listed in Claude's connector directory), ChatGPT, Claude Code, Cursor, VS Code |
| MetaTrader 4 | No, they use the MetaTrader5 Python package | Yes | No | Yes | No, MT5 only |
| Read-only option | Depends on the project | Look-only connections and the investor password | A read-only connector and read-only keys | The free tier is read only | https://api.fivesocket.com/mcp/read, the investor password, and trading off by default |
Where others are stronger
- MetaTrader 4. Tickwire and MTContext support MT4 as well as MT5. FiveSocket and fxapis are MT5 only.
- Entry price. fxapis starts at $9 a month and includes a demo account as well as a live one. FiveSocket starts at $9.99 for one account.
- Trial length. fxapis gives 14 days on demo accounts and Tickwire 7 days. FiveSocket gives 7 days, on a live or demo account.
- A fixed address. Tickwire sells a dedicated IP address per customer for prop firms that check where you log in from. FiveSocket logs in from shared hosting addresses that can change.
- Streaming. Tickwire also offers WebSocket streaming and signed webhooks. FiveSocket answers when you ask and has no stream.
- Your own hardware. A self-hosted server keeps the broker password on a machine you control and costs nothing in software.
Where FiveSocket is stronger
- Price per account at volume. Plus is $29.99 for 5 accounts, about $6 each. Scale is $79.99 for 20 accounts, about $4 each. Tickwire is $12 per account below 60 accounts.
- Claude's connector directory. FiveSocket is listed there, so Claude users add it with one click instead of pasting a custom connector address.
- OAuth everywhere. Cursor, VS Code and Claude Code sign in through the browser like Claude and ChatGPT, so no API key sits in a config file.
- Trading limits per account. Trading stays off until the account has a policy that names the exact symbols allowed and the largest order size for each.
- The trial works on a live account, so you can try it on the account you actually trade.
How they compare
| What differs | Open-source server | Built-in terminal server | FiveSocket |
|---|---|---|---|
| What you run | Windows, the MT5 terminal, Python and the server | The MT5 terminal | Nothing |
| Where the broker password lives | Your machine, often in a config or .env file | Your terminal | FiveSocket, encrypted |
| Sign-in | None by default, or what you add | An API key | OAuth with scopes you approve |
| Read or trade | Depends on the project | Can place and manage orders | Read by default. Trading needs a permission and a per-account policy. https://api.fivesocket.com/mcp/read is read only. |
| ChatGPT and Claude on the web | Not without public HTTPS and OAuth that you build | Not from a local address | Yes, as a custom connector |
| Claude Desktop, Claude Code and Cursor | Yes, on the same computer | Yes, on the same computer | Yes, from any computer |
| Ticks and Expert Advisors | Available from the terminal | Available in the terminal | Not available |
| Cost | Free software, plus a Windows machine or VPS | Included with MT5 | From $9.99 a month after a free trial |
| Brokers | Any MT5 broker | Any MT5 broker | Any MT5 broker |
Security trade-offs
A self-hosted server keeps your broker password on hardware you control, and that is a real advantage. The cost is that the password usually sits in plain text in a config or .env file, and that unless you add sign-in, anything that can reach the server can use the account.
A hosted server moves the password to the provider. With FiveSocket you type it into FiveSocket in your browser, it is stored encrypted, and no MCP tool accepts it. Each assistant signs in with OAuth and gets a short-lived token for the permissions you tick, which you can revoke from your control panel.
Either way, trading is the part to guard. Start read only, use a demo account, and use your MT5 investor password when you want MT5 itself to refuse every order.
Which to pick
- You trade from a Windows PC that is always on, and use Claude Desktop or Claude Code there: a self-hosted server is enough, and free.
- You want ChatGPT, Claude on the web or Claude on your phone to read the account: you need a remote server with OAuth.
- You use a Mac or Linux and do not want to keep a Windows VPS running: a hosted server saves you that machine.
- You want the assistant to see data but never trade: use a read-only server. FiveSocket's is at the /mcp/read address.
- You use one broker that has its own AI connector and it does what you need: that is the simplest route.
FiveSocket works with every MT5 broker, from Claude, ChatGPT, Cursor and any OAuth MCP client. See the hosted MT5 MCP server
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
- What is the best MT5 MCP server?
- It depends on where your assistant runs. For Claude Desktop or Claude Code on the same Windows PC as your terminal, a free open-source server works. For ChatGPT, Claude on the web or a phone, you need a hosted server with OAuth, such as FiveSocket.
- Is there a hosted MT5 MCP server that works in claude.ai without Windows?
- Yes. FiveSocket, Tickwire and fxapis all run the MT5 terminal for you and add to claude.ai as a remote connector with OAuth. FiveSocket is also listed in Claude's connector directory. MTContext needs your own terminal running.
- How does FiveSocket compare with Tickwire?
- Both host the terminal and sign in with OAuth. Tickwire supports MT4, offers WebSocket streaming and a dedicated IP address, and costs $12 per account a month. FiveSocket is MT5 only, has no stream, and costs $9.99 for one account or less per account on larger plans.
- Which MT5 MCP servers support MetaTrader 4?
- Tickwire and MTContext support MT4 as well as MT5. FiveSocket, fxapis and the open-source servers built on the MetaTrader5 Python package are MT5 only.
- Which hosted MT5 MCP server is cheapest?
- For one account, fxapis at $9 a month. For five or more accounts, FiveSocket costs less per account than Tickwire or fxapis. Starter is $9.99 a month for one MT5 account. Plus is $29.99 a month for 5 MT5 accounts. Scale is $79.99 a month for 20 MT5 accounts.
- Can I expose my local MT5 MCP server to ChatGPT?
- Only by publishing it on a public HTTPS address and adding OAuth sign-in. Without sign-in, anyone who finds the address could use your account.
- Do open-source MT5 MCP servers work on a Mac?
- Not natively. They rely on the MetaTrader5 Python package, which needs Windows and a running terminal. Some run under Wine or Docker, which you then maintain.
- Does FiveSocket work with any broker?
- It works with any MT5 login whose broker allows it. You give it the exact server name from your terminal, and you can check that name for free before you choose a plan.
- 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: 24 hours or 100 calls, whichever comes first. Then a 7-day free trial, card required. Cancel anytime. The trial includes one connected MT5 account.