FiveSocket MT5 MCP Server

Servidor MCP MT5 hospedado. Conecte Claude, ChatGPT ou Cursor à sua conta MetaTrader 5 para consultar saldo, posições, histórico de negociações e candles, com negociação opcional protegida por permissões. Sem Windows, VPS ou terminal; login via OAuth, compatível com qualquer corretora MT5.

Servidor MCP hospedado

npx add-mcp 'https://api.fivesocket.com/mcp/read'

Instala no Claude Code, Codex, Cursor e outros

Documentação

Give your assistant your account, not your password.

FiveSocket is a hosted MT5 MCP server, a remote MetaTrader 5 MCP server you reach over the internet. Link your MetaTrader 5 account once in your browser, add one address to your AI assistant, and ask about your balance, positions and trade history in plain language. Nothing to install: it works without a Windows PC, a VPS or an open MT5 terminal, unlike MetaTrader 5's built-in MCP.

https://api.fivesocket.com/mcp

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. Then $9.99 a month. Any MT5 broker by login, password and server, over MCP or a REST API, with an order guard for prop firm accounts.

The short answers

Price, trial, setup and safety, before you read the rest.

Price

FiveSocket costs $9.99 a month for one MT5 account, $19.99 a month for 3 accounts, $29.99 a month for 5 accounts or $79.99 a month for 20 accounts.

Trial

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 covers one live or demo MT5 account.

Setup

Link your MT5 login in your browser, add https://api.fivesocket.com/mcp to your assistant, and sign in with OAuth. It takes about a minute.

Clients

Claude on the web, Claude Desktop, the Claude apps for iPhone and Android, ChatGPT, Claude Code, Cursor, VS Code and any MCP client that signs in with OAuth.

No Windows

FiveSocket works without a Windows PC, a VPS or an open MT5 terminal, unlike MetaTrader 5's built-in MCP, which runs inside the desktop terminal and needs it running. There is no Expert Advisor to install either, and it works from a Mac, Linux or a phone with your computer off.

Brokers

Every MT5 broker, live or demo. You link an account with its login, password and exact server name. MetaTrader 4 is not supported.

REST and MCP

One linked account answers over a REST API at https://api.fivesocket.com/v1 and an MCP server at https://api.fivesocket.com/mcp.

Prop firms

Prop firm MT5 accounts link the same way. An order guard checks each order against the daily loss and maximum loss limits of FTMO, FundedNext and The5ers programs, and the Prop plan is $19.99 a month for 3 accounts.

Safety

You enter your MT5 password in your browser, never in the chat, and it is stored encrypted. Assistants read only unless you allow trading, the read-only address has no trading tools, and an MT5 investor password makes MT5 refuse every order.

What is an MT5 MCP server?

MCP, the Model Context Protocol, is the open standard AI assistants use to call tools on other systems. An MT5 MCP server turns a MetaTrader 5 account into a set of tools an assistant can call: list my accounts, read my balance, show my open positions, place this order. MT5 is short for MetaTrader 5, so the same thing is also called a MetaTrader 5 MCP server or a MetaTrader MCP server.

When you ask Claude or ChatGPT how your account is doing, the assistant calls one of those tools, the server reads the answer from a live MT5 session, and the assistant explains it to you. You get the figures your broker reports, not a guess.

  1. Your assistant

    Claude, ChatGPT, Cursor or any MCP client calls a tool.
  2. FiveSocket

    Checks the permissions you approved and routes the call.
  3. Hosted MT5 terminal

    Logged in to your account, run by FiveSocket, not by you.
  4. Your broker

    Any MT5 broker. The answer is live account data.

Why a hosted MT5 MCP server

