metatrader5-mcp-server

geekjapan/metatrader5-mcp-server

3.3

If you are the rightful owner of metatrader5-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

This repository provides tools to integrate MetaTrader 5 terminals with AI applications, including a Python client library, a WebSocket MCP server, and a REST API based on FastAPI.

Tools
  1. metatrader_mcp.cli

    Command-line interface for running the MCP server.

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

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