MTContext

io.github.mtcontext由 GitHub 账号 mtcontext 发布v1.0.0更新于 Nov 2, 2026

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

已验证Streamable HTTP可网页运行金融数据与分析

概览

AI 生成的概览

云端托管的 MCP 服务器,将 AI 客户端连接到 MetaTrader 4/5 终端,用于读取报价、查看账户、计算指标并下单交易。

可以做什么
  • 读取实时行情,例如货币对和贵金属的买入价与卖出价
  • 查看账户状态,包括余额和持仓
  • 在指定品种与周期上计算 RSI、MACD 等技术指标
  • 按风险计算仓位,例如以权益的百分比和止损点数确定手数
  • 下单或预览交易,涉及交易的调用默认以 dry_run 方式执行,确认后才真正成交
适用场景
适合希望用对话方式查询和操作 MetaTrader 4 或 5 账户的交易者,可在 Claude、Cursor 等 MCP 客户端中使用,无需安装 Python 或自行运行本地服务器。免费版提供只读行情数据,交易需明确确认。
运行要求
需要可访问网络的远程 Streamable HTTP 端点 mcp.mtcontext.com。需要 MTContext 账户和许可证密钥,以 bearer 令牌形式放在 Authorization 请求头中。需要在 MetaTrader 4 或 5 终端中把 MTContext 的 Expert Advisor 文件加载到图表上;MT4 支持据称即将推出。
安装前请注意
一旦允许,服务器可在真实账户上执行真实交易,批准前应先核对 dry_run 结果。Authorization 请求头中的许可证密钥属于机密,不应外泄。服务器为闭源云端服务,账户与交易数据会经过第三方。

安装

在 SourceWeft 中

  1. 打开 控制台中的 MTContext,将其添加到工作区。
  2. 连接 Authorization token 凭据。它们会被私密存储,绝不会在公开页面上展示。
  3. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.mtcontext%2Fmtcontext/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "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.

来源:README.md,提交 e6b1f1a

工具

0
该服务器需要 API 密钥等凭据,因此 SourceWeft 无法在没有凭据的情况下读取其工具,也未收录。

版本历史

1
  1. v1.0.0最新Sep 16, 2026

评分

已满足适用检查项的 75%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。