Most MT5 MCP servers are scripts you run yourself, next to a MetaTrader 5 terminal on a Windows machine that has to stay on and logged in. FiveSocket runs that part for you.

  • No Windows, VPS or terminal

    FiveSocket runs the MT5 terminal for your account. Close MetaTrader, turn off your PC, use a Mac or Linux. Your assistant still gets live answers.
  • Works where you already chat

    A local server only reaches apps on the same computer. FiveSocket is a public HTTPS address, so it works in Claude on the web, Claude Desktop, ChatGPT and the mobile apps that use your connectors.
  • OAuth, not a password in a config file

    You type your MT5 password into FiveSocket, in your browser, once. Your assistant signs in with OAuth and gets a short-lived token for the permissions you tick. No secret sits in a JSON file.
  • Every MT5 broker

    Any MT5 login and server name links the same way, live or demo. There is nothing for your broker to set up and no partnership required.

Set it up in about a minute.

The same address works in every client. Link your MT5 account in FiveSocket first, then add the server to the assistant you use.

  1. Start your free trial

    Sign up, link your MT5 account for free, then add a card to start your 7-day free trial.
  2. Link MT5 in your browser

    Open Accounts in FiveSocket and enter your MT5 login, password and exact server name. No assistant tool ever accepts a password.
  3. Add the server address to your assistant

    Paste the FiveSocket MCP server address into your assistant as a remote MCP server or custom connector.
  4. Approve what it can do

    FiveSocket opens in your browser and shows the permissions the assistant asked for. Trading stays unticked unless you tick it.
  5. Ask about your account

    Go back to the assistant and ask it to list your FiveSocket accounts, then ask a question about one of them.

Claude on the web, Desktop and mobile

FiveSocket is listed in Claude's connector directory as a read-only connector. Add the full address as a custom connector if you want Claude to trade too.

  1. Open https://claude.ai/directory/fivesocket-mt5, or search for FiveSocket under Settings > Connectors, and choose Connect.
  2. To allow trading, choose Add custom connector instead, name it FiveSocket and paste the server address.
  3. Sign in to FiveSocket when asked and approve the permissions.
  4. Connectors on your Claude account also appear in Claude Desktop and the Claude mobile apps.

Connect MT5 to Claude, step by step

ChatGPT

ChatGPT adds remote MCP servers as custom connectors in Developer mode. OpenAI decides which plans and workspaces can use it.

  1. Open Settings > Apps & Connectors > Advanced and turn on Developer mode.
  2. Back in Apps & Connectors, choose Create, name it FiveSocket, paste the server address and choose OAuth.
  3. Sign in to FiveSocket and approve the permissions.
  4. In a new chat, turn on the FiveSocket connector and ask it to list your accounts.

Connect MT5 to ChatGPT, step by step

Claude Code

One command adds the server. Claude Code opens your browser for the sign-in.

  1. Run the command below in a terminal.
  2. Start Claude Code, run /mcp, choose FiveSocket and sign in.
claude mcp add --transport http fivesocket https://api.fivesocket.com/mcp

Cursor

Add one entry to.cursor/mcp.json in a project, or ~/.cursor/mcp.json for every project.

  1. Add the entry below and save the file.
  2. Cursor lists FiveSocket in its MCP settings. Choose it and sign in to FiveSocket in your browser.
{
  "mcpServers": {
    "fivesocket": {
      "url": "https://api.fivesocket.com/mcp"
    }
  }
}

Connect MT5 to Cursor and VS Code

VS Code

Add the server to.vscode/mcp.json in a workspace, or run MCP: Add Server from the Command Palette and choose HTTP.

  1. Add the entry below, or paste the address into MCP: Add Server.
  2. Start the server from the file or the MCP view and sign in to FiveSocket in your browser.
  3. Use it from Copilot Chat in agent mode.
{
  "servers": {
    "fivesocket": {
      "type": "http",
      "url": "https://api.fivesocket.com/mcp"
    }
  }
}

Any other MCP client

FiveSocket speaks standard remote MCP over HTTPS with OAuth discovery. If a client can add a remote server by URL and sign in with OAuth, it can use FiveSocket.

  1. Use https://api.fivesocket.com/mcp for read and trade, or https://api.fivesocket.com/mcp/read for reads only.
  2. Do not paste an API key. The client finds FiveSocket's sign-in page from the address.

Ask the way you would ask a person.

