metatrader5-mcp-server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@metatrader5-mcp-servershow my current positions"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MetaTrader5 AI Integration
This repository provides tools to integrate MetaTrader 5 terminals with AI applications. It includes a Python client library, a WebSocket MCP server, and a REST API based on FastAPI.
Requirements
Python 3.12 or later
Dependencies listed in
requirements.txtA running MetaTrader 5 terminal
Related MCP server: MT5 MCP Server
Setup
pip install -r requirements.txtMCP Server
python -m metatrader_mcp.cli serve --login <LOGIN> --password <PASS> --server <SERVER>OpenAPI Server
uvicorn metatrader_openapi.main:app日本語
このリポジトリは MetaTrader 5 ターミナルを AI アプリケーションと統合するためのツールを提供します。Python クライアントライブラリ、WebSocket MCP サーバー、FastAPI ベースの REST API を含みます。
必要条件
Python 3.12 以上
requirements.txtに記載された依存関係実行中の MetaTrader 5 ターミナル
セットアップ
pip install -r requirements.txtMCP サーバー
python -m metatrader_mcp.cli serve --login <LOGIN> --password <PASS> --server <SERVER>OpenAPI サーバー
uvicorn metatrader_openapi.main:appThis server cannot be deployed
Maintenance
Related MCP Connectors
Connect any MCP client to MetaTrader 4/5 to read prices, manage positions, and place trades.
Trade 16 crypto exchanges + MetaTrader 5 from your AI assistant via one MCP connection.
Hosted MCP server for MT4 and MT5: read accounts, prices and candles, and place or close orders.
- FensoryOAuthcom.fensory
Trading MCP server for AI agents, with live market data, account reads and controlled execution.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to connect to MetaTrader 5 for trading, market data access, and account management through the Model Context Protocol.90 PyPI231MIT
- AlicenseNot gradedqualityDmaintenanceEnables interaction with MetaTrader 5 for market data, technical analysis, Fibonacci calculations, and trading via MCP clients such as Claude.MIT
- AlicenseNot gradedqualityAmaintenanceExposes a unified AI interface to MetaTrader 5 over the Model Context Protocol, enabling live quotes, historical data, technical indicators, order execution, position management, and headless backtests.87 PyPIMIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to trade on MetaTrader 5 using natural language, supporting account management, order placement, and real-time market data.1MIT