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 集成