The assistant picks the tool. You see the answer your broker reports, read live from the account at the moment you ask.

  • How is my account doing today? Balance, equity and free margin. get_account_balance
  • Which open positions are losing the most right now? get_open_positions
  • Summarise last week's closed trades by symbol and tell me my win rate. list_closed_trades
  • Show the last 50 hourly candles for XAUUSD from my broker. get_candles
  • What is the contract size and minimum lot for US30 on this account? get_symbol_specifications
  • Backtest buying XAUUSD on H1 when the close crosses above the 50 EMA, with a 1.5 ATR stop, over this year. run_backtest
  • Move the stop loss on my EURUSD position to break even. get_open_positions, modify_position_protection

MetaTrader 5 MCP tools, with example calls

These are the tools your assistant sees after you sign in, the kind of question that makes it call each one, and the arguments it sends. You never type the arguments yourself.

12 read tools

Available at https://api.fivesocket.com/mcp and at https://api.fivesocket.com/mcp/read.

ToolWhat it doesExample questionExample arguments
list_connected_accountsLists the MT5 accounts linked to your FiveSocket workspace and whether each one is connected. Every other tool takes an account ID from this list.Which MT5 accounts do I have connected?{}
get_account_balanceReads the live balance, equity, margin, free margin and account currency.What are my balance, equity and free margin right now?{"accountId":"acc_7Hq2Xv"}
get_open_positionsReads every open position on the account at the moment you ask.Which positions are open, and which is furthest from its entry?{"accountId":"acc_7Hq2Xv"}
get_account_snapshotReturns the balance, the open positions and a page of recent closed trades in one call.Give me a one-screen summary of this account.{"accountId":"acc_7Hq2Xv"}
list_closed_tradesReads one page of closed trades for a date range, up to 200 a page. The assistant passes nextCursor back to read the next page.List my closed trades for the first week of November.{"accountId":"acc_7Hq2Xv","query":{"from":"2026-11-01T00:00:00Z","to":"2026-11-08T00:00:00Z","limit":100}}
list_dealsReads raw MT5 deals for a date range, exactly as your broker recorded them.Show every deal on this account in October.{"accountId":"acc_7Hq2Xv","query":{"from":"2026-10-01T00:00:00Z","to":"2026-11-01T00:00:00Z","limit":200}}
list_historical_ordersReads raw historical MT5 orders for a date range.Show the orders I placed last month and how each one ended.{"accountId":"acc_7Hq2Xv","query":{"from":"2026-10-01T00:00:00Z","to":"2026-11-01T00:00:00Z","limit":200}}
get_candlesReads completed OHLC candles for one symbol from your broker's own feed, on M1, M5, M15, H1, H4 or D1, up to 1,000 a call. It does not calculate indicators.Show the last 50 hourly candles for XAUUSD.{"accountId":"acc_7Hq2Xv","query":{"symbol":"XAUUSD","timeframe":"H1","count":50}}
get_symbol_specificationsReads the contract specifications your broker sets for up to 50 exact symbol names.What is the contract size and minimum lot for US30?{"accountId":"acc_7Hq2Xv","symbols":["US30","XAUUSD"]}
export_history_pageReads one page of a complete export of deals or historical orders. The assistant follows nextCursor until the export is finished.Export every deal this account has ever made.{"accountId":"acc_7Hq2Xv","query":{"dataset":"deals","limit":200}}
prop_statusShows how much daily-loss and max-loss room the account has left under the prop-firm program you set (FTMO, FundedNext or The5ers), with the floors, next reset time and progress toward the challenge target. Calculated from live balance, equity and deals against the firm's published rules; the firm's own dashboard is authoritative.How much room do I have left on my FTMO challenge today?{"accountId":"acc_7Hq2Xv"}
run_backtestReplays a trading rule you describe over this account's own broker candles and reports the number of trades, the net result, maximum drawdown, win rate and costs paid, with every assumption stated. Historical spread is approximated and today's swap rates are applied to the whole period. It reads history only and cannot place a trade.Backtest buying XAUUSD on H1 when the close crosses above the 50 EMA, with a 1.5 ATR stop, over this year.{"accountId":"acc_7Hq2Xv","rule":{"symbol":"XAUUSD","timeframe":"H1","from":"2026-01-01T00:00:00Z","to":"2026-11-01T00:00:00Z","entries":[{"side":"long","when":{"kind":"crossesAbove","left":{"kind":"price","field":"close"},"right":{"kind":"ema","period":50}}}],"stop":{"kind":"atr","period":14,"multiple":1.5},"risk":{"kind":"percentOfBalance","value":1},"initialBalance":10000}}

