amirkhonov/metatrader5-mcp
A Model Context Protocol (MCP) server that provides comprehensive access to MetaTrader 5 trading platform functionality through Python.
[](https://opensource.org/licenses/MIT) [](https://www.python.org/downloads/)
A Model Context Protocol (MCP) server that provides comprehensive access to MetaTrader 5 trading platform functionality through Python.
> š New to this project? Check out the Quick Start Guide for a condensed reference!
Windows:
# Clone the repository
git clone https://github.com/amirkhonov/metatrader5-mcp.git
cd metatrader5-mcp
# Run installation script
install.batLinux/Mac:
# Clone the repository
git clone https://github.com/amirkhonov/metatrader5-mcp.git
cd metatrader5-mcp
# Run installation script
chmod +x install.sh
./install.sh# Install from source
git clone https://github.com/amirkhonov/metatrader5-mcp.git
cd metatrader5-mcp
pip install -r requirements.txt
pip install -e .git clone https://github.com/amirkhonov/metatrader5-mcp.git
cd metatrader5-mcp
poetry install cp .env.example .env MT5_LOGIN=12345678
MT5_PASSWORD=your_password
MT5_SERVER=MetaQuotes-Demo
MT5_PATH=C:\Program Files\MetaTrader 5\terminal64.exe # Using environment variables from .env
metatrader5-mcp
# Or with command line arguments
metatrader5-mcp --login 12345 --password secret --server MetaQuotes-Demo# Check if the server starts correctly
metatrader5-mcp --helpLoading reviews...