mcp-metatrader5-server

MCP.Pizza Chef: Qoyyuum

Twenty-six tools cover the whole range: price history and live quotes for any symbol your broker offers, a list of open positions and past deals, and, importantly, placing and checking real orders. This is not a read-only viewer. An order it sends is a real trade on whichever account you sign into, so a demo account is the sensible starting point. It runs on Windows only, because it drives the MetaTrader 5 desktop program, and it signs in with your actual account number, broker password, and server name.

Data
Other

Use This MCP server To

Check the current price and spread on a currency pair Pull the last hundred hourly bars for a symbol Review my open positions and how much each is up Summarize my trading history over the past month Place a small test order on a demo account Check whether an order would be accepted before sending it

README

Ask DeepWiki

MseeP.ai Security Assessment Badge

codecov

PyPI version

MetaTrader 5 MCP Server

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

Features

  • 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

Installation

From PyPI

uvx --from mcp-metatrader5-server mt5mcp

From Source

git clone https://github.com/Qoyyuum/mcp-metatrader5-server.git
cd mcp-metatrader5-server
uv sync
uv run mt5mcp

mcp-metatrader5-server FAQ

Can it actually place trades, or only look at prices?
It really trades. Alongside the market-data tools there are order tools that send live orders to your broker, so treat it carefully.
Do I need a key or token?
No key. You sign in with your real MetaTrader 5 account number, password, and broker server name, the same details you type into the terminal.
Will this run on my Mac?
No. It drives the MetaTrader 5 desktop program, so you need a Windows machine with that program installed and running.
Can I use this to analyze a currency pair before I trade?
Yes. It fetches bars, ticks, and symbol details for any instrument your broker lists, and your assistant can reason over them.
Is it safe to point at my real-money account?
Start with a demo account. Nothing asks you to confirm before an order goes out, so a misunderstood instruction can cost real money.
How hard is the setup?
You paste a short block into your assistant's config file. The project ships install helpers for Claude Desktop, Claude Code, Cursor, and Gemini CLI.