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 |
Capabilities
Features and capabilities supported by this server
| 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. |
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/vincentwongso/mt5-trading-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server