Metatrader-5-MCP-Server
Verified Safeby Cloudmeru
Overview
Integrates MetaTrader 5 market data into Model Context Protocol, providing read-only access for advanced technical analysis, charting, and ML-driven forecasting.
Installation
python -m mt5_mcpSecurity Notes
The server implements robust security measures, especially for the `execute_mt5` tool. It explicitly blocks calls to `mt5.initialize()`, `mt5.shutdown()`, `os.system()`, `subprocess`, `eval()`, `exec()`, and `__import__`. The `mt5` object in the execution namespace is a `SafeMT5` proxy exposing only whitelisted read-only MetaTrader 5 functions. Input validation for `mt5_query` and `mt5_analyze` prevents malformed requests and potential injection attempts. HTTP rate limiting is implemented, and command length limits are enforced. The overall design prioritizes read-only data access and prevents trading operations.
Similar Servers
crypto-indicators-mcp
Provides an MCP server with over 50 cryptocurrency technical analysis indicators and strategies to empower AI trading agents in analyzing market trends and developing quantitative strategies.
freqtrade-mcp
Integrates an AI agent with the Freqtrade cryptocurrency trading bot to enable automated trading operations via its REST API.
finance-trading-ai-agents-mcp
A specialized MCP server for financial analysis and quantitative trading, designed to deploy local financial MCP services with a departmental architecture for LLM integration and algorithmic trading.
mcp-metatrader5-server
Allows AI assistants to control MetaTrader 5 terminal for trading operations and market data analysis.