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. |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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