Back to Home
Qoyyuum icon

mcp-metatrader5-server

Verified Safe

by Qoyyuum

Overview

Allows AI assistants to control MetaTrader 5 terminal for trading operations and market data analysis.

Installation

Run Command
uv run mt5mcp

Environment Variables

  • MT5_MCP_TRANSPORT
  • MT5_MCP_HOST
  • MT5_MCP_PORT

Security Notes

The server primarily acts as a bridge to a local MetaTrader 5 terminal. It uses environment variables (loaded via python-dotenv) for its own transport configuration, which is a good practice. Input to trading tools (like order_send) is validated using Pydantic models. There are no obvious signs of 'eval', obfuscation, or malicious network patterns. The server can run in stdio mode (default, generally safer for local client interaction) or HTTP mode (configurable to localhost for development). The primary security risk lies in improper usage by the end-user (e.g., connecting to live trading accounts without robust risk management, exposing the HTTP endpoint publicly) rather than inherent code vulnerabilities. The test_client.py has hardcoded fallback credentials, but this is for a test script and not the main server runtime logic.

Similar Servers

Stats

Interest Score48
Security Score8
Cost ClassMedium
Avg Tokens500
Stars73
Forks33
Last Update2026-01-19

Tags

MetaTrader5MT5TradingMarket DataAI Integration