
sumedhkumar/mt5-trading-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
取引を実行し、残高を確認し、市場データをストリームするために、自然言語のClaude、ChatGPT、またはLMに話してください。MT5を経由してすべてのルート.
概要
取引を実行し、残高を確認し、市場データをストリームするために、自然言語のClaude、ChatGPT、またはLMに話してください。MT5を経由してすべてのルート。 取引は損失の重要なリスクを含みます。 このソフトウェアは、取引結果のisとして提供されます。 お客様は、このシステムを通じて実行されるすべての取引について責任を負います。 - — ダウンロード - — ダウンロード - — ログイン番号、パスワード、サーバー名(例:MetaQuotes-Demo) - — MT5:ツール → エキスパートアドバイザー → アルゴリズム取引を許可する 使用例に合ったインターフェイスを選択します。 Claude Desktop config (%APPDATA%\Claude\claude desktop config.json を Windows に追加し、~/Library/Application Support/Claude/claude desktop config.json を Mac に追加します。 Claudeデスクトップを再起動し、「アカウントの残高は何ですか? args配列に "-path", "C:\Program Files\MetaTrader 5\terminal64.exe" を追加します。 MT5がインストールされているWindows VPSでMCPサーバーを実行し、リモートで接続します.
概要(AI 翻訳)
AIアシスタントとMetaTrader 5のブリッジ Claude、ChatGPT、または自然言語のLMに話して取引を実行し、残高を確認し、市場データをストリームする - MT5を経由してすべてのルート。
お問い合わせ
⚠️ 免責事項
取引は損失の重要なリスクを含みます。 このソフトウェアは、取引結果のnoの責任でAs-isを提供します。 お客様は、このシステムを通じて実行されるすべての取引について責任を負います。 これは財務面談ではありません。
お問い合わせ
前提条件
- Python 3.10+ — ダウンロード
- ** MetaTrader 5ターミナル** — ダウンロード
- MT5アカウント認証 — ログイン番号、パスワード、サーバー名(
MetaQuotes-Demo) - Algo取引を有効に — MT5で: [
Tools → Options → Expert Advisors → Allow algorithmic trading
インストール
お問い合わせ
クイックスタート
使用例に合ったインターフェイスを選択します。
Option A — デスクトップをクロード (MCP over stdio)
Windows で Claude デスクトップコンフィグ (%APPDATA%\Claude\claude_desktop_config.json) に追加します。 [~/Library/Application Support/Claude/claude_desktop_config.json]] :
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
インストール
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"
]
}
}
}