Best for
- Traders who want AI-assisted MetaTrader 5 operations.
- Developers building trading bots or analysis tools.
- Analysts who need quick access to MetaTrader 5 market data.
This independently maintained MetaTrader 5 MCP bridge covers accounts, market data, orders, positions, and trading history. The README identifies version 0.5.1, MIT licensing, and Active Development. It also provides REST API and WebSocket quote interfaces, but live trading carries substantial risk and remote SSE has no built-in authentication.
MetaTrader MCP Server connects AI assistants to MetaTrader 5 for account queries, real-time and historical market data, order execution, position management, and trading-history access. It can run as an MCP server, REST API, or WebSocket quote stream, with stdio, SSE, and streamable-http transports.
Install Python 3.10 or higher, MetaTrader 5, and a demo or live trading account. Run pip install metatrader-mcp-server, then enable Allow algorithmic trading under Tools → Options → Expert Advisors in MetaTrader 5. Replace the login, password, and server placeholders in install_config with your account details, add the configuration to Claude Desktop, and restart Claude Desktop. Add --path if the MT5 terminal is installed outside the standard location.
{"mcpServers":{"metatrader":{"command":"metatrader-mcp-server","args":["--login","YOUR_MT5_LOGIN","--password","YOUR_MT5_PASSWORD","--server","YOUR_MT5_SERVER","--transport","stdio"]}}}