MM

MetaTrader MCP

Created 6 months ago

A Model Context Protocol (MCP) server for AI LLMs to trade using MetaTrader.

development location documentation public trading

What is MetaTrader MCP?

Enable AI LLMs to execute trades using MetaTrader 5 platform.

Documentation

Installation Guide

Make sure you have Python version 3.10+ and MetaTrader 5 terminal installed in your workspace. Then install the package:

pip install metatrader-mcp-server

Then you need to enable algorithmic trading on MetaTrader 5 terminal. Open Tools > Options and check Allow algorithmic trading.

Claude Desktop Integration

To use this package to enable trading operations via Claude Desktop app, please add this into your Claude Desktop configuration:

{
  "mcpServers": {
    "metatrader": {
      "command": "metatrader-mcp-server",
      "args": [
        "--login",
        "",
        "--password",
        "",
        "--server",
        ""
      ]
    }
  }
}

Other LLMs using Open WebUI

You can use this MCP server with other LLMs such as OpenAI's GPT by using its HTTP server and Open WebUI. To start, make sure you have installed the package. Then, run the server:

metatrader-http-server --login --password --server --host 0.0.0.0 --port 8000

It will launch HTTP server locally on port 8000 and automatically launch MetaTrader 5 terminal. On Open WebUI settings page, navigate to Tools menu. Then click plus button on "Manage Tool Servers". Add http://localhost:8000 (or whatever you set your port is).

Server Config

{
  "mcpServers": {
    "metatrader-mcp-server": {
      "command": "npx",
      "args": [
        "metatrader-mcp"
      ]
    }
  }
}

Links & Status

Repository: github.com
Hosted: No
Global: No
Official: Yes

Project Info

Hosted Featured
Created At: May 23, 2025
Updated At: Aug 07, 2025
Author: Not specified
Category: community
License: Not specified
Tags:
development location documentation