mcp-metatrader5-server
by Qoyyuum·★ 133·Score 48
MCP server for MetaTrader 5 trading platform that provides AI assistants with market data and trading capabilities.
Overview
This MCP server enables AI assistants to interact with MetaTrader 5, a popular trading platform. It provides tools for accessing market data, placing and managing trades, and analyzing trading history. The server supports both stdio and HTTP transport modes, making it compatible with various MCP clients like Claude Desktop. It's built with Python using FastMCP framework and has a well-structured API reference with example workflows.
Try asking AI
After installing, here are 7 things you can ask your AI assistant:
When to choose this
Choose this server if you need AI integration with MetaTrader 5 for automated trading or market analysis, especially if you're already using Python for development.
When NOT to choose this
Don't choose this if you're not using MetaTrader 5, as it's specifically designed for this platform and requires Windows installation.
Tools this server exposes
12 tools extracted from the READMEinitializeInitialize the MT5 terminal connection
loginLog in to a MetaTrader 5 trading account
shutdownClose the connection to the MT5 terminal
get_symbolsGet all available trading symbols
get_symbol_infoGet information about a specific trading symbol
get_symbol_info_tickGet the latest tick data for a symbol
copy_rates_from_posGet historical price bars from a specific position
order_sendSend a trade order to the server
order_checkCheck if an order can be placed with specified parameters
positions_getGet all open trading positions
orders_getGet all active orders
history_orders_getGet historical order data
Comparable tools
Installation
Installation
From PyPI (Recommended)
uvx --from mcp-metatrader5-server mt5mcpFrom Source
git clone https://github.com/Qoyyuum/mcp-metatrader5-server.git
cd mcp-metatrader5-server
uv sync
uv run mt5mcpClaude Desktop Configuration
Add to claude_desktop_config.json:
{
"mcpServers": {
"mcp-metatrader5-server": {
"command": "uvx",
"args": [
"--from",
"mcp-metatrader5-server",
"mt5mcp"
]
}
}
}FAQ
- What platforms does MetaTrader 5 run on?
- MetaTrader 5 currently runs on Windows. The MCP server must be connected to a Windows machine with MetaTrader 5 installed.
- Can I use this server with other MCP clients besides Claude Desktop?
- Yes, the server supports both stdio and HTTP transport modes, making it compatible with various MCP clients including Claude Code, Cursor, Gemini CLI, and others.
- What data can I access through this MCP server?
- You can access market data (symbols, rates, ticks), place and manage trades, and analyze trading history. The server provides comprehensive tools for both data retrieval and trading operations.
Compare mcp-metatrader5-server with
Last updated · Auto-generated from public README + GitHub signals.