๐Ÿ’ธ Sponsor the strip
REPLAUSE

MetaTrader MCP Server

MCP server that lets an agent read and trade a MetaTrader 5 account

๐Ÿงฉ Build it Free 02 in Agents & MCP servers ๐Ÿ†• NEW TODAY
ForexAI agent (MCP)Python

by ariadng โ†’

795 MITupdated 28 Mar '26

Overview

MetaTrader MCP Server connects an AI agent to a MetaTrader 5 account, letting it check balances, read market data, and place, modify, or close trades.

  • Fortraders and developers who want an agent to operate their MetaTrader 5 terminal in plain language.
  • NeedsPython 3.10+, a running MetaTrader 5 terminal with algorithmic trading enabled, and MT5 login/password/server credentials.
  • Runsa Python bridge over the MetaTrader 5 terminal exposed as an MCP server (stdio or SSE), with an optional REST API and a WebSocket quote stream.
  • Limitthe MetaTrader5 Python package is Windows-only, so a Mac or Linux setup means running the server on a Windows VPS and connecting remotely.

Vibe it

Paste this into your AI agent. Write the first line, or take a suggestion; the copy carries your words.

Source: https://github.com/ariadng/metatrader-mcp-server โ€” clone it and read its README and examples before writing anything; its documented setup beats what you remember.
Stack: a Python bridge over the MetaTrader 5 terminal exposed as an MCP server, with an optional REST API and a WebSocket quote stream.
Needs: Python 3.10+, MetaTrader 5 terminal installed with algorithmic trading allowed, and an MT5 login, password and server name (demo account for testing).
Start: `pip install metatrader-mcp-server`, then add it to my MCP client config with --login, --password, --server and --transport stdio.
Limit: MetaTrader 5's Python API is Windows-only, so Mac or Linux means running the server on a Windows VPS and connecting remotely.
Done means: you report my account balance and equity back to me from the running MT5 terminal, and show me the config you wrote.
Never place a live order. Paper or testnet until I say live in this chat.
Before you start, ask me: whether I have a demo or live MT5 account, and whether MT5 is already running.

Something wrong here? Tell us โ†’