# MGO — Multi-chain Gas Optimizer

> MGO — Multi-chain Gas Optimizer is a freemium MCP server for finance and payments. Compare live gas prices across nine EVM chains and find the cheapest one. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Platforms:** CLI, API
- **Website:** https://mgo.chain-ops.xyz
- **Repository:** https://github.com/dlrjsdl200-byte/chain-ops-mgo
- **MCP Registry name:** io.github.dlrjsdl200-byte/mgo-mcp-server
- **Categories:** finance and payments, developer tools
- **Listing updated:** 2026-11-15

## About

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.

## Features

- **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

## Install

### Claude Code (Terminal)

```sh
claude mcp add mgo-mcp-server --env MGO_PRIVATE_KEY='<MGO_PRIVATE_KEY>' -- npx -y chain-ops-mgo
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mgo-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "chain-ops-mgo"
      ],
      "env": {
        "MGO_PRIVATE_KEY": "<MGO_PRIVATE_KEY>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "mgo-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "chain-ops-mgo"
      ],
      "env": {
        "MGO_PRIVATE_KEY": "<MGO_PRIVATE_KEY>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "mgo-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "chain-ops-mgo"
      ],
      "env": {
        "MGO_PRIVATE_KEY": "<MGO_PRIVATE_KEY>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "mgo-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "chain-ops-mgo"
      ],
      "env": {
        "MGO_PRIVATE_KEY": "<MGO_PRIVATE_KEY>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "mgo-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "chain-ops-mgo"
      ],
      "env": {
        "MGO_PRIVATE_KEY": "<MGO_PRIVATE_KEY>"
      }
    }
  }
}
```

## Tools

- `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.

## 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

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/mgo-multi-chain-gas-optimizer
