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 分

    請在儲存庫或註冊中心條目中宣告授權條款。