MetaTrader MCP server. Let your agent trade.

A hosted MCP server for your MetaTrader accounts. Add one URL to Claude, ChatGPT or any MCP app, sign in, and tick what it may do in each workspace: read, trade, or set up TradingView.

$15 per account, per month. MT5 today, MT4 next.

Claude mcp.pipsocket.com

You“Close half my EURUSD and move the rest to break-even.”

list_positions       { "account": "acc_01m6tx3k…" }
close_position       { "position": 881402311, "volume": 0.05, … }
set_position_levels  { "position": 881402311, "sl": 1.08412, … }Closed 0.05 EURUSD at 1.08488, +$3.80. The other 0.05 now has its stop at your entry, 1.08412.
Works from chat apps
A hosted server, so Claude and ChatGPT on the web can use it, as well as desktop and coding apps.
You approve each workspace
OAuth sign-in, no API key. Tick read, trade or manage per workspace; members can only allow read.
Same rules as the API
Each trading tool is one REST call: one MT5 request, safe to retry with a key, with the broker's own answer.
Kill switch in reach
You, the agent or the dashboard can engage it: it blocks new orders, then tries to close and cancel what's open, and reports what's left.

Tools your agent gets.

The REST API one to one, account start and stop, and TradingView setup. Each tool says the scope it needs, so the model knows what to ask you for.

https://mcp.pipsocket.com/mcp Every tool, with its scope →

Read the account

  • readget_accountBalance, equity, margin and status
  • readlist_positionsOpen positions, read fresh from the terminal
  • readget_tickThe latest bid and ask for a symbol
  • readlist_history_dealsDeals in a time range
  • readget_requestA trade request and how it ended

Trade and control

  • tradeplace_orderA market or pending order, sent once
  • tradeclose_positionClose all or part of a position
  • tradeset_position_levelsA position's stop loss and take profit
  • tradecancel_orderDelete a pending order
  • tradeengage_kill_switchBlock new orders, then try to close and cancel what's open

Accounts and TradingView

  • managestart_accountStart the account's terminal (and stop_account, restart_account)
  • readlist_broker_symbolsThe broker's names for its symbols
  • manageset_symbol_mapMap TradingView's symbol to the broker's
  • managecreate_hookA webhook URL that trades the accounts you pick
  • managetest_hookA dry run of an alert on every target account

From MetaTrader login to a trading agent. Three steps, one URL.

  1. Connect your MT5 login

    In the dashboard: server, login and password, from any MT5 broker. Your terminal starts next to your broker's trade server and stays on.

  2. Add the server to your app

    Paste the URL into Claude, ChatGPT or any MCP app. No API key: it signs in with OAuth.

  3. Approve what it can do

    Sign in and tick read, trade or manage for each workspace. Lower it or revoke it any time in Connected apps.

Hosted, beside MetaTrader's own MCP.

MetaTrader 5's own MCP serverPipsocket MCP server
Where it runsIn the terminal, on your computer or VPSHosted by Pipsocket: nothing to install
Apps that can reach itApps on the same machineAny MCP app, including Claude and ChatGPT on the web
Signing inAn API key from the terminalOAuth in your browser, workspace by workspace
AccountsThe account that terminal is logged in toEvery account in the workspaces you approve
When your computer is offOff with itStill on, with the terminal

MetaTrader MCP server questions

Every tool is a call on the same API your own code uses.

What is an MCP server for MetaTrader?
MCP is the standard way AI apps call tools. Pipsocket's MCP server gives Claude, ChatGPT or any MCP app tools to read and trade your MetaTrader accounts, on terminals we host, and to set up TradingView alerts.
Which AI apps work?
Any app that can add a remote MCP server with OAuth sign-in, including Claude and ChatGPT on the web, and coding apps like Claude Code and Cursor. It speaks the current MCP version and the earlier ones many apps still use. In Claude, choose Register automatically as the OAuth client.
How is it different from MetaTrader's own MCP server?
MetaTrader 5's own MCP server runs in the terminal on your computer, for apps on the same machine. Pipsocket's is hosted, for the terminals we run for you, so apps on the web can reach it and it keeps working when your computer is off.
Do I give the app an API key or my MT5 password?
No. You sign in to Pipsocket in your browser and tick what the app may do in each workspace: read, trade or manage. To connect an MT5 account, the app gives you a link to the dashboard, so the password never goes through it.
Can the agent set up TradingView alerts?
Yes, with manage ticked. It maps the symbol, creates the hook, writes the alert message and dry-runs it on your accounts. You paste the URL and the message into TradingView.
How do I stop the agent?
Revoke it in Connected apps: its account and hook tools stop at once, its trading tools within 5 minutes. Also engage the kill switch from the dashboard or the API: it blocks new orders, then tries to close and cancel what's open, so check what's left. Until its access runs out the agent could still lift it, so check again after 5 minutes. Hooks the agent set up keep trading until you pause them.
Can I try it on a demo account?
Yes. Connect a demo MT5 login first and watch what the agent does before you give it a live one.
What does it cost?
$15 per account, per month. The MCP server is included, with no per-call fees.