Loading...
pip install metatrader-mcp-server{
"mcpServers": {
"metatrader": {
"command": "metatrader-mcp-server",
"args": [
"--login", "YOUR_MT5_LOGIN",
"--password", "YOUR_MT5_PASSWORD",
"--server", "YOUR_MT5_SERVER"
]
}
}
}get_account_infoRetrieves account balance, equity, profit, margin level, leverage, and currency.
Read-only operation; no modification of account data.
get_symbolsLists all available trading symbols.
Read-only operation; provides a list of symbols.
get_symbol_priceGets the current bid/ask price for a symbol.
Read-only operation; retrieves market data.
place_market_orderExecutes instant BUY/SELL orders.
Executes trades, directly impacting account balance.
close_positionCloses a specific open position.
Closes existing trades, affecting profit/loss.
close_all_positionsCloses all open positions.
Closes all trades, with potentially significant financial impact.
get_dealsGets historical completed trades.
Read-only operation; retrieves historical data.
This server allows AI to execute trades, which is inherently risky. While credentials stay local, the potential for financial loss due to AI errors or market volatility exists. Use with caution and start with small amounts.