MCP Server

A Model Context Protocol (MCP) server for MetaTrader 5

Local serverstdioPython

What is the MCP MCP server?

Most developer tooling work still happens through a UI a human drives. MCP MCP server moves it into the conversation instead. A Model Context Protocol (MCP) server for MetaTrader 5.

The short version

A Model Context Protocol (MCP) server for MetaTrader 5, allowing AI assistants to interact with the MetaTrader 5 platform for trading and market data analysis. Documentation

  • Connect to MetaTrader 5 terminal
  • Access market data (symbols, rates, ticks)
  • Place and manage trades
  • Analyze trading history
  • Integrate with AI assistants through the Model Context Protocol

Getting it running

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client.

What it needs from you

Configuration is passed through the environment: MT5_MCP_HOST. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

  • uv (recommended) or pip - Python 3.11 or higher - MetaTrader 5 terminal installed on Windows - MetaTrader 5 account (demo or real)

How it compares

This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. It is maintained by Abdul Qoyyuum; worth a glance at recent repository activity before you build anything load-bearing on it.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

Things to watch

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Configuration

  • uv (recommended) or pip - Python 3.11 or higher - MetaTrader 5 terminal installed on Windows - MetaTrader 5 account (demo or real)
VariableDescriptionRequired
MT5_MCP_HOSTEndpoint or connection string the server talks to.Optional

Frequently asked questions

It connects MCP to MCP-compatible AI assistants such as Claude and Cursor. Instead of copying data back and forth by hand, the assistant works with MCP directly.