MetaTrader MCP

MetaTrader MCP

Enable AI LLMs to execute trades using MetaTrader 5 platform.

123
Stars
37
Forks
2
Releases

Overview

MetaTrader MCP Server is a bridge that connects AI assistants (like Claude, ChatGPT) to the MetaTrader 5 trading platform. Instead of clicking buttons, you can tell your AI assistant what to do: 'Show me my account balance', 'Buy 0.01 lots of EUR/USD', or 'Close all profitable positions'. The AI understands your request and executes it on MetaTrader 5 automatically. It enables natural language trading, supports multiple AI interfaces, and provides full market access with real-time prices, historical data, and symbol information. Users gain complete account control by querying balance, equity, margin, and trading statistics, while trading actions are streamlined through straightforward commands to place, modify, or close orders. The server can operate as an MCP server or expose a REST API, and credentials stay securely on the user's machine. The project includes a Python MT5 client library and modular components for the MCP server and HTTP API, backed by thorough documentation and examples to help traders, developers, and analysts integrate AI-powered trading into their workflows.

Details

Owner
ariadng
Language
Python
License
MIT License
Updated
2025-12-07

Features

Natural Language Trading

Talk to AI in plain English to execute trades.

Multi-AI Support

Works with Claude Desktop, ChatGPT (via Open WebUI), and more.

Full Market Access

Get real-time prices, historical data, and symbol information.

Complete Account Control

Check balance, equity, margin, and trading statistics.

Order Management

Place, modify, and close orders with simple commands.

Secure

All credentials stay on your machine.

Flexible Interfaces

Use as MCP server or REST API.

Well Documented

Comprehensive guides and examples.

Audience

TradersAutomate trading using AI to execute trades via natural language.
DevelopersBuild trading bots or analysis tools leveraging MT5 via MCP server.
AnalystsNeed quick access to market data and trading statistics.
AnyoneInterested in combining AI with financial markets for trading workflows.

Tags

MetaTraderMT5MCP serverAI tradingNatural language tradingClaudeChatGPTREST APIOpen WebUIsecure credentialsmarket dataorder execution