Overview of MetaTrader MCP Server modules
mainThe project is split into two primary functional areas:
Client Module
Provides a unified Python interface via the MT5Client class for MetaTrader 5 automation. It is used for direct programmatic control, including account info, market data, trading/order management, and historical data.
Server Module
Implements the Model Context Protocol (MCP) using the FastMCP SDK. This module exposes trading operations as tools that AI assistants (like Claude Desktop) can call.
Current MCP Tools:
get_balance: Returns the account balance (currently returns demo/random values).