Mt5 MCP By Leo
ใช้ทำอะไรได้
ยังไม่มีคำอธิบายภาษาไทย ดูข้อเท็จจริงด้านล่าง หรือเปิดคำอธิบายต้นฉบับจากผู้ทำ
- ต่อแบบ ติดตั้งในเครื่อง
- บัญชีหรือคีย์ ไม่ต้องใส่คีย์
- หมวด เครื่องมือนักพัฒนา
คำอธิบายต้นฉบับจากผู้ทำ (อังกฤษ)
Full MCP server for MT5: access trades, logs, compilation, etc..ติดตั้ง
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
ผลตรวจผ่าน 2/3 · ทำงานบนเครื่องคุณ · ✓ ตรวจคำสั่งแล้ว 13 พ.ย. 2569
ขั้นแรก: คุณใช้ AI ตัวไหน
เลือกแอปที่คุณใช้ ขั้นตอนจะขึ้นด้านล่าง
ต่อกับ Claude ได้ แต่ต้องเตรียมก่อน
ต้องลง Python (uv) ในเครื่องก่อน (ทำครั้งเดียว) · ใช้ได้เฉพาะแอป Claude บนคอม (Windows หรือ Mac) ไม่ใช่บนเว็บหรือมือถือ
ลง Python (uv) ในเครื่อง
ทำครั้งเดียว ใช้ได้กับทุกตัวที่ต้องใช้ Python (uv)
เปิดไฟล์ตั้งค่าของแอป Claude บนคอม
SettingsDeveloperEdit Config
วางค่าตั้งนี้แล้วบันทึกไฟล์
{ "mcpServers": { "mt5-by-leo": { "command": "uvx", "args": [ "mt5-mcp-by-leo" ] } } }ปิดแอป Claude แล้วเปิดใหม่
ลองเลย
ใช้ Mt5 MCP By Leo บอกหน่อยว่าทำอะไรให้ฉันได้บ้าง แล้วลองทำให้ดูหนึ่งอย่าง✓ ถ้า Claude บอกว่ากำลังใช้ Mt5 MCP By Leo หรือมีชื่อเครื่องมือของ Mt5 MCP By Leo ขึ้นในคำตอบ แปลว่าต่อสำเร็จ
ชื่อเมนูตรวจกับหน้าช่วยเหลือของ Anthropic เมื่อ 11 พ.ย. 2569 · หน้าจอของคุณอาจต่างเล็กน้อยตามรุ่นของแอป
ChatGPT ยังต่อ Mt5 MCP By Leo ไม่ได้
Mt5 MCP By Leo ต้องติดตั้งในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะตัวที่ทำงานบนเว็บ
คุณทำแบบนี้แทนได้
ก · ใช้แอปที่ต่อ Mt5 MCP By Leo ได้
- ต้องลง Python (uv) ในเครื่องก่อน (ทำครั้งเดียว) · ใช้ได้เฉพาะแอป Claude บนคอม (Windows หรือ Mac) ไม่ใช่บนเว็บหรือมือถือ
- ต้องลง Python (uv) ในเครื่องก่อน (ทำครั้งเดียว)
- ต้องลง Python (uv) ในเครื่องก่อน (ทำครั้งเดียว)
- ต้องลง Python (uv) ในเครื่องก่อน (ทำครั้งเดียว)
ข · ตัวอื่นในหมวด เครื่องมือนักพัฒนา ที่ต่อกับ ChatGPT ได้
เลือกจากตัวที่ใช้มากในหมวดเดียวกัน เฉพาะตัวที่ต่อด้วยที่อยู่ได้โดยไม่ต้องใส่คีย์
- Sentry✓ ChatGPT
- Compiler Explorer✓ ChatGPT
- GitDiagram✓ ChatGPT
ต่อกับ Claude Code ได้ แต่ต้องเตรียมก่อน
ต้องลง Python (uv) ในเครื่องก่อน (ทำครั้งเดียว)
ลง Python (uv) ในเครื่อง
ทำครั้งเดียว ใช้ได้กับทุกตัวที่ต้องใช้ Python (uv)
เปิด Terminal
Mac: กด Command+Space พิมพ์ Terminal · Windows: เปิด PowerShell
วางคำสั่งนี้แล้วกด Enter
claude mcp add --scope user mt5-by-leo -- uvx mt5-mcp-by-leoพิมพ์ /mcp ใน Claude Code
ต้องเห็น Mt5 MCP By Leo ในรายการและขึ้นว่าเชื่อมต่อแล้ว
ลองเลย
ใช้ Mt5 MCP By Leo บอกหน่อยว่าทำอะไรให้ฉันได้บ้าง แล้วลองทำให้ดูหนึ่งอย่าง✓ ถ้า Claude Code บอกว่ากำลังใช้ Mt5 MCP By Leo หรือมีชื่อเครื่องมือของ Mt5 MCP By Leo ขึ้นในคำตอบ แปลว่าต่อสำเร็จ
ชื่อเมนูตรวจกับหน้าช่วยเหลือของ Anthropic เมื่อ 11 พ.ย. 2569 · หน้าจอของคุณอาจต่างเล็กน้อยตามรุ่นของแอป
ต่อกับ Cursor ได้ แต่ต้องเตรียมก่อน
ต้องลง Python (uv) ในเครื่องก่อน (ทำครั้งเดียว)
ลง Python (uv) ในเครื่อง
ทำครั้งเดียว ใช้ได้กับทุกตัวที่ต้องใช้ Python (uv)
เปิดแชตของ AI ใน Cursor โหมด Agent
ลองเลย
ใช้ Mt5 MCP By Leo บอกหน่อยว่าทำอะไรให้ฉันได้บ้าง แล้วลองทำให้ดูหนึ่งอย่าง✓ ถ้า Cursor บอกว่ากำลังใช้ Mt5 MCP By Leo หรือมีชื่อเครื่องมือของ Mt5 MCP By Leo ขึ้นในคำตอบ แปลว่าต่อสำเร็จ
ชื่อเมนูตรวจกับหน้าช่วยเหลือของ Cursor เมื่อ 11 พ.ย. 2569 · หน้าจอของคุณอาจต่างเล็กน้อยตามรุ่นของแอป
ต่อกับ VS Code ได้ แต่ต้องเตรียมก่อน
ต้องลง Python (uv) ในเครื่องก่อน (ทำครั้งเดียว)
ลง Python (uv) ในเครื่อง
ทำครั้งเดียว ใช้ได้กับทุกตัวที่ต้องใช้ Python (uv)
เปิดแชตของ AI ใน VS Code โหมด Agent
ลองเลย
ใช้ Mt5 MCP By Leo บอกหน่อยว่าทำอะไรให้ฉันได้บ้าง แล้วลองทำให้ดูหนึ่งอย่าง✓ ถ้า VS Code บอกว่ากำลังใช้ Mt5 MCP By Leo หรือมีชื่อเครื่องมือของ Mt5 MCP By Leo ขึ้นในคำตอบ แปลว่าต่อสำเร็จ
ชื่อเมนูตรวจกับหน้าช่วยเหลือของ VS Code เมื่อ 11 พ.ย. 2569 · หน้าจอของคุณอาจต่างเล็กน้อยตามรุ่นของแอป
โปรแกรมอื่นที่ใช้ MCP ได้ เช่น Windsurf, Zed หรือ Gemini CLI มีวิธีเพิ่มต่างกัน ดูวิธีของแต่ละตัวในหน้ารวมโปรแกรม
ค่าตั้งแบบไฟล์ JSON อยู่ในหัวข้อ “สำหรับคนเขียนโค้ด” ด้านล่าง
สำหรับคนเขียนโค้ด: คำสั่ง Terminal และค่าตั้ง JSON
ติดตั้งในเครื่อง
Claude Code
claude mcp add --scope user mt5-by-leo -- uvx mt5-mcp-by-leoClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"mt5-by-leo": {
"command": "uvx",
"args": [
"mt5-mcp-by-leo"
]
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"mt5-by-leo": {
"command": "uvx",
"args": [
"mt5-mcp-by-leo"
]
}
}
}VS Code (mcp.json)
{
"servers": {
"mt5-by-leo": {
"type": "stdio",
"command": "uvx",
"args": [
"mt5-mcp-by-leo"
]
}
}
}ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
สรุป
ใช้กับโปรแกรมไหนได้
ดูจากแบบการต่อของ server ตัวนี้ และเอกสารของผู้ทำโปรแกรมแต่ละตัว ตรวจเมื่อ 10 พ.ย. 2569
ติดตั้งบนเครื่องได้ใน
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
คู่มือที่เกี่ยวข้อง
ทำอะไรได้บ้าง
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
ผลตรวจเบื้องต้นi
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 13 พ.ย. 2569
- ✓ ผ่าน
ตัวตนผู้ทำตรงกับ repo
ชื่อใน registry ยืนยันด้วยบัญชี GitHub TradeSystemsNique ซึ่งเป็นเจ้าของ repo
- ✓ ผ่าน
ยังมีคนดูแล
มีการแก้โค้ดล่าสุด 4 เดือนที่ผ่านมา
- ! ควรระวัง
มีสัญญาอนุญาต (license)
GitHub อ่านชนิด license ไม่ออก ต้องเปิดไฟล์ดูเอง
- – ไม่เกี่ยว
endpoint ตอบ
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
- – ไม่เกี่ยว
ล็อกอินแบบ OAuth
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
- … ยังไม่ตรวจ
คำอธิบายเครื่องมือไม่มีคำสั่งแอบแฝง
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
พูดคุย
ถาม แชร์เคล็ดลับ หรือแจ้งว่าใช้ไม่ได้ เรียงตามที่คนกดว่ามีประโยชน์
ยังไม่มีใครโพสต์ ถามหรือแชร์เป็นคนแรกได้เลย
ข้อความในส่วนนี้เขียนโดยผู้ใช้ ไม่ใช่ทีม PopNx
รีวิวจากผู้ใช้
ยังไม่มีรีวิว
เทียบกับตัวอื่นในหมวด เครื่องมือนักพัฒนาi
- ดาวมากกว่า 83% ของอีก 5852 ตัวในหมวดนี้
- ส่งรุ่นใหม่เข้า registry ล่าสุดกว่า 10% ของอีก 5852 ตัวในหมวดนี้
- ผลตรวจเบื้องต้นดีกว่าหรือเท่ากับ 44% ของอีก 5852 ตัวในหมวดนี้
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
คำถามที่พบบ่อย
Mt5 MCP By Leo ปลอดภัยไหม?
จากการตรวจเบื้องต้นของเรา ผ่าน 2 จาก 3 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
ต้องใช้กุญแจหรือรหัสอะไรบ้าง?
registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก
ตัวนี้รันบนเครื่องหรือบนคลาวด์?
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
ยังมีคนดูแลอยู่ไหม?
repo บน GitHub มีการแก้โค้ดล่าสุด 4 เดือนที่ผ่านมา และส่งรุ่นล่าสุด (1.0.0) เข้า registry 6 เดือนที่ผ่านมา
ใช้กับโปรแกรมไหนได้บ้าง?
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Python (uv) ในเครื่องด้วย
ตัวอื่นในหมวดเดียวกัน
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:↓ ดาวน์โหลดต่อสัปดาห์i★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
Serena MCP: the IDE for your agent
A powerful toolkit for coding, providing semantic retrieval and editing capabilities.
README จากผู้ทำ
เปิดอ่าน README
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
Universal MCP Server for MetaTrader 5 Trading & Data Operations
Overview
FullMt5McpByLeo is a complete, production-ready MCP server that enables Claude and other AI assistants to control MetaTrader 5 directly. Execute trades, retrieve market data, manage charts, analyze trading history, and automate MT5 operations through natural language.
Main Features (General)
- Fast execution; the MCP server is written in C++ using simdjson and MQL5 uses JsonParserByLeo (fast MQL5 JsonParser), ultra-optimized code for maximum speed.
The average response time is around 10ms (from when Claude calls a function until its response; note that this may depend on the size of the request... on average it's 10ms).
- Unlike other MCPs for MT5, this MCP has two parts, one in MQL5 and the other in C++, giving access to the full MQL5 API and not limited to the mt5 package for Python, which lacks functions for handling charts, etc.
Main Features (MCP Functions)
Trade Operations
Execute and manage trading positions and orders:
- Open Positions: Execute market trades (buy/sell) with immediate or pending orders
- Position Management: Modify stops/profits, close positions (full or partial)
- Order Management: Create, modify, and cancel pending limit/stop orders
- Trading History: Query completed deals with profit/loss analysis
Market Data & Symbols
Access real-time and historical data:
- OHLC Data: Retrieve candlestick data (open, high, low, close, volume, spread, etc..)
- Tick data: Retrieve Tick data (last, ask, bid, flags, etc..)
- Symbol Information: Get symbol properties (digits, spreads, swaps, volumes, etc.. full SYMBOL_INFO_*)
- Market Watch: Manage symbol selection and availability
Indicators
- Indicator Manager: Get parameters, Add indicadors (ALL, Custom, MA, ETC..), Remove, Get Buffers, etc..
Graphic Objects
Create and modify chart visualizations:
- Draw Objects: Create trend lines, rectangles, text labels, arrows
- Object Properties: Modify colors, styles, prices, text, full ENUM_OBJECT_PROPERTY_*
- Chart Annotations: Add visual markers and indicators to charts
Chart Management
Control chart windows and redraw operations:
- Chart Operations: Open, close, list active charts
- Chart Properties: Read chart dimensions, colors, price ranges
- Visual Updates: Force chart redraw for real-time updates
- Indicators: Add\Delete\GetName\GetTotal of indicator of any chart\subwin
- Navigate: Navigate chart
Code & Terminal
Compile and execute Expert Advisors:
- Compilation: Compile MQL5 source to EX5 bytecode
- Backtesting and Optimization: Run historical tests with multiple tick modeling\leverage\opt criterian\opt mode\forward\visual mode.. etc
and get full report, deals, balance\equity curve.
- EA Execution: Run Expert Advisors in real-time
- Logging: Retrieve EA logs for debugging and monitoring
- Terminal and Account: Obtaing terminal and acount info_* (integer, string, double)
Note: Python version package mt5_mcp_by_leo is deprecated. now replace by C++ exe server.
Note: Unlike other MCPs that use .ini files to launch backtests, this MCP doesn't need that because it controls the entire MT5 tester from the same EA, without .ini files, without wasted terminals. In addition, the code compilation is more complete since its AI can choose whether or not to optimize the code, instructions, etc.
Repository Structure
FullMt5McpByLeo/
├── Src/ # MQL5 Backend Functions │ .... ├── mt5_mcp_by_leo/ # Json tools definition │ ....
⚠️ License Activation (Required)
Your MCP server won't work without an active license from TheBotPlace.
- Purchase McpServerByLeo here: https://www.thebotplace.com/bot/mcpserverbyleo
- Get your TBP ID from your TheBotPlace account - Your user ID
- Add it to the
argsarray in yourclaude_desktop_config.jsonor the JSON that your AI platform uses (see Quick Start/step 4 below)
Requirements (pre-instalation)
- General (for all)
- EXE from releases (McpServer.exe)
- For repo code (devs)
- Check: dependencies.json
- For user use:
- EX5 of releases (Runner an Mt5Mcp).
Installation of repo code
cd "C:\Users\YOUR USER\AppData\Roaming\MetaQuotes\Terminal\YOUR ID\MQL5\Shared Projects"
tsndep install "https://forge.mql5.io/nique_372/FullMt5McpByLeo.git"
- For use tsndep command requerid tsndep pacakage (avaible in pypi).. This command automatically downloads all dependencies and installs all requirements from the repositories.
- If any part of the system is private, then it will fail... contact me so I can give you access (if it's a product, you can buy it; if you have any questions, don't hesitate to contact me).
Quick Start (for final users)
1. Download
Download the latest .exe and .ex5 files from the repo releases. Place the .ex5 files in the MT5 terminal's Experts\ folder, and the .exe file in an easily accessible folder (for example, the MT5 terminal's Common\Files\ folder).
2. Download tools.json
Download the tools.json file and place it in your terminal's Common\Files\ folder.
3. Create a config json
Open Common\\Files And create a json file with this structure:
{
"general": { "type_reg": "stdio_stdin", "json_tools_fpath": "JSON_TOOL_PATH" }, "mt5_conn": { "host": "127.0.0.1", "port": 9999 }, "http_lib": { "name": "McpMt5Server", "version": "1.0.0", "host": "127.0.0.1", "port": 8080, "endpoint": "/" }, "stdio_stdin": { "name": "MT5 MCP Server", "version": "1.0.0" } }
> Full template in [Templates/config.json](https://forge.mql5.io/nique_372/FullMt5McpByLeo/src/branch/main/Templates/config.json)
- JSON_TOOL_PATH: Path to the tools configuration json (you can download the json from the mt5_mcp_by_leo folder and place it in documents for example and put the path to said file here...) Or if you have the repository cloned, you can use the path to tools.json
4. Configure in Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": { "mt5_mcp_by_leo": { "command": "PATH_TO_EXE", "args": ["PATH_TO_FILE", "YOUR_TBP_ID", "YOUR_MT5_ACCOUNT_LOGIN_ID" ] } } }
> Full template in [Templates/claude_desktop_config.json](https://forge.mql5.io/nique_372/FullMt5McpByLeo/src/branch/main/Templates/claude_desktop_config.json)
- PATH_TO_EXE: Path to exe McpServer.exe file
- PATH_TO_FILE: Path to json config file
- YOUR_TBP_ID: Your The Bot Place user ID
- YOUR_MT5_ACCOUNT_LOGIN_ID: ACCOUNT_LOGGIN of your mt5 account where Mt5Mcp EA is running
5. Configure MetaTrader 5
In MT5: Tools → Options → Allowed URLs for WebRequest
- Add
127.0.0.1or host you configured. - Click Accept
- Enable AutoTrading and DLL imports
6. Open claude desktop
Open Claude Desktop. At that moment, a CMcpServer.exe is running in the background until it establishes a connection with the EA Mt5Mcp.ex5.
7. Attach EA in MT5
1. Run Runner.ex5 in any chart.. (dowland from releases)
- Drag Mt5Mcp.ex5 onto your chart (any) and cofigure it, The parameters of the EA, such as port/host, must match the JSON of Claude Desktop
8. Use in Claude
Open a 0.01 lot BUY on EURUSD with SL at 1.0800 and TP at 1.0900
Note:
You can also use HTTP Remote (McpServer.exe support HTTP with libs httplib + mcp-remote npm package) (see: https://forge.mql5.io/nique_372/McpServer/wiki/Running-HTTP)
License
[Read Full License](./LICENSE)
By downloading or using this repository, you accept the license terms.
Documentation
- Wiki: https://forge.mql5.io/nique_372/FullMt5McpByLeo/wiki
- Testing MCP (Full testing in YT videos):
- https://www.youtube.com/watch?v=kco7aCOs-bM
- https://www.youtube.com/watch?v=xCscKpoCi3Y
Contact
- Platform: MQL5 Community
- Profile: https://www.mql5.com/es/users/nique_372/news
Copyright © 2026 Niquel Mendoza (nique_372).
TSN Trading Systems ecosystem.