Back to Home
Cloudmeru icon

Metatrader-5-MCP-Server

Verified Safe

by 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

Run Command
python -m mt5_mcp

Security 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

Stats

Interest Score0
Security Score9
Cost ClassMedium
Avg Tokens30000
Stars0
Forks0
Last Update2025-12-03

Tags

MetaTrader 5Financial TradingMarket DataTechnical AnalysisMachine Learning