Back to Home
Qoyyuum icon

mcp-metatrader5-server

Verified Safe

by Qoyyuum

Overview

Allows AI assistants to control MetaTrader 5 terminal for automated trading, market data analysis, and historical data retrieval.

Installation

Run Command
uv run mt5mcp

Environment Variables

  • MT5_MCP_TRANSPORT
  • MT5_MCP_HOST
  • MT5_MCP_PORT

Security Notes

The server's `initialize` tool takes a `path` argument to the MT5 executable. While necessary for its function, an unconstrained AI or user could potentially provide a malicious path. If the server is configured for HTTP transport (`MT5_MCP_TRANSPORT=http`) and exposed publicly (not limited to `127.0.0.1`), it could be vulnerable. Sensitive MT5 account credentials (login, password, server) are passed as direct arguments to the `login` tool, requiring secure management by the client application and not exposing them in client-side hardcoding or insecure environment files. No obvious 'eval' or direct arbitrary code execution patterns were found within the core server logic.

Stats

Interest Score48
Security Score8
Cost ClassHigh
Avg Tokens2000
Stars68
Forks31
Last Update2025-12-15

Tags

MetaTrader 5MT5TradingMarket DataAI IntegrationMCP Server