get_gas_demo
Get free real-time gas prices for 4 major EVM chains (Ethereum, Base, Arbitrum, Optimism). Rate limited 10/hr.
Takes no parameters.

xyz.chain-opsPublished by chain-ops.xyzOfficial publisherv2.2.0Updated Oct 24, 2026
Compare live gas across up to 9 EVM chains and get the cheapest one. x402 pay-per-call on Base.
Remote MCP server that compares live gas prices across up to 9 EVM chains and recommends the cheapest chain before a transaction.
Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.
Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.
Read https://sourceweft.com/mcp/xyz.chain-ops%2Fmgo/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.Add this to your client's mcpServers config.
{
"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.exampleSource: README.md at commit f0543bd
Get free real-time gas prices for 4 major EVM chains (Ethereum, Base, Arbitrum, Optimism). Rate limited 10/hr.
Takes no parameters.
Get a direct recommendation for the cheapest EVM chain right now with savings %. Free, rate limited.
Takes no parameters.
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.
Takes no parameters.
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.
Takes no parameters.
100% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
# 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