MTContext

io.github.mtcontextPublished by GitHub account mtcontextv1.0.0Updated Nov 2, 2026

Connect any MCP client to MetaTrader 4/5 to read prices, manage positions, and place trades.

VerifiedStreamable HTTPWeb executableFinanceData & Analytics

Overview

AI-generated overview

Cloud-hosted MCP server that connects an AI client to a MetaTrader 4/5 terminal to read prices, check accounts, run indicators and place trades.

What you can do
  • Read live market data such as bid and ask quotes for currency pairs and metals
  • Inspect account state, including balance and open positions
  • Compute technical indicators such as RSI and MACD on a chosen symbol and timeframe
  • Size positions by risk, for example a percentage of equity with a pip stop
  • Place or preview trades, with trade-affecting calls defaulting to a dry run until confirmed
When to use it
Useful for traders who want to query and act on a MetaTrader 4 or 5 account conversationally from Claude, Cursor or another MCP client, without installing Python or running a local server. The free tier covers read-only market data; trading requires explicit confirmation.
Requirements
A remote Streamable HTTP endpoint at mcp.mtcontext.com, reachable over the network. An MTContext account and license key, sent as a bearer token in the Authorization header. A MetaTrader 4 or 5 terminal with the MTContext Expert Advisor file installed on a chart; MT4 support is described as coming soon.
Before you install
The server can place real trades on a live account once you allow it, so confirm dry-run results before approving anything. The license key in the Authorization header is a secret and should not be shared. The server is closed-source and cloud-hosted, so account and trading data pass through a third party.

Installation

In SourceWeft

  1. Open MTContext in the dashboard and add it to a workspace.
  2. Connect Authorization token credentials. They are stored privately and never shown on public pages.
  3. Enable the server for the chats that should use its tools.

Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.

Use with an agent

Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.

Read https://sourceweft.com/mcp/io.github.mtcontext%2Fmtcontext/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.

Read the install guide the agent follows

Other MCP clients

Add this to your client's mcpServers config.

{
  "mcpServers": {
    "mtcontext": {
      "type": "http",
      "url": "https://mcp.mtcontext.com/mcp/v1",
      "headers": {
        "Authorization": "Bearer <YOUR_TOKEN>"
      }
    }
  }
}

README

MTContext MCP Quickstart

Connect Claude, Cursor, or any MCP-compatible client to a MetaTrader 4 or 5 terminal — no Python, no local server to run.

MTContext is a cloud-hosted, remote MCP server. There's nothing to clone, build, or pip install from this repo — this repo exists to document the connection and point at the real thing. (This is intentional: the server implementation itself is closed-source, cloud infrastructure, not something you run yourself.)

How it works

  1. Sign up (free tier: read-only market data, no card required).
  2. Drag one Expert Advisor file (.ex5 for MT5, .ex4 for MT4 — MT4 support coming soon) onto a chart in your MetaTrader terminal.
  3. Copy your ready-made MCP config snippet from the dashboard and paste it into your client's config.
  4. Ask your AI client, in plain English, for live prices, account state, indicators, or — when you explicitly allow it — trades. Every trade-affecting call defaults to dry_run: true until you confirm.

Connection

MTContext exposes a single remote Streamable HTTP MCP endpoint per account:

json
{  "mcpServers": {    "mtcontext": {      "type": "http",      "url": "https://mcp.mtcontext.com/mcp/v1",      "headers": {        "Authorization": "Bearer YOUR_LICENSE_KEY"      }    }  }}

Get your real YOUR_LICENSE_KEY from your dashboard after connecting a terminal — see examples/claude_desktop_config.example.json.

What you can ask it

  • "What's the current EURUSD bid and ask?"
  • "What's my account balance and open positions?"
  • "Run RSI and MACD on GBPUSD, H1."
  • "Size a position on XAUUSD risking 1% of my equity with a 30-pip stop."
  • "Place a dry-run buy on EURUSD, 0.1 lots, and show me what would happen."

Full tool reference: docs.mtcontext.com. Setup guides and troubleshooting: help.mtcontext.com.

Why not a self-hosted MCP server?

Several open-source MetaTrader MCP servers exist and require installing Python and running a local process yourself, usually MT5-only, with no safety layer beyond what you build. MTContext trades that developer-only setup for a one-file install, MT4 and MT5, and a dry-run-by-default safety model — aimed at traders, not just developers who happen to trade.

Links

License

The contents of this repository (documentation and examples) are MIT licensed — see LICENSE. This does not cover the MTContext service itself, which is proprietary.

Source: README.md at commit e6b1f1a

Tools

0
This server asks for a credential such as an API key, so SourceWeft could not read its tools without one and has not indexed them.

Version history

1
  1. v1.0.0LatestSep 16, 2026

Score

75% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 daysRequired25 pts
  • Auth declaredRequired10 pts
  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts

    Declare a license in the repository or the registry entry.