CAT
/MCP
SkillsMCPMarketplacesDigestToolsAdvertise

This week in Claude

Every Monday: Claude Code, Agent SDK, MCP, and the Anthropic platform moves worth your time.

Skills by Category
Frontend DevelopmentBackend & APIsTesting & QASecurityDevOps & CI/CDGit & Pull RequestsDocumentationCode Review & QualityAI & Agent BuildingSkill Development
MCP Servers by Category
Sales & MarketingWeb & Browser AutomationDatabasesAI & LLM ToolsCloud & InfrastructureCommunication & MessagingDeveloper ToolsDesign & CreativeDocuments & KnowledgeSearch & Web Crawling
Marketplaces by Category
AI Agents & OrchestrationLLM IntegrationDevelopment ToolsFrontend & UIBackend & APIsDatabasesTesting & Code QualityDevOps & CloudSecurity & ComplianceGit & Version Control

Cross AI Tools

Discover Claude Code plugins, extensions, and tools. Automatically updated directory of Anthropic Claude AI marketplaces with development tools, productivity plugins, and integrations.

Resources

  • Browse Skills
  • Browse MCP Servers
  • Browse Marketplaces
  • Plugins Reference

Community

  • About
  • Tools
  • Feedback
  • Privacy Policy
  • Advertise

Built for the Claude Code community with Claude Code by @mertduzgun

Independent project, not affiliated with Anthropic

Mt5 Mcp By Leo

tradesystemsnique/fullmt5mcpbyleo
STDIOregistry active
Summary

This is a C++ MCP server that bridges Claude directly to MetaTrader 5 trading operations. It exposes the full MQL5 API through a dual architecture: a C++ frontend using simdjson for speed (averaging 10ms response time) and an MQL5 backend running as an Expert Advisor. You get trade execution (market and pending orders), position management, historical deal queries, OHLC and tick data retrieval, chart object drawing, EA compilation and backtesting, and terminal logging. Unlike Python mt5 package wrappers, this gives you chart management and graphical annotations. Setup requires purchasing the McpServerByLeo library from TheBotPlace, running the included EA on your MT5 terminal, and connecting via stdio or HTTP. Reach for this when you need AI driven trade automation with full platform access beyond basic order placement.

CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
Keep your Mac awake
Keep your Mac awake
Keep your Mac awake while Claude Code and 40+ AI agents run. Sleeps when they're idle.
One time payment $9 →
Context.devContext.dev
Context.dev
Integrate web data into your AI product. One API to scrape website & brand data.
Get API Key Now →
Make your agent a DeFi expert
Make your agent a DeFi expert
Agent, run crypto. Access onchain data & trade routes via 1inch.
Install now →
Make money from your Skills
Make money from your Skills
On Capafy, your Skill runs online 24/7 as an agent product, and you get paid every time someone uses it.
Start earning →
AppSignal
AppSignal
Monitor with ease. Code with confidence.
Start Free Trial →
CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
Keep your Mac awake
Keep your Mac awake
Keep your Mac awake while Claude Code and 40+ AI agents run. Sleeps when they're idle.
One time payment $9 →
Context.devContext.dev
Context.dev
Integrate web data into your AI product. One API to scrape website & brand data.
Get API Key Now →
Make your agent a DeFi expert
Make your agent a DeFi expert
Agent, run crypto. Access onchain data & trade routes via 1inch.
Install now →
Make money from your Skills
Make money from your Skills
On Capafy, your Skill runs online 24/7 as an agent product, and you get paid every time someone uses it.
Start earning →
AppSignal
AppSignal
Monitor with ease. Code with confidence.
Start Free Trial →

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, super-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)
  • Market Watch: Manage symbol selection and availability

Graphic Objects

Create and modify chart visualizations:

  • Draw Objects: Create trend lines, rectangles, text labels, arrows
  • Object Properties: Modify colors, styles, prices, text
  • 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

Code & Terminal

Compile and execute Expert Advisors:

  • Compilation: Compile MQL5 source to EX5 bytecode
  • Backtesting: Run historical tests with multiple tick modeling
  • 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.


Repository Structure

FullMt5McpByLeo/
├── Src/                              # MQL5 Backend Functions
│    ....
├── mt5_mcp_by_leo/                   # Json tools definition
│    ....

Requirements

  • For repo code
  • Check: dependencies.json
  • For user use:
  • EX5 of releases (Runner an McPServer).
  • EXE from releases
  • EX5 Library McpServerByLeo pucharse in: TheBotPlace - McpServerByLeo When you purchase the library, you should already have an account on TheBotPlace. This account will have an ID, which you will put in the .json file of your MCP IA (YOUR_TBP_ID).

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

Download the latest .exe and .ex5 files from the repo releases....

2. 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"
  }
}
  • 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

2. 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" 
      ]
    }
  }
}
  • PATH_TO_EXE: Path to exe McpServer 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

3. Configure MetaTrader 5

In MT5: Tools → Options → Allowed URLs for WebRequest

  • Add 127.0.0.1 or host you configured.
  • Click Accept
  • Enable AutoTrading and DLL imports

4. Open claude desktop

Open Claude Desktop. At that moment, a Python script is running in the background until it establishes a connection with the EA McpServer.ex5.

5. Compile & Attach EA

Run Runner.ex5 in any chart.. (dowland from releases)
Then:
MetaEditor: Open Src/Mt5Mcp.mq5 → Compile (F5) Or Dowland Mt5Mcp.ex5 of releases (last version).
MT5: Drag Mt5Mcp.ex5 onto your chart and cofigure it, The parameters of the EA, such as port/host, must match the JSON of Claude Desktop

6. 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 with the help of "mcp-remote" (see: https://forge.mql5.io/nique_372/McpServer/wiki/Running-HTTP)


License

Read Full License

By downloading or using this repository, you accept the license terms.


Documentation

  • Wiki: https://forge.mql5.io/nique_372/FullMt5McpByLeo/wiki

Contact

  • Platform: MQL5 Community
  • Profile: https://www.mql5.com/es/users/nique_372/news

Copyright © 2026 Niquel Mendoza (nique_372).
TSN Trading Systems ecosystem.

Featured
CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
Keep your Mac awake
Keep your Mac awake
Keep your Mac awake while Claude Code and 40+ AI agents run. Sleeps when they're idle.
One time payment $9 →
Context.devContext.dev
Context.dev
Integrate web data into your AI product. One API to scrape website & brand data.
Get API Key Now →
Make your agent a DeFi expert
Make your agent a DeFi expert
Agent, run crypto. Access onchain data & trade routes via 1inch.
Install now →
Make money from your Skills
Make money from your Skills
On Capafy, your Skill runs online 24/7 as an agent product, and you get paid every time someone uses it.
Start earning →
AppSignal
AppSignal
Monitor with ease. Code with confidence.
Start Free Trial →
Registryactive
Packagemt5-mcp-by-leo
TransportSTDIO
UpdatedMay 3, 2026
View on GitHub