MetaTrader 5 MCP Server
@Qoyyuum
About MetaTrader 5 MCP Server
A Model Context Protocol (MCP) server for interacting with the MetaTrader 5 trading platform. This server provides AI assistants with tools and resources to access market data, perform trading operations, and analyze trading history.
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mcp-metatrader5-server": {
"command": "uvx",
"args": [
"--from",
"mcp-metatrader5-server",
"mt5mcp"
]
}
}
}Tools
No tools detected
Fetch the live tool list by running this server in a temporary sandbox using the button above.
Overview
What is MetaTrader 5 MCP Server?
A Model Context Protocol (MCP) server for MetaTrader 5, allowing AI assistants to interact with the MetaTrader 5 platform for trading and market data analysis.
How to use MetaTrader 5 MCP Server?
Install the package via uvx --from mcp-metatrader5-server mt5mcp or clone the repository and run uv run mt5mcp. By default it runs in stdio mode for MCP clients like Claude Desktop. For HTTP transport (development), set environment variables MT5_MCP_TRANSPORT=http, MT5_MCP_HOST, and MT5_MCP_PORT. Configuration examples for several MCP clients (Claude Desktop, Claude Code, Cursor, Gemini CLI) are provided.
Key features of MetaTrader 5 MCP Server
- Connect to MetaTrader 5 terminal
- Access market data (symbols, rates, ticks)
- Place and manage trades
- Analyze trading history
- Integrate with AI assistants through the Model Context Protocol
Use cases of MetaTrader 5 MCP Server
- Connect an AI assistant to a MetaTrader 5 account to retrieve real-time market data
- Automate trade placement (buy/sell orders) through natural language or AI-driven analysis
- Manage and monitor open positions and active orders
- Analyze historical trades and deals for performance review
- Provide guided workflows (e.g., "connect to MT5", "analyze market data", "place trade") via built-in prompts
FAQ from MetaTrader 5 MCP Server
What are the system requirements?
Python 3.11 or higher, the MetaTrader 5 terminal installed on Windows, and a MetaTrader 5 account (demo or real).
How do I run the server in HTTP mode?
Set environment variables MT5_MCP_TRANSPORT=http, MT5_MCP_HOST=127.0.0.1, and MT5_MCP_PORT=8000 in a .env file, then run uv run mt5mcp.
What transport protocols are supported?
The server supports stdio mode (default) and HTTP transport (development mode). No authentication mechanism is described for either transport.
Where does your trading data live?
Data is accessed locally through the MetaTrader 5 terminal. The server does not store data externally; it reads market data and trade history directly from the terminal.
Can I use this server on macOS or Linux?
No. The MetaTrader 5 terminal is only officially supported on Windows, so the server requires a Windows environment.
Frequently asked questions
What are the system requirements?
Python 3.11 or higher, the MetaTrader 5 terminal installed on Windows, and a MetaTrader 5 account (demo or real).
How do I run the server in HTTP mode?
Set environment variables `MT5_MCP_TRANSPORT=http`, `MT5_MCP_HOST=127.0.0.1`, and `MT5_MCP_PORT=8000` in a `.env` file, then run `uv run mt5mcp`.
What transport protocols are supported?
The server supports stdio mode (default) and HTTP transport (development mode). No authentication mechanism is described for either transport.
Where does your trading data live?
Data is accessed locally through the MetaTrader 5 terminal. The server does not store data externally; it reads market data and trade history directly from the terminal.
Can I use this server on macOS or Linux?
No. The MetaTrader 5 terminal is only officially supported on Windows, so the server requires a Windows environment.
Basic information
More Finance & Commerce MCP servers
FiatDock
fiatdockA marketplace where AI agents discover and pay each other per call in USDC over x402 - settlement goes DIRECTLY to the seller's wallet, so there are no accounts, no API keys and no subscriptions. Buy from 24 live MCP ser

Dados B3
Valth GuimarãesAuditable fundamentals for the Brazilian stock market (B3): ROIC, margins, point-in-time multiples, dividends and REITs. Every figure traces back to the CVM account it came from, every formula is published, and nothing s
Velarion — Executive Compensation Intelligence
VelarionVelarion exposes deterministic executive-compensation and governance intelligence for ~3,000 US public companies as callable MCP tools — sourced from SEC proxy filings, not LLM guesses. Nine tools: look up CEO/NEO pay an

IBANforge
cammac-creatorIBANforge — IBAN validation, BIC/SWIFT lookup, Swiss clearing, and EMI/vIBAN classification API with MCP for AI agents

NexusTrade Financial MCP
Austin StarksConnect AI assistants and agents to NexusTrade for quantitative research, backtesting, managed compute, creator discovery, strategy subscriptions, editable portfolio forks, continuous paper or live copy trading, and cont
Comments