SM

sumedhkumar/mt5-trading-mcp

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

74 stars 5 forks 품질 73 트렌드 18

Claude, ChatGPT 또는 자연 언어의 LLM에 대해 이야기하여 거래를 실행하고, 잔액을 확인하고, MT5를 통해 시장 데이터를 스트리밍합니다.

개요

Claude, ChatGPT 또는 자연 언어의 LLM에 대해 이야기하여 거래를 실행하고, 잔액을 확인하고, MT5를 통해 시장 데이터를 스트리밍합니다. 거래는 손실의 상당한 위험을 포함한다. 이 소프트웨어는 거래 결과와 함께 제공됩니다. 이 시스템을 통해 실행된 모든 거래에 대해 책임집니다. - - 다운로드 - - 다운로드 - - 로그인 번호, 암호, 서버 이름 (예 : MetaQuotes-Demo) - - MT5 : 도구 → 옵션 → 전문가 자문 → 알고리즘 거래를 허용 사용 케이스에 맞는 인터페이스를 선택하세요: Windows의 Claude Desktop config (%APPDATA%\Claude\claude desktop config.json, ~/Library/Application Support/Claude/claude desktop config.json 에 Mac)에 추가: Restart Claude 데스크톱, 다음 시도 : "내 계정 균형은 무엇입니까?" args 배열에 "--path", "C:\Program Files\MetaTrader 5\terminal64.exe"를 추가하십시오. MT5가 설치되는 Windows VPS에서 MCP 서버를 실행하면 원격으로 연결됩니다.

개요(AI 번역)

AI 조수와 MetaTrader 5. Claude, ChatGPT, 또는 무역을 실행하기 위해 자연 언어의 LLM에 대한 이야기, 잔액 확인, 및 스트림 시장 데이터 - MT5를 통해 모든 노선.


⚠️ 면책

거래는 손실의 상당한 위험을 포함한다. 이 소프트웨어는 **의 책임 ** 거래 결과에 대한 제공. 이 시스템을 통해 실행된 모든 거래에 대해 책임집니다. **이것은 금융 조언이 아닙니다. **


필수품

-Python 3.10+ - 다운로드

  • **MetaTrader 5 터미널 ** - 다운로드
  • MT5 계정 자격 — 로그인 번호, 비밀번호, 서버 이름 (예: MetaQuotes-Demo)
  • **알고 거래 활성화 ** - MT5: Tools → Options → Expert Advisors → Allow algorithmic trading

설치


빠른 시작

사용 케이스에 맞는 인터페이스를 선택하세요:

옵션 A - Claude 데스크톱 (MCP over stdio)

Windows에서 Claude Desktop config (%APPDATA%\Claude\claude_desktop_config.json]에 추가, ~/Library/Application Support/Claude/claude_desktop_config.json] Mac에서:

Restart Claude 데스크톱, 다음 시도 : * “내 계정 잔액은 무엇입니까?”*

사용자 정의 MT5 경로? `“–path”, "C:\Program Files\MetaTrader 5\terminal64를 추가하십시오.

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

MetaTrader MCP Server

Bridge between AI assistants and MetaTrader 5. Talk to Claude, ChatGPT, or any LLM in natural language to execute trades, check balances, and stream market data — all routed through MT5.

You  →  AI Assistant  →  MCP Server  →  MetaTrader 5  →  Your Trades

⚠️ Disclaimer

Trading involves significant risk of loss. This software is provided as-is with no liability for trading outcomes. You are responsible for all trades executed through this system. This is not financial advice.


Prerequisites

  • Python 3.10+ — Download
  • MetaTrader 5 terminal — Download
  • MT5 account credentials — Login number, password, and server name (e.g. MetaQuotes-Demo)
  • Algo trading enabled — In MT5: Tools → Options → Expert Advisors → Allow algorithmic trading

Installation

pip install metatrader-mcp-server

Quick Start

Choose the interface that fits your use case:

Option A — Claude Desktop (MCP over stdio)

Add to your Claude Desktop config (%APPDATA%\Claude\claude_desktop_config.json on Windows, ~/Library/Application Support/Claude/claude_desktop_config.json on Mac):

{
  "mcpServers": {
    "metatrader": {
      "command": "metatrader-mcp-server",
      "args": [
        "--login",     "YOUR_MT5_LOGIN",
        "--password",  "YOUR_MT5_PASSWORD",
        "--server",    "YOUR_MT5_SERVER",
        "--transport", "stdio"
      ]
    }
  }
}

Restart Claude Desktop, then try: “What’s my account balance?”

Custom MT5 path? Add "--path", "C:\\Program Files\\MetaTrader 5\\terminal64.exe" to the args array.

Option B — Remote MCP Server (SSE)

Run the MCP server on a Windows VPS where MT5 is installed, then connect to it remotely.

Server side:

metatrader-mcp-server --login YOUR_LOGIN --password YOUR_PASSWORD --server YOUR_SERVER
# Defaults to SSE on 0.0.0.0:8080. Customize with --host and --port.

Client side (Claude Desktop config):

{
  "mcpServers": {
    "metatrader": {
      "url": "http://VPS_IP:8080/sse"
    }
  }
}

Security note: MCP has no built-in auth. Use a firewall, reverse proxy with auth, or SSH tunnel when exposing over a network.

Option C — REST API (for Open WebUI / ChatGPT)

metatrader-http-server --login YOUR_LOGIN --password YOUR_PASSWORD --server YOUR_SERVER --host 0.0.0.0 --port 8000
GitHub에서 전체 README 보기

설치

This server does not publish a one-line install command.

Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "metatrader": { "command": "metatrader-mcp-server", "args": [ "--login", "YOUR_MT5_LOGIN", "--password", "YOUR_MT5_PASSWORD", "--server", "YOUR_MT5_SERVER", "--transport", "stdio" ] } } }