MetaTrader MCP Server
by MCP-Mirror
This is a Model Context Protocol (MCP) server built with Python to enable AI LLMs to trade using the MetaTrader platform. It allows integration with tools like Claude Desktop and Open WebUI.
Last updated: N/A
What is MetaTrader MCP Server?
The MetaTrader MCP Server is a Python-based server that uses the Model Context Protocol (MCP) to facilitate trading on the MetaTrader 5 platform using AI Large Language Models (LLMs). It acts as a bridge between AI models and the MetaTrader trading environment.
How to use MetaTrader MCP Server?
First, install the package using pip install metatrader-mcp-server
. Enable algorithmic trading in MetaTrader 5 settings. For Claude Desktop, add the provided configuration with your MT5 login, password, and server. For other LLMs via Open WebUI, run the HTTP server using metatrader-http-server
and add the server URL to Open WebUI's tools settings.
Key features of MetaTrader MCP Server
Connects AI LLMs to MetaTrader 5
Supports Claude Desktop integration
Supports Open WebUI integration
Provides an HTTP server for broader LLM compatibility
Use cases of MetaTrader MCP Server
Automated trading strategies using AI
Integrating LLMs into trading workflows
Executing trades based on AI-driven analysis
Building custom trading bots with AI
FAQ from MetaTrader MCP Server
What is MCP?
What is MCP?
MCP stands for Model Context Protocol, a protocol for communication between AI models and external tools, in this case, the MetaTrader 5 platform.
What Python version is required?
What Python version is required?
Python version 3.10 or higher is required.
How do I enable algorithmic trading in MetaTrader 5?
How do I enable algorithmic trading in MetaTrader 5?
Open Tools > Options in MetaTrader 5 and check 'Allow algorithmic trading'.
What credentials do I need?
What credentials do I need?
You need your MetaTrader 5 login, password, and server information.
Is this safe to use?
Is this safe to use?
Financial trading involves significant risk. The developers disclaim any liability for losses or profits. Use this package at your own risk.