See a backtest conversation and its limits

13 trading tools, only with your permission

Available at https://api.fivesocket.com/mcp only, and hidden unless you approve the trading permission.

ToolWhat it doesExample questionExample arguments
get_execution_configurationShows whether trading is on for an account, and the symbols and largest order size its policy allows.Is trading switched on for this account, and for which symbols?{"accountId":"acc_7Hq2Xv"}
configure_executionTurns trading on for one account with a list of allowed symbols and a largest order size for each.Allow trading on EURUSD only, up to 0.10 lots an order.{"accountId":"acc_7Hq2Xv","idempotencyKey":"policy-eurusd-01","configuration":{"symbols":[{"symbol":"EURUSD","maxVolume":"0.10"}]}}
disable_executionTurns trading off for one account. Existing orders and positions stay as they are.Switch trading off on this account.{"accountId":"acc_7Hq2Xv","idempotencyKey":"disable-01"}
get_execution_capabilitiesReads the trading permissions and account mode MT5 reports for the account.Does this account allow trading at all?{"accountId":"acc_7Hq2Xv"}
list_working_ordersReads the pending orders that are still working.Which pending orders do I have open?{"accountId":"acc_7Hq2Xv"}
get_order_statusReads one order by its MT5 order ID, with the deals that filled it.Did order 482913377 fill?{"accountId":"acc_7Hq2Xv","orderId":"482913377"}
get_executable_symbolsReads live prices, the smallest and largest volume and the volume step for the symbols your policy allows.What is the smallest EURUSD order I can place?{"accountId":"acc_7Hq2Xv","symbols":["EURUSD"]}
submit_orderPlaces a market or pending order, inside the account's policy.Buy 0.10 lots of EURUSD at market with a stop at 1.0800.{"accountId":"acc_7Hq2Xv","idempotencyKey":"buy-eurusd-01","order":{"clientOrderId":"buy-eurusd-01","symbol":"EURUSD","side":"buy","type":"market","volume":"0.10","stopLoss":"1.0800"}}
modify_orderChanges the price, protection or expiry of a pending order.Move my EURUSD buy limit to 1.0820.{"accountId":"acc_7Hq2Xv","orderId":"482913377","idempotencyKey":"move-limit-01","changes":{"price":"1.0820"}}
cancel_orderCancels one pending order.Cancel my EURUSD buy limit.{"accountId":"acc_7Hq2Xv","orderId":"482913377","idempotencyKey":"cancel-limit-01"}
modify_position_protectionSets, moves or removes the stopLoss and takeProfit levels on an open position.Move the stop loss on my EURUSD position to break even.{"accountId":"acc_7Hq2Xv","positionId":"731554210","idempotencyKey":"stop-to-entry-01","changes":{"stopLoss":"1.0865"}}
close_positionCloses all or part of an open position.Close half of my EURUSD position.{"accountId":"acc_7Hq2Xv","positionId":"731554210","idempotencyKey":"close-half-01","close":{"clientOrderId":"close-half-01","volume":"0.05"}}
reconcile_execution_commandChecks what happened to an earlier trading command without sending it again.Did that last order go through?{"accountId":"acc_7Hq2Xv","commandId":"2f1c7c0e-9b1d-4c53-8a57-5f0d6c1f2a34"}

What a result looks like

A tool returns what MT5 reports, with prices as text so nothing is rounded on the way. This is the shape of a get_candles result for the arguments above, cut to one candle, with example values.

