MCP.Market

MetaTrader 5 MCP Bridge MCP server

by vincentwongso·io.github.vincentwongso/mt5-trading-mcp·v1.4.2·5 stars

Let an AI agent read and trade a MetaTrader 5 account over MCP, behind a human-approval gate.

B83/100grade B
What users say
No reviews yet
Be the first
Safety scan
B83/100

full report

Adoption
Growing

5 stars

Reviews

Write one

Nobody has reviewed MetaTrader 5 MCP Bridge yet.

If you have run it, two minutes of your experience saves the next person an afternoon.

MetaTrader 5 MCP Bridge tools (15, 3 write)

write = sends, deletes, buys or posts

Read from the package source without running it. The installed server may list more.

  • calc_margin

    Broker-authoritative margin for a hypothetical order.

  • cancel_orderwrite action

    Cancel a pending order by ticket. No consent gate (reduces exposure).

  • close_position

    Close an open position in full or part by ticket.

  • get_account_info

    Balance, equity, margin, leverage, currency, margin mode.

  • get_history

    Closed deals (trades) within [from_ts, to_ts]. Timestamps must be ISO 8601 UTC.

  • get_market_hours

    Whether the given symbol's session is open right now.

  • get_orders

    Pending orders, optionally filtered to a single symbol.

  • get_positions

    Open positions, optionally filtered to a single symbol.

  • get_quote

    Current bid/ask for a symbol. Prepares the symbol in Market Watch if needed.

  • get_rates

    OHLC bars for ``symbol`` at ``timeframe``, most recent first.

  • get_symbols

    List tradeable instruments, optionally filtered by category (e.g. 'Forex', 'Metals').

  • get_terminal_info

    MT5 terminal connection state and broker TZ offset.

  • modify_orderwrite action

    Modify SL/TP on a position or price/expiration on a pending order.

  • ping

    Health check - verifies the MT5 terminal is reachable.

  • place_orderwrite action

    Place a market or pending order. Optional SL / TP / deviation.

Public scan report

scanner v0.1.9 · 2026-09-26 · same rubric, same numbers if you re-run it

no findings
  • Code scan42 source files scanned25/25
  • –Live reliabilityno gateway calls yet and no remote to proben/a
  • –Tool poisoningtools not inspected (local package is not executed); not countedn/a
  • Auth qualitystatic API keys via environment variables6/15
  • Maintenancelast push 8 days ago15/15
  • Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
Overall 83/100. Components that don't apply are left out of the denominator. Any critical finding is an F.RubricAppeal a findingJSON

How MetaTrader 5 MCP Bridge compares

Against every graded AI and agents MCP server, from our own scans and uptime checks. Updated after each scan run.

Safety score
83/100
higher than 68% of 4,460 AI and agents servers
Tools
15
the typical AI and agents server has 6
Tools that change things
20%
typical: 0%. Fewer write tools means less an agent can break
GitHub stars
5
more than 78% of 2,711 AI and agents servers

What its tools let an agent do: 11 read · 3 change · 1 delete

Install MetaTrader 5 MCP Bridge in Claude Code, Cursor or VS Code

claude mcp add mt5-trading-mcp -- uvx mt5-trading-mcp
Add to Cursor

What the publisher says

From the MetaTrader 5 MCP Bridge repository's README, as published. We do not edit it. Read it on GitHub

MetaTrader 5 MCP Bridge

<!-- mcp-name: io.github.vincentwongso/mt5-trading-mcp -->

Let an AI agent manage your MetaTrader 5 account over Model Context Protocol - with configurable human approval gate.

A Hermes agent placing then closing a real 0.01-lot trade on a demo account, end-to-end over MCP on Linux.

Not a mock-up - the same round-trip in MetaTrader 5's own History tab; the tickets and balance match the recording.

⚠️ This software places real_ trades through your MetaTrader 5 terminal with

real orders and irreversible fills.** Read

DISCLAIMER.md

and SECURITY.md

before connecting it to a live account. Always test using your demo account first.

Runs locally - in the same process tree as your agent, no cloud, no telemetry. Windows (native) or Linux (via Docker); Python 3.10+.

📖 The story behind this: this project is built step by step in

Wiring AI agent into MetaTrader 5,

Part 1 of the Trade with AI agent series on the Fintrix engineering blog.

What it is

mt5-mcp lets an AI agent read your MetaTrader 5 account and place trades through it, over the Model Context Protocol.

bars, broker-authoritative margin estimates, and native chart screenshots (Windows). No consent gate.

  • 12 read-only tools: account, quotes, positions, orders, history, OHLC

close_position, each behind a preflight + human-consent + idempotency + audit layer.

  • 4 mutating tools: placeorder, modifyorder, cancel_order,

quotes://{symbol} snapshots that push change notifications.

  • 3 subscribable resources: live account://, positions://, and

.claude/skills/: mt5-market-data and mt5-trading teach an agent how to read the account and run the consent flow safely.

  • 2 ready-to-use Claude Code skills ship in

Full catalogue and the consent flow: docs/tools.md.

Why mt5-mcp

Shortened. The full README is on GitHub.

Nothing above is checked by us. What we check is on the safety report.

MetaTrader 5 MCP Bridge: common questions

Is MetaTrader 5 MCP Bridge MCP server safe?
Mostly: it is graded B (83/100). Read the MetaTrader 5 MCP Bridge safety report
How do I install MetaTrader 5 MCP Bridge?
It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
Does MetaTrader 5 MCP Bridge need an API key?
Yes. The registry entry asks for MT5_PASSWORD.
Is MetaTrader 5 MCP Bridge maintained?
The last commit was 46 days ago (2026-09-19). The latest release is v1.4.2.
What can I use instead of MetaTrader 5 MCP Bridge?
Servers from other publishers that do the same job: CHAP Coordinator MCP server, three.ws Portfolio MCP server and agent-device MCP server.
How does MetaTrader 5 MCP Bridge compare with other AI and agents MCP servers?
safety score 83/100 (higher than 68% of 4,460 AI and agents servers); tools 15 (the typical AI and agents server has 6); tools that change things 20% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.

Alternatives to MetaTrader 5 MCP Bridge

Same job from other publishers: the closest match first, then the best rated.

  • CHAP Coordinator
    Auditable records of human decisions over AI agent work. Approvals, edits, overrides, escalations.
    A
  • three.ws Portfolio
    An agent's trading state — portfolio value, PnL, live balances, trade feed, and signed transfers.
    B
  • agent-device
    Open source device layer for AI agents: control mobile, web, TV, and desktop apps over MCP
    A
  • HOL Guard
    Local-first AI agent security evidence and approval workflows through HOL Guard's stdio MCP server.
    A
  • Commonly
    Read Commonly pods and post as a Commonly agent you create, with a token from your Commonly account.
    A