get_gas_demo
Get free real-time gas prices for 4 major EVM chains (Ethereum, Base, Arbitrum, Optimism). Rate limited 10/hr.
无需输入参数。

xyz.chain-ops由 chain-ops.xyz 发布官方发布者v2.2.0更新于 Oct 24, 2026
Compare live gas across up to 9 EVM chains and get the cheapest one. x402 pay-per-call on Base.
远程 MCP 服务器,比较最多 9 条 EVM 链的实时 Gas 价格,并在交易前推荐最便宜的链。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。
阅读 https://sourceweft.com/mcp/xyz.chain-ops%2Fmgo/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。把它添加到你客户端的 mcpServers 配置中。
{
"mcpServers": {
"mgo": {
"type": "http",
"url": "https://api.mgo.chain-ops.xyz/mcp"
}
}
}An x402-native API that compares real-time gas prices across up to 9 EVM chains and recommends the cheapest one. Built for trading agents, DeFi bots, and any AI agent that needs to optimize transaction costs.
GET /gas/basic or /gas/premium → 402 with requirements in the PAYMENT-REQUIRED header (base64 JSON). A v1-shaped copy is also in the body for legacy clients.eip155:8453)PAYMENT-SIGNATURE header → facilitator (Coinbase CDP) verifies → data response with PAYMENT-RESPONSE receipt → USDC settled on-chainIf the upstream RPC / price feed is unavailable the API answers 503 and no payment is settled.
Remote Streamable HTTP server, no install:
Also published as npm package chain-ops-mgo and in the official MCP Registry (xyz.chain-ops/mgo). Paid tools return the decoded x402 payment requirements; pay with an x402 client against the resource URL.
/stats (Upstash Redis, key via STATS_KEY; send it as x-stats-key header).env.example来源:README.md,提交 f0543bd
Get free real-time gas prices for 4 major EVM chains (Ethereum, Base, Arbitrum, Optimism). Rate limited 10/hr.
无需输入参数。
Get a direct recommendation for the cheapest EVM chain right now with savings %. Free, rate limited.
无需输入参数。
Find the cheapest EVM chain before sending a transaction. Compares live gas across Ethereum, Base, Arbitrum & Optimism and returns the cheapest chain with savings % (e.g. 'Use Base — saves 99.8% vs Ethereum'). Use before bridging, deploying a contract, or any tx where you can choose the chain. $0.001 USDC via x402 on Base, no API key.
无需输入参数。
Find the cheapest EVM chain across 9 networks before transacting. Covers Ethereum, Base, Arbitrum, Optimism, BNB, Polygon, Avalanche, zkSync & Hyperliquid; returns the cheapest chain with savings % for cross-chain routing decisions. Use when you need the widest chain coverage to route a tx to the lowest-fee network. $0.002 USDC via x402 on Base, no API key.
无需输入参数。
已满足适用检查项的 100%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
# 1. Install dependenciesnpm install
# 2. Set environment variablescp .env.example .env# Set WALLET_ADDRESS (USDC receiving wallet on Base) and CDP_API_KEY_ID/SECRET (facilitator auth)
# 3. Run locally (same entry point as production)npm start
# 4. Test# Open in browser: http://localhost:3000/gas/demo// Client example (@x402/fetch, x402 v2)const { wrapFetchWithPayment } = require("@x402/fetch");const { x402Client } = require("@x402/core/client");const { ExactEvmScheme } = require("@x402/evm/exact/client");const { privateKeyToAccount } = require("viem/accounts");
const client = new x402Client().register("eip155:*", new ExactEvmScheme(privateKeyToAccount(process.env.EVM_PRIVATE_KEY)));const paidFetch = wrapFetchWithPayment(fetch, client);const res = await paidFetch("https://api.mgo.chain-ops.xyz/gas/basic");{ "mcpServers": { "mgo-gas": { "url": "https://api.mgo.chain-ops.xyz/mcp" } }}npm i -g vercelvercel --prod