FiveSocket MT5 MCP Server
Server Details
Hosted MT5 MCP server: live MetaTrader 5 balance, positions, history, charts and optional trading.
- Status
- Healthy
- Uptime
- 100.0% over the last 24 hours
- OAuth
- Works in Glama
- Last Tested
- Transport
- Streamable HTTP · MCP 2025-11-25
- URL
- Repository
- fivesocket/mt5-mcp-server
- GitHub Stars
- 0
- ChatGPT
- –
- Claude
- FiveSocket MT5
TDQS
Scored across 12 tools
Most tools target distinct resources, but the history-reading surface overlaps: export_history_page covers both raw deals and historical orders, overlapping with list_deals and list_historical_orders, and get_account_balance is largely a subset of get_account_snapshot. The descriptions do explain the distinctions (convergence-certified export vs. bounded raw pages vs. derived trade pairings), but an agent must read carefully to pick correctly.
Nearly all tools follow a predictable verb_noun pattern (get_candles, list_deals, export_history_page, run_backtest). The only deviations are the noun-only prop_status and the get_account_balance/snapshot family, which remain readable and unambiguous in style.
Twelve tools is well within the well-scoped range and each maps to a distinct read operation (account, positions, candles, symbols, deals, orders, closed trades, prop status, backtest). No tool appears redundant enough to be dropped.
The read-only analytics domain is well covered: account state, positions, prices, symbol specs, raw history, derived trades, prop-firm limits, and backtesting. Minor gaps exist — no symbol listing/search or live tick/quote tool, and no order-placement surface, though that appears intentionally out of scope for this read-only server.
Available Tools
12 toolsexport_history_pageExport history pageARead-onlyIdempotentInspect
Read one bounded, convergence-certified export page of raw MT5 deals or historical orders. Follow nextCursor until null; reuse an export recovery token when supplied by history_unsettled.
Inputs: query (required), accountId (required). Returns: object
get_account_balanceGet account balanceARead-onlyIdempotentInspect
Read live MT5 balance, equity, margin, currency, and source observation metadata for one connected account.
Inputs: accountId (required). Returns: name, login, credit, equity, +11 more
get_account_snapshotGet account snapshotBRead-onlyIdempotentInspect
Read a monitoring snapshot containing live balance, open positions, and a bounded recent-trades page with explicit history state.
Inputs: accountId (required). Returns: login, server, balance, accountId, +9 more
get_candlesGet broker candlesARead-onlyIdempotentInspect
Read completed OHLC candles from the connected MT5 terminal for an exact symbol. Supply count or a from/to range. Rows are oldest first; paginate backward by keeping from and replacing to with nextTo. No indicators or external price feed are used.
Inputs: query (required), accountId (required). Returns: data, login, nextTo, server, +6 more
get_open_positionsGet open positionsBRead-onlyIdempotentInspect
Read live open MT5 positions and source clock metadata for one connected account.
Inputs: accountId (required). Returns: login, server, accountId, latencyMs, +4 more
get_symbol_specificationsGet symbol specificationsARead-onlyIdempotentInspect
Read live MT5 contract specifications for between 1 and 50 exact symbol names. Unknown names are returned in missing.
Inputs: symbols (required), accountId (required). Returns: data, login, server, missing, +3 more
list_closed_tradesList closed tradesARead-onlyIdempotentInspect
Read one bounded page of closed MT5 trades. Supply an explicit initial window end, then reuse nextCursor without from or to.
Inputs: query (required), accountId (required). Returns: data, login, server, accountId, +8 more
list_connected_accountsList connected accountsARead-onlyIdempotentInspect
List the caller's connected MT5 accounts. Returns durable FiveSocket control-plane state, not live broker data. Status invalid means the broker rejected the stored credentials: skip that account until the user re-links it with its current password.
Inputs: no named parameters. Returns: data
list_dealsList dealsBRead-onlyIdempotentInspect
Read one bounded page of raw MT5 deals with explicit coverage and cursor state. Values are broker source data, not derived trade pairings.
Inputs: query (required), accountId (required). Returns: data, login, server, accountId, +8 more
list_historical_ordersList historical ordersBRead-onlyIdempotentInspect
Read one bounded page of raw historical MT5 orders with explicit coverage and cursor state.
Inputs: query (required), accountId (required). Returns: data, login, server, accountId, +8 more
prop_statusGet prop-firm rule statusARead-onlyIdempotentInspect
Report how much daily-loss and maximum-loss room one connected account has left under the prop-firm program the user set for it, with the current floors, high-water mark, next reset time, profit-target progress and breach or near-breach state. Values are calculated by FiveSocket from live MT5 balance, equity and deal history against the firm's published rules; the response carries the rule sources, their last-verified date and notes marking estimated values. The firm's own dashboard is authoritative. This does not place or change a broker order.
Inputs: accountId (required). Returns: login, server, source, program, +4 more
run_backtestBacktest a trading ruleARead-onlyIdempotentInspect
Backtest a simple trading rule on one connected account's own broker candles. Read-only: it replays past bars and never places or changes a broker order. Write the rule from the user's plain words: one exact broker symbol, a timeframe (M1, M5, M15, H1, H4 or D1), a UTC from and to range of at most 50000 bars, one entry per side with an optional exit condition, a stop, an optional target, the risk per trade and an initialBalance. A condition compares two series with above, below, crossesAbove or crossesBelow; join 2 to 8 of them with {kind: "all" | "any", conditions: [...]}. A series is {kind: "price", field: "close"}, {kind: "constant", value: 70}, or an indicator with a period: sma, ema, rsi, atr, highest or lowest. Example for "buy gold on H1 when the close crosses above the 50 EMA, stop 1.5 ATR, target 2R, risk 1%": {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}, target: {kind: "riskMultiple", value: 2}, risk: {kind: "percentOfBalance", value: 1}, initialBalance: 10000}. A condition is read when a bar closes and the order fills at the next bar's open. The result has the trade count, net result in the account currency, maximum drawdown, win rate, profit factor, costs paid, an equity curve of at most 50 points and the assumptions. Report the dates the bars actually cover, from metadata.firstBarTime and lastBarTime, not the dates asked for; when the broker's history is shorter than the range, the first assumption says so. Tell the user the assumptions that shape the numbers: historical spread is approximated from one value per bar, today's swap rates and tick value are applied to the whole period, the account's headline leverage is used for every symbol, and commission is counted only when costs.commissionPerLotRoundTrip is supplied. When the user has set a prop-firm program for the account, propOverlay estimates from bar data whether the run would have touched the daily or maximum loss floor or reached the first target; set initialBalance to the challenge size for that. Present it as an estimate and never as a pass or a fail: a backtest that stays inside the limits can still fail live, and propOverlay.limits lists what it cannot see. A backtest describes the past and does not predict future results. On insufficient_history widen the range or lower the timeframe; on symbol_not_found use details.suggestions; on backtest_unsupported the symbol cannot be priced, so say so and do not estimate; on invalid_request fix the named field and call again.
Inputs: rule (required), accountId (required), costs, includeTrades. Returns: login, server, source, accountId, +2 more
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Hosted MCP server for MT4 and MT5: read accounts, prices and candles, and place or close orders.
Hosted MCP server for MetaTrader 5. Connect any MT5 broker login and Pipwire runs the terminal around the clock, so nothing has to run on your own computer or VPS. 11 reading tools (accounts, positions, pending orders, deal and order history, live prices, candles, symbols) and 5 trading tools (market, limit, stop and stop-limit orders with stop loss and take profit, partial close, moving stops, changing and cancelling pending orders). Trading is off for every key until you turn it on: ask before each trade, or trade freely. The same accounts get a REST and WebSocket API and a trade copier. Not affiliated with MetaQuotes.
Connect any MCP client to MetaTrader 4/5 to read prices, manage positions, and place trades.
Hosted MCP server for Indian market quotes, option-chain Greeks and multi-broker telemetry.
Related MCP Servers
AlicenseBqualityBmaintenanceMCP server for etrink: read cloud MetaTrader 5 account balances, positions, trade reports and signals, place guarded orders, and manage 24/7 hosted bot services from any MCP client.2340 npmMIT- AlicenseBqualityBmaintenanceEnables MCP clients to read MetaTrader 5 account balances, positions, and price history; place and manage orders; upload and attach Expert Advisors; and configure copy trading between accounts.21MIT
- FlicenseNot gradedqualityDmaintenanceCloud-hosted MCP server that connects AI clients to MetaTrader 4/5 for live prices, account state, indicators, and trades with dry-run safety via natural language.-
- FlicenseNot gradedqualityDmaintenanceEnables trading on MetaTrader5 platform via MCP, including account management, order placement, market data, technical indicators, and signal tools.6-
Glama MCP Gateway
Add one secure layer between your agents and this server.