mt5-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MT5_LOGIN | Yes | Your MetaTrader 5 login ID | |
| MT5_SERVER | Yes | Your broker's server name | |
| MT5_PASSWORD | Yes | Your MetaTrader 5 password |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| pingA | Health check - verifies the MT5 terminal is reachable. Returns |
| get_terminal_infoB | MT5 terminal connection state and broker TZ offset. |
| get_account_infoC | Balance, equity, margin, leverage, currency, margin mode. |
| get_quoteA | Current bid/ask for a symbol. Prepares the symbol in Market Watch if needed. |
| get_symbolsA | List tradeable instruments, optionally filtered by category (e.g. 'Forex', 'Metals'). |
| get_market_hoursA | Whether the given symbol's session is open right now. v1 limitation: |
| get_ratesA | OHLC bars for
|
| calc_marginA | Broker-authoritative margin for a hypothetical order. Wraps |
| get_positionsC | Open positions, optionally filtered to a single symbol. |
| close_positionB | Close an open position in full or part by ticket. |
| get_ordersB | Pending orders, optionally filtered to a single symbol. |
| place_orderA | Place a market or pending order. Optional SL / TP / deviation. When |
| modify_orderA | Modify SL/TP on a position or price/expiration on a pending order. When the consent gate is armed ( |
| cancel_orderA | Cancel a pending order by ticket. No consent gate (reduces exposure). |
| get_historyB | Closed deals (trades) within [from_ts, to_ts]. Timestamps must be ISO 8601 UTC. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| read_account | Current account snapshot (balance, equity, margin, leverage, etc.). |
| read_positions | Currently open positions. |
TDQS
Scored across 15 tools
Each tool targets a distinct trading operation: margin calculation, order management, position closing, account info, market data retrieval, health check, etc. There is no functional overlap between tools.
Tool names consistently follow a verb_noun pattern (e.g., get_quote, place_order, close_position). The only exception is 'ping', which is a standard minimal verb for health checks, maintaining overall consistency.
15 tools is well-suited for an MT5 server, covering essential operations like account info, market data, order lifecycle, and positions. It is neither too sparse nor overly heavy.
The tool set covers the core trading lifecycle (market data, order placement/cancellation/modification, position closing, history) and account info. Minor gaps exist (e.g., trailing stops or news), but the essential functionality is present.