metatradermcp

metatradermcp is a skill for Claude Code, Codex from TheFractalyst/MetatraderMCP. It costs 87 tokens per session (4,152 once invoked), scanned A, original, MIT.

A reference skill for MQL4 and MQL5, the programming languages used to create automated trading programs and indicators in MetaTrader 4 and 5.

In plain words
What is it for?
It is for writing, checking, compiling, or migrating Expert Advisors, custom indicators, and scripts, including trading operations and technical indicators.
Why use it?
It gives the agent relevant documentation when working with MetaTrader code, reducing confusion between the older and newer languages.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It is for writing, checking, compiling, or migrating Expert Advisors, custom indicators, and scripts, including trading operations and technical indicators.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/thefractalyst/metatradermcp/metatradermcp
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add TheFractalyst/MetatraderMCP --skill metatradermcp
Clone the repo
git clone --depth 1 https://github.com/TheFractalyst/MetatraderMCP

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for metatradermcp

README.md
[![agentmods](https://agentmods.dev/badge/skills/thefractalyst/metatradermcp/metatradermcp/github.svg)](https://agentmods.dev/skills/thefractalyst/metatradermcp/metatradermcp)
Your own site
<a href="https://agentmods.dev/skills/thefractalyst/metatradermcp/metatradermcp"><img src="https://agentmods.dev/badge/skills/thefractalyst/metatradermcp/metatradermcp/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for metatradermcp

Your own site · 80×15
<a href="https://agentmods.dev/skills/thefractalyst/metatradermcp/metatradermcp"><img src="https://agentmods.dev/badge/skills/thefractalyst/metatradermcp/metatradermcp.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 87 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,152 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00087 $0.04152
Opus 5 $0.00044 $0.02076
Sonnet 5 $0.00017 $0.00830
Haiku 4.5 $0.00009 $0.00415

Measured 11d ago against content hash a921d1673f14, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

metatradermcp scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

SKILL.md · 296 lines

How it starts

The opening of the file, as written. The whole thing — 296 lines — stays where its author put it; the contents beside it link to each section on GitHub.

MetaTraderMCP Server Skill

When to Use

Trigger when the user is working with any of the following:

  • MQL4 - MetaTrader 4 programming language (legacy)
  • MQL5 - MetaTrader 5 programming language (current)
  • MetaTrader 4 (MT4) / MetaTrader 5 (MT5) - trading platforms
  • Expert Advisors (EAs) - automated trading bots
  • Custom Indicators - technical analysis indicators
  • Scripts - one-time execution utilities
  • MetaEditor - the MQL compiler/IDE
  • MQL4-to-MQL5 migration - modernizing legacy code

Trigger Keywords

mql4, mql5, metatrader, expert advisor, EA, indicator, script, OrderSend, iMACD, iRSI, CopyBuffer, MT4, MT5, MQL, MetaEditor, OnTick, OnInit, OnCalculate, OnStart, PositionOpen, CTrade, SymbolInfoDouble, AccountInfoDouble, iMA, iCustom, OrdersTotal, MarketInfo, .mq4, .mq5, .mqh

Server Overview

The MetaTraderMCP server provides complete local reference documentation for both MQL4 and MQL5, the programming languages used in MetaTrader 4 and MetaTrader 5 trading platforms.

Coverage: 4863 entries across 2 MQL versions, 37 documentation sections, all indexed in ChromaDB.

  • MQL5: 2471/2471 sitemap URLs (100%)
  • MQL4: 656/656 sitemap URLs (100%)
  • 33 MetaTrader5 Python API pages included
  • Real MetaEditor compiler integration (local, Wine/CrossOver, or SSH to Windows)

Unlike static docs, this server can actually compile MQL code via the real MetaEditor compiler and return diagnostic reports with error-to-doc cross-referencing.

Mandatory Usage Pattern (NON-NEGOTIABLE)

When working on ANY MQL file (.mq4, .mq5, .mqh, or any file containing OnTick, OnInit, OnCalculate, OnStart, #property indicator, or int OnInit), you MUST consult this server before writing code. Do NOT rely on training data or assumptions.

BEFORE writing a function call or using a built-in:

  1. mql_lookup(name) - exact symbol docs (auto-detects function/variable/type/constant/keyword/operator)
  2. If unsure of the name: mql_search(query) for semantic hits

Read the full file on GitHub · 296 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 296 lines · 87 tokens per session scan A a921d1673f14

Subscribe to this mod's changes

metatradermcp is a skill published in the GitHub repository TheFractalyst/MetatraderMCP (2 stars, last pushed 14d ago), licensed MIT. It adds 87 tokens to every session and 4,152 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

finance

Personal finance planning — 5-pillar framework (cash flow, net worth, debt, emergency fund, investing), tax optimization, insurance review, retirement planning (FIRE, 4% rule, Mega Backdoor Roth), and document retention.

EliasOulkadi/shokunin · 51 tokens

trading

Trading Terminal Assistant for MetaTrader 5. Use when the user wants to check trading account, view market prices, get candles, place buy/sell orders, manage positions, handle pending orders, view history, close positions, or any MT5 trading operation. Trigger on mentions of trading, forex, stocks, MT5, positions…

ariadng/metatrader-mcp-server · 95 tokens

vobiz-partner-api

Vobiz Partner / reseller API - create customer sub-accounts, transfer balance, run KYC sessions (PAN+Aadhaar OTP, no documents), and query per-customer CDRs/transactions/numbers.

vobiz-ai/Agent-Skills · 51 tokens

accounts-receivable-advanced

This skill should be used when AR runs as a dedicated standalone invoicing application rather than as a sub-module inside a books app — typically a US mid-market company that needs branded invoice templates, recurring billing, structured dunning, dispute management, credit holds, and a formal write-off workflow. The…

erphq/skills · 75 tokens

accounts-payable

This skill should be used when paying vendor bills at an organization under 100 employees — typically one person handling AP in QuickBooks, Xero, or a bill-pay tool like Bill.com or Ramp, with lightweight approvals and no formal purchase orders.

erphq/skills · 53 tokens

accounts-receivable

This skill should be used when invoicing customers and collecting payment at an organization under 100 employees — typically using QuickBooks, Xero, or Stripe Invoicing, with lightweight collections and a founder or bookkeeper chasing overdue invoices personally.

erphq/skills · 53 tokens