LabscoMCP early access ↗
8niteMCP SERVER

MetaTrader 4 Bridge

Reaches a MetaTrader 4 terminal — account state, prices, orders, positions, backtests and Expert Advisor editing.

by 8nite ↗Trading Execution & BrokerageCommunity

LABSCO SUMMARY

This can place orders. Everything else about it is secondary to that.

Backtesting and remote Expert Advisor compilation are genuinely useful — the edit-compile-test loop in MT4 is miserable, and doing it from an editor is a real gain. But the same connection places market orders against a live account, and there is no read-only mode described. If you connect it, connect it to a demo account until you have watched what it does. The file-based fallback is a nice touch that says the author has seen the HTTP bridge fail mid-session.

What it is

A bridge to MetaTrader 4, connecting through an HTTP endpoint and a companion Expert Advisor running inside the terminal, so a server on one machine can drive MT4 on another.

What you get

  • Account information — balance, equity, margin
  • Live market prices for symbols
  • Placing market and pending orders; viewing and closing positions
  • Trading history
  • Backtesting Expert Advisors with detailed configuration
  • Remote Expert Advisor development — create, edit, sync and compile, with compilation errors reported back
  • A file-based fallback for status and results when the HTTP path fails

Requirements

A MetaTrader 4 terminal with the companion Expert Advisor installed, plus Node for the server. The two can be on different machines — their documented setup runs the server on Linux against MT4 on Windows.

Setup effort

Build from source — git clone https://github.com/8nite/metatrader-4-mcp.git