{
  "accountId": "acc_7Hq2Xv",
  "login": "•5678",
  "server": "YourBroker-Live",
  "observedAt": "2026-11-10T09:41:03.218Z",
  "latencyMs": 212,
  "symbol": "XAUUSD",
  "timeframe": "H1",
  "data": [
    {
      "openTime": "2026-11-10T08:00:00.000Z",
      "serverClockOffsetSeconds": 7200,
      "open": "4118.42",
      "high": "4126.90",
      "low": "4112.05",
      "close": "4123.37",
      "tickVolume": "18342",
      "spread": 18,
      "realVolume": "0"
    }
  ],
  "nextTo": "2026-11-10T08:00:00.000Z",
  "serverClockOffsetSeconds": 7200
}

Hosted vs self-hosted MT5 MCP servers

Open-source MT5 MCP servers on GitHub are good software, but they run beside a terminal on a Windows machine you keep on. Tickwire, fxapis and MTContext are the other services people compare with FiveSocket. Here is how they differ, as of November 2026.

Self-hosted GitHub serversTickwirefxapisMTContextFiveSocket
PriceFree 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 liveFree read-only tier, $29 a month per terminal to trade$9.99 a month for 1 account, $19.99 a month for 3 accounts, $29.99 a month for 5 accounts, $79.99 a month for 20 accounts
Free trialNot needed7 days, one account, no card14 days on demo accounts, no cardFree tier instead of a trialFree 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 runWindows, a logged-in MT5 terminal, Python and the serverNothingNothingYour own MT5 or MT4 terminal with their Expert Advisor attachedNothing
How the assistant signs inNone by default, or a token you addOAuth, or an agent keyOAuth for Claude and ChatGPT, an API key for Cursor and VS CodeA license key in your client configOAuth for every client
Where it worksClaude Desktop, Claude Code and Cursor on the same computerClaude and ChatGPT as custom connectors, Claude Code, CursorClaude and ChatGPT as custom connectors, Claude Code, Cursor, VS CodeClaude Desktop, Claude Code, Cursor and other key-based clientsClaude on the web, Desktop and phone (listed in Claude's connector directory), ChatGPT, Claude Code, Cursor, VS Code
MetaTrader 4No, they use the MetaTrader5 Python packageYesNoYesNo, MT5 only
Read-only optionDepends on the projectLook-only connections and the investor passwordA read-only connector and read-only keysThe free tier is read onlyhttps://api.fivesocket.com/mcp/read, the investor password, and trading off by default

Self-hosted MT5 MCP servers on GitHub and PyPI

If you would rather run the server yourself, these are the open-source projects people find most often, described from their own READMEs. All are free to use.

ProjectRuns onMT5 loginTrading
ariadng/metatrader-mcp-serverPython, with a running MT5 terminal. Quick start asks you to enable Algo TradingCommand-line arguments or a.env fileMarket and pending orders, modify, close
Qoyyuum/mcp-metatrader5-serverPython, with the MT5 terminal installed on WindowsEnvironment variables in the MCP config, or a login toolSends orders through order_send
Cloudmeru Metatrader-5-MCP-Server (mt5-mcp on PyPI)Windows, with the MT5 terminal installed and runningNot covered in the READMERead only. Order functions are blocked
amirkhonov/metatrader5-mcpWindows, with the MT5 terminal on the same machineA.env file or command-line argumentsMarket and pending orders
vincentwongso/mt5-trading-mcpWindows, or Linux in Docker with MT5 under WineLogged in inside the terminal, or a.env file for DockerPlace, 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.

Read the full MT5 MCP server comparison, with sources

MetaTrader 5's built-in MCP and EA bridges compared, from MetaQuotes' own documentation

What it does not do

  • No live price stream and no alerts. The assistant reads the account when you ask.
  • No MetaTrader 4. FiveSocket supports MT5 accounts only.
  • No Expert Advisors, indicators or tick data. It reads accounts and places orders.
  • The first read after a session has been idle logs in to your broker, which can take several seconds.
  • An assistant's summary is its own reading of the data. Check figures in MT5 before you act on them.

Questions

Is there a free trial?

Yes. 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 and the full MCP server and REST API. After that, plans start at $9.99 a month.

Which brokers does the MT5 MCP server work with?

Every MT5 broker. You link any MT5 login with the exact server name your terminal shows, live or demo, and you can check that server name for free before you pick a plan.

Does it work with prop firms like FTMO?

If the account is an MT5 account, it links like any other. Prop firms set their own rules about tools, automation and where you trade from, so read your firm's terms before you connect an assistant, and especially before you let it trade.

Is it safe to connect my MT5 account to an AI assistant?

Your password goes to FiveSocket in your browser, is stored encrypted, and never reaches the assistant or the chat. The assistant gets a short-lived OAuth token for the permissions you approve, reads by default, and can be cut off at any time from your FiveSocket control panel.

Can the assistant place trades?

Only if you approve the trading permission and the account has a policy that lists allowed symbols and a maximum order size. Orders outside that policy are refused. The tools tell the assistant to confirm each order with you, but FiveSocket cannot check that it did, so choose read only if you want to place every trade yourself.

Do I need Windows or a VPS?

No. FiveSocket runs the MT5 terminal for your account. You connect from macOS, Linux, a phone or a browser, and your own MetaTrader can stay closed.

Does it work with ChatGPT?

Yes. Add the server address as a custom connector in ChatGPT's Developer mode and choose OAuth. OpenAI decides which ChatGPT plans and workspaces can add custom connectors.

Does it support MetaTrader 4?

No. FiveSocket works with MetaTrader 5 accounts only. If your broker offers MT5, open an MT5 account to use it.

How does FiveSocket compare with Tickwire, fxapis and MTContext?

All four connect an AI assistant to MetaTrader. Tickwire and MTContext also support MT4, fxapis starts slightly cheaper for one account, and MTContext needs your own terminal running with its Expert Advisor. FiveSocket is MT5 only, signs every client in with OAuth, is listed in Claude's connector directory, and costs less per account once you connect five or more.

Does MetaTrader 5 have its own MCP server?

Yes. Since build 6060, released in July 2026, the MT5 desktop terminal includes an MCP server. It runs inside the terminal, wherever you run it, and MetaQuotes' help says the MetaTrader app has to be running. FiveSocket is a separate, hosted server. Nothing runs on your side, so it also serves assistants that cannot reach your computer, such as Claude on the web, ChatGPT and the mobile apps.

What is the MT5 MCP server URL?

https://api.fivesocket.com/mcp for reading and trading, or https://api.fivesocket.com/mcp/read for reading only. Both are remote MCP servers over HTTPS that sign in with OAuth, so there is no API key to paste and nothing to run on your computer.

Is there a package to install from PyPI, npm or GitHub?

No. FiveSocket is a remote MetaTrader 5 MCP server, so there is no Python package, npm package, Docker image or Expert Advisor to install. You add the server address to your assistant and sign in.

Is a MetaTrader MCP server the same as an MT5 MCP server?

MT5 is short for MetaTrader 5, so an MT5 MCP server and a MetaTrader 5 MCP server are the same thing. Some MetaTrader MCP servers also cover MetaTrader 4. FiveSocket covers MetaTrader 5 only.

Which tools does the MT5 MCP server give an assistant?

12 read tools for accounts, balance, positions, closed trades, deals, historical orders, candles and symbol specifications, and 13 trading tools that appear only if you approve the trading permission. The full list, with example calls, is on this page.

How do I disconnect an assistant?

Open MCP connections in FiveSocket and revoke it, or remove the connector in the assistant. Its next request fails, and your MT5 account and API keys stay as they were.

Connect your account in a minute.

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. Start on a demo account if you want to see it work before you link a live one.

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. Then $9.99 a month. Any MT5 broker by login, password and server, over MCP or a REST API, with an order guard for prop firm accounts.