xRocket Exchange MCP

io.github.nakazanie-ton由 GitHub 帳號 nakazanie-ton 發布v0.6.0更新於 Oct 27, 2026

Autonomous xRocket CEX trading inside operator-set limits, plus live market data over MCP

發布方自己的服務:Exchange.news — Crypto offers, campaigns and news

已驗證Streamable HTTP可網頁執行金融資料與分析

概覽

AI 產生的概覽

xRocket Exchange MCP 讓助理取得 xRocket 現貨公開行情,並在本地權杖下依營運者設定的每日額度進行受控的自動交易。

可以做什麼
  • 讀取公開行情:交易對與交易規則、24 小時行情、K 線、訂單簿、最近成交、資產資訊、法幣匯率與手續費,以及一次呼叫回傳的綜合行情快照
  • 依精確識別碼查詢單一交易對或資產,遇到歧義名稱不做猜測
  • 在私有設定下讀取餘額、帳戶總覽、訂單、劃轉、提領與配額
  • 在設定的每日金額上限與內建訂單數量限制內自動下單與取消訂單(現貨市價單或限價單)
  • 將劃轉與提領準備成精確意圖,需短期有效的一次性核准憑證才能執行
  • 回傳登入連結、本地交易設定指引與 API 文件入口
適用情境
適合讓助理追蹤 xRocket 現貨行情、取得 K 線、訂單簿與手續費,或在先於測試網驗證的前提下執行有額度上限的交易策略。僅做唯讀行情用託管端點即可;帳戶存取與交易需本地安裝。
執行需求
可使用託管公開端點(無需憑證),或透過 npx 本地執行,需 Node.js 20 或更新版本。私有存取需在 XROCKET_API_TOKEN 提供 xRocket API 權杖,並設定 XROCKET_PROFILE 與 XROCKET_ENVIRONMENT;交易需 XROCKET_ENABLE_TRADING 與 XROCKET_TRADING_LIMIT,主網寫入還需 XROCKET_ALLOW_MAINNET_WRITES。
安裝前請注意
此 API 權杖擁有較廣的帳戶權限,且沒有文件化的細分範圍;不要把它放進對話、託管端點、提交的檔案、issue 或日誌。開啟交易後助理可自動下單與取消訂單,涉及真實資金;劃轉與提領會移動資金,需一次性核准憑證。主網寫入需 XROCKET_ALLOW_MAINNET_WRITES。結果不明的訂單仍佔用額度且不會重試。此套件與 xRocket 無隸屬關係。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 xRocket Exchange MCP,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.nakazanie-ton%2Fxrocket/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "xrocket-exchange": {
      "type": "http",
      "url": "https://xrocket-mcp-production.up.railway.app/mcp"
    }
  }
}

README

xRocket Exchange MCP

Set one daily value limit and let an MCP-capable AI agent place and cancel xRocket spot orders autonomously inside it. Transfers and withdrawals remain separate explicit-approval operations.

The hosted endpoint remains a public market-data demo and onboarding path; it never receives account credentials and cannot trade. This package is not affiliated with or endorsed by xRocket. Set up trading or open xRocket.

Trading quick start

  1. Sign in to xRocket and open Menu → Settings → Exchange settings → API token.

  2. Generate a testnet-first MCP configuration with a daily limit:

    bash
    npx -y [email protected] trading-config --limit 100 --asset USD
  3. Paste the printed JSON into your local MCP client. Replace SET_YOUR_XROCKET_API_TOKEN_LOCALLY only in the client's local secret or environment settings.

  4. Give the client a strategy. It can place and cancel market or limit orders on any available spot pair until the configured daily value or built-in order-count limits are reached.

Use npx -y [email protected] trading-config --limit 100 --asset USD --mainnet only after testnet validation. Transfers and withdrawals stay disabled.

The upstream token has broad account access rather than documented granular scopes. Never put it in chat, the hosted endpoint, a committed file, an issue, or a log.

Hosted market demo

Use the connection page or copy the public mainnet endpoint without installing anything or supplying credentials:

text
https://xrocket-mcp-production.up.railway.app/mcp

It exposes only the 10 public tools and cannot read account tokens or enable financial writes. When asked to trade, its onboarding tool points the user to the local setup above.

Local quick start

bash
npx -y [email protected] doctornpx -y [email protected] config

Node.js 20 or newer is required. Public market reads work without configuration:

text
XROCKET_PROFILE=publicXROCKET_ENVIRONMENT=mainnet

Install the all-in-one Codex plugin from the repository marketplace:

bash
codex plugin marketplace add nakazanie-ton/myrocket --ref maincodex plugin add xrocket-exchange@xrocket-agents

GitHub Copilot CLI can install the portable plugin directly:

bash
copilot plugin install nakazanie-ton/myrocket:plugins/xrocket-exchange

The portable install connects only to the hosted public market tools. Use the trading quick start above when local account access is needed.

Gemini CLI:

bash
gemini extensions install https://github.com/nakazanie-ton/myrocket

The root Gemini extension uses the same hosted public-only endpoint and local trading handoff.

Claude Code:

bash
claude plugin marketplace add nakazanie-ton/myrocketclaude plugin install xrocket-exchange@xrocket-agents

Both marketplace plugins start with public market tools. The bundled skill handles the sign-in and one-limit local trading setup when private access is needed.

MCP client example:

json
{  "mcpServers": {    "xrocket": {      "command": "npx",      "args": ["-y", "[email protected]"],      "env": {        "XROCKET_ENVIRONMENT": "mainnet",        "XROCKET_ENABLE_TRADING": "false",        "XROCKET_ENABLE_TRANSFERS": "false",        "XROCKET_ENABLE_WITHDRAWALS": "false",        "XROCKET_ALLOW_MAINNET_WRITES": "false"      }    }  }}

For source development, run npm ci, npm test, and npm run build in this directory.

Profiles and write gates

  • public: 10 unauthenticated tools, including the composed xrocket_market_snapshot.
  • private-read: public tools plus balances, whole-account overview, orders, transfers, withdrawals, and quotas; inferred when XROCKET_API_TOKEN is present.
  • full: all tools, including autonomous trading plus explicit transfer/withdrawal workflows; every capability remains disabled unless its own gate is true.

Write gates are XROCKET_ENABLE_TRADING, XROCKET_ENABLE_TRANSFERS, and XROCKET_ENABLE_WITHDRAWALS; all default to false. Mainnet writes also require XROCKET_ALLOW_MAINNET_WRITES=true.

xrocket_agent_trade estimates and values each order before submitting it once. The local durable ledger enforces the configured daily value limit across restarts, while today's xrmcp-… exchange history recovers usage created by another local process. Daily order-count and active-order guards remain built in. All spot symbols are allowed by default; an optional symbol allowlist is available for advanced setups. Ambiguous order outcomes stay reserved against the limit and are not retried.

Transfers and withdrawals still store an exact prepared intent and accept only its short-lived, single-use approval receipt. The normal trading config keeps both gates disabled.

Boundaries

  • The Exchange API has no deposit-address endpoint; onboarding is a UI guide only.
  • Exchange transfers are internal funding ↔ trading, not user-to-user payments.
  • xRocket Pay is a separate product and is not included.
  • WebSocket channels are audited but 0.6.0 uses bounded REST snapshots.
  • Keep financial values as decimal strings and use TONCOIN where the current API requires it.

Full documentation, coverage, security policy, privacy notice, and terms live in the project repository.

來源:plugins/xrocket-exchange/README.md,提交 d8b01f7

工具

10

xrocket_market_snapshot

xRocket market snapshot

Resolve an exact symbol or base asset and return market rules, ticker, best bid/ask, recent trades, and fees in one read-only call. Exact symbols win; ambiguous assets are never guessed.

輸入參數depthmarket必填precision

xrocket_market_symbols

xRocket symbols

List all exchange symbols or inspect one exact symbol and its trading constraints.

輸入參數symbol

xrocket_market_tickers

xRocket 24h tickers

Get public 24-hour ticker data, optionally for a repeated list of symbols.

輸入參數symbols

xrocket_market_candles

xRocket candles

Get public OHLCV candles for an exact ISO-8601 time window.

輸入參數type必填endAt必填symbol必填startAt必填

xrocket_market_orderbook

xRocket order book

Get a public order-book snapshot. Precision must be valid for the selected pair.

輸入參數depthsymbol必填precision

xrocket_market_trades

xRocket recent trades

Get recent public trades for one symbol.

輸入參數symbol必填

xrocket_asset_info

xRocket assets

List public assets or inspect one exact asset identifier.

輸入參數asset

xrocket_rates

xRocket rates

Get public crypto-asset rates in one fiat base currency.

輸入參數base必填assets

xrocket_trade_fees

xRocket trade fees

Get exchange trade-fee data, optionally for repeated symbols.

輸入參數symbols

版本歷史

1
  1. v0.6.0最新Sep 16, 2026

評分

已滿足適用檢查項的 100%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Exchange 整合