MGO — Multi-chain Gas Optimizer
Compare live gas prices across nine EVM chains and find the cheapest one
- Pricing
- Freemium
- Platforms
- CLI, API
- Runs
- Locally
- Version
- 1.2.0
- Listing updated
- 2 days ago
About MGO — Multi-chain Gas Optimizer
MGO — Multi-chain Gas Optimizer is a freemium MCP server for finance and payments. It runs locally on your machine and is started by your AI client.
Most calls end in a single recommendation such as "Use Optimism, saves 97.4% vs Ethereum", returned with the gas price in gwei and an estimated cost for a DEX swap in USDC. Agents are meant to call it before a bridge, deploy or swap to pick the cheapest network.
Four tools are exposed. get_gas_demo and get_cheapest_chain are free, with the demo rate limited to 10 calls an hour and covering four chains. get_gas_basic costs $0.001 per call and get_gas_premium $0.002, the latter spanning nine networks: Ethereum, Base, Arbitrum, Optimism, BNB, Polygon, Avalanche, zkSync and Hyperliquid.
Paid calls settle in USDC on Base through the x402 protocol, with no API key. Without MGO_PRIVATE_KEY set, paid tools return the payment requirements instead of data; with a key and the agent SDK installed they pay automatically, capped by MGO_MAX_PRICE (default $0.01). A hosted copy runs at api.mgo.chain-ops.xyz/mcp.
Install
Run in a terminal
claude mcp add mgo-mcp-server --env MGO_PRIVATE_KEY='<MGO_PRIVATE_KEY>' -- npx -y chain-ops-mgoAdd to claude_desktop_config.json
{
"mcpServers": {
"mgo-mcp-server": {
"command": "npx",
"args": [
"-y",
"chain-ops-mgo"
],
"env": {
"MGO_PRIVATE_KEY": "<MGO_PRIVATE_KEY>"
}
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"mgo-mcp-server": {
"command": "npx",
"args": [
"-y",
"chain-ops-mgo"
],
"env": {
"MGO_PRIVATE_KEY": "<MGO_PRIVATE_KEY>"
}
}
}
}Add to .vscode/mcp.json
{
"servers": {
"mgo-mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"chain-ops-mgo"
],
"env": {
"MGO_PRIVATE_KEY": "<MGO_PRIVATE_KEY>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mgo-mcp-server": {
"command": "npx",
"args": [
"-y",
"chain-ops-mgo"
],
"env": {
"MGO_PRIVATE_KEY": "<MGO_PRIVATE_KEY>"
}
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"mgo-mcp-server": {
"command": "npx",
"args": [
"-y",
"chain-ops-mgo"
],
"env": {
"MGO_PRIVATE_KEY": "<MGO_PRIVATE_KEY>"
}
}
}
}Configuration
MGO_PRIVATE_KEYOptional. EVM private key (0x...) holding USDC on Base; enables auto-pay for the paid tools.MGO_MAX_PRICEOptional. Hard cap per call in micro-USDC (default 10000 = $0.01).
Tools this server provides (4)
Taken from the project documentation; the running server may differ.
- get_gas_demo
- Free raw gas prices for four chains, rate limited to 10 per hour.
- get_cheapest_chain
- Free recommendation of the cheapest chain for a DEX swap with savings percentage.
- get_gas_basic
- Paid ($0.001) gas comparison for four chains with a recommendation.
- get_gas_premium
- Paid ($0.002) gas comparison across nine chains.
What it does
- Cheapest-chain pick
- Returns the lowest-fee chain with the savings percentage against Ethereum.
- Nine EVM networks
- Premium data covers Ethereum, Base, Arbitrum, Optimism, BNB, Polygon, Avalanche, zkSync and Hyperliquid.
- Free tier
- get_gas_demo and get_cheapest_chain need no payment.
- x402 micropayments
- Paid tools cost $0.001 or $0.002 in USDC on Base, with no API key.
- Spend cap
- MGO_MAX_PRICE limits each call, defaulting to 10000 micro-USDC.
- Hosted option
- The same tools are served remotely, so nothing needs to run locally.
Good for
- Route a bridge or swap to the cheapest network
- Check gas before an agent deploys a contract
- Compare fees across nine chains in USDC terms
- Let an autonomous agent pay per call for gas data
Pricing
Freemium
Free demo tools; paid calls $0.001 (basic) and $0.002 (premium) in USDC via x402.
Prices change. Check mgo.chain-ops.xyz before you buy.
MGO — Multi-chain Gas Optimizer FAQ
Which tools are free?
get_gas_demo and get_cheapest_chain.
What do the paid tools cost?
get_gas_basic is $0.001 per call and get_gas_premium is $0.002.
Do I need an API key?
No. Paid calls use x402 payments in USDC on Base.
What happens without a private key?
Paid tools return the x402 payment requirements instead of data.
Can I cap spending?
Yes, set MGO_MAX_PRICE in micro-USDC; the default is 10000, or $0.01.
Is MGO — Multi-chain Gas Optimizer free?
MGO — Multi-chain Gas Optimizer has a free plan, with paid plans for more usage or features.
How do I add MGO — Multi-chain Gas Optimizer to Claude Code?
Run this command in your terminal: claude mcp add mgo-mcp-server --env MGO_PRIVATE_KEY='<MGO_PRIVATE_KEY>' -- npx -y chain-ops-mgo
What are the best alternatives to MGO — Multi-chain Gas Optimizer?
The closest alternatives to MGO — Multi-chain Gas Optimizer are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.
Alternatives to MGO — Multi-chain Gas Optimizer

REA
MCP serverCLI and MCP server that lets coding agents reverse engineer apps and binaries
Runs locally- Open source
- 464K GitHub stars
- Developer tools

Codebase Memory
MCP serverLocal MCP server that builds a code knowledge graph for AI coding agents
Runs locally- Open source
- 48.7K GitHub stars
- Knowledge and memory

GitHub
MCP serverOfficial MCP server connecting AI assistants to GitHub repos, issues and workflows
Not checked yet- Remote
- Open source
- 34.5K GitHub stars
- Developer tools

Serena MCP: the IDE for your agent
MCP serverMCP toolkit giving coding agents symbol-level code retrieval and editing
Runs locally- Open source
- 31.5K GitHub stars
- Developer tools

XERJ
MCP serverLocal search engine for AI agents with cited answers over your code and docs
Runs locally- Open source
- 19.2K GitHub stars
- Knowledge and memory

Ouroboros
MCP serverSpec-first layer that pins requirements and verifies results of AI coding agent work
Runs locally- Open source
- 6.4K GitHub stars
- Developer tools