MT-MCP Docs

Introduction

What MT-MCP is and how this documentation is organized.

MT-MCP bridges MetaTrader 4 and 5 terminals to the Model Context Protocol (MCP). Install one Expert Advisor file on your terminal, connect any MCP-compatible AI client, and the client can read market data, manage positions, and — with the right license — execute trades through natural language.

This is different from most MT4/5-to-AI bridges, which require running a local Python process and an MCP server on the same machine as the terminal. MT-MCP's Expert Advisor connects outbound to a hosted cloud server, so any MCP client anywhere can reach it without installing anything beyond the EA and, for stdio-only clients, a small connector.

Where to go next

Start with Overview for what you can actually ask your AI client to do. Then follow Setup for your specific client — Claude Desktop, Claude Code, Cursor, Windsurf, or a generic MCP client. Once connected, Tool Reference documents every tool the server exposes, generated directly from the server's tool schemas so it never drifts from what's actually deployed. Changelog tracks what changed release to release.

Two ways to connect

Hosted (recommended). Use the MT-MCP hosted server over HTTPS with a terminal-scoped API key. No local server process to run. This is what the setup guides assume by default.

Self-hosted. Run the gateway and MCP server yourself and connect over stdio. Useful for local development or if you need full control over the infrastructure. See the self-hosted section of each setup guide.

On this page