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.
Strongest · Documentation 14/20 Weakest · Security and permissions 3/20
Static review · not runListed 2026-08-14
Read the FMRS scoring method →Runtime:Python 3.10+ · Prebuilt binary MetaTrader 5 termina
LOGIN
Your MT5 trading account login number, from your broker account.
PASSWORD
Your MT5 account password, from your broker account; sensitive credential.
SERVER
Your MT5 server name, e.g. MetaQuotes-Demo.
MT5_PATH
Full path to the MT5 terminal terminal64.exe; auto-detected if unset.
MCP_TRANSPORT
MCP transport type: sse, stdio, or streamable-http; defaults to sse.
MCP_HOST
Host to bind in SSE/HTTP mode; defaults to 0.0.0.0.
MCP_PORT
Port to bind in SSE/HTTP mode; defaults to 8080.
QUOTE_HOST
Host for the WebSocket quote server; defaults to 0.0.0.0.
QUOTE_PORT
Port for the WebSocket quote server; defaults to 8765.
QUOTE_SYMBOLS
Comma-separated list of symbols to stream tick data for.
QUOTE_POLL_INTERVAL_MS
Tick polling interval in milliseconds; defaults to 100.
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"]}}}
Shown for Claude Desktop. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.
{
"servers": {
"metatrader": {
"command": "metatrader-mcp-server",
"args": [
"--login",
"YOUR_MT5_LOGIN",
"--password",
"YOUR_MT5_PASSWORD",
"--server",
"YOUR_MT5_SERVER",
"--transport",
"stdio"
]
}
}
}
Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).
claude mcp add metatrader -- metatrader-mcp-server --login YOUR_MT5_LOGIN --password YOUR_MT5_PASSWORD --server YOUR_MT5_SERVER --transport stdio
Run it in a terminal; replace any <…> placeholders with your own values first.
After installing metatrader-mcp-server and configuring Claude Desktop, restart the client and confirm tools like get_account_info and place_market_order appear in the tool list; asking "What's my account balance?" and getting real MT5 account data proves the connection works.
Once connected, you can ask your AI assistant things like:
No matching tools
Listed from the project's documentation, not tested by this site.
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.
Manage your Hevy workout data from AI assistants via MCP.
Firecrawl's official MCP server for web search, scraping, and structured extraction for AI agents
One binary. One grammar. Evidence from the biomedical sources you already trust.
Encrypted, fully offline long-term memory for AI agents
Source revision bd2ff591e32c Data synced 2026-10-19 Read the FMRS scoring method