Skip to main content
Glama
metatrader5-mcp-server

metatrader5-mcp-server

by geekjapan

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.txt

  • A running MetaTrader 5 terminal

Related MCP server: Meta-Trader-MCP

Setup

pip install -r requirements.txt

MCP 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.txt

MCP サーバー

python -m metatrader_mcp.cli serve --login <LOGIN> --password <PASS> --server <SERVER>

OpenAPI サーバー

uvicorn metatrader_openapi.main:app

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI assistants to connect to MetaTrader 5 for trading, market data access, and account management through the Model Context Protocol.
      118 PyPI
      243
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Exposes 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.
      109 PyPI
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI assistants to trade on MetaTrader 5 using natural language, supporting account management, order placement, and real-time market data.
      1
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables LLMs to trade on MetaTrader 5 via REST API or MCP tools, supporting market/pending orders, position management, and account info retrieval.
      -