Base Gas MCP logo

Base Gas MCP

Get live Base gas costs, cross-chain comparisons, historical trends, and scheduling guidance through paid USDC calls.

Install Base Gas MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "base-gas-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "base-gas-mcp"
      ],
      "env": {
        "BUYER_PRIVATE_KEY": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env BUYER_PRIVATE_KEY=YOUR_VALUE_HERE --transport stdio base-gas-mcp -- npx -y base-gas-mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

Automated check passed— started and listed 5 tools correctly ().

Overview

base-gas-mcp provides MCP tools for querying live Base gas data and transaction costs through a payment-wrapped API. It reports fees and estimated costs in USD, ETH, and gwei, compares equivalent transactions across four networks, and analyzes recent gas history. Paid calls use USDC from a Base wallet through x402, while service status is free. Use it when an agent needs dollar-denominated fee estimates, fee-aware chain selection, or a suitable time to submit transactions.

Use cases

  • Estimate a Base transaction in dollars before submitting it
  • Compare transaction costs across Base, OP Mainnet, Arbitrum One, and Ethereum
  • Check whether current Base gas is cheap or expensive
  • Choose a lower-cost UTC hour for scheduled transactions
  • Verify service availability before making paid calls

Key features

  • Live Base fee and transaction-cost estimates
  • Cross-chain gas comparison
  • Short-term Base gas history and status classification
  • Seven-day cheapest-window analysis
  • Ready-to-sign EIP-1559 fee parameters
  • x402 USDC payment with configurable spending cap

Tools5

What Base Gas MCP lets your agent do. Expand a tool for its parameters.

Verified live~677 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

5/5 checks healthy over the last 20d

What it can do

From the 5 tools this server returned when we ran it; 5 declare their own safety hints.

Makes network requests · 5Read-only tools · 5
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceNot published
Package age145 days
Maintainers1

Observed 2026-11-16 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 2d ago via OSV.dev · base-gas-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads724Package downloads in the last 30 days.
Last commit17d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed5Callable tools this server registers over MCP.

How Base Gas MCP works

What base-gas-mcp does

base-gas-mcp exposes gas analysis for Base through the Model Context Protocol. Its tools turn fee data into transaction estimates in USD, ETH, and gwei, including signing parameters that can be passed to an EVM transaction. The server also compares equivalent transactions across Base, OP Mainnet, Arbitrum One, and Ethereum, then orders the results from least to most expensive.

Historical tools cover both short-term conditions and scheduling decisions. Recent Base gas data includes minimum, maximum, average, and median values, plus a current classification of cheap, normal, expensive, or flat. A seven-day analysis identifies hours to avoid, the cheapest UTC hour, and the estimated percentage and dollar savings from waiting.

How it works

The server runs over stdio and uses a companion x402 service as its paid data source. Each paid result includes the settlement transaction hash. Calls are charged by the endpoint; the listed examples are approximately $0.002 for get_base_gas, $0.01 for cross-chain comparison or recent history, and $0.02 for the cheapest-window analysis. get_service_status is free and reports service availability and collected history.

Payments use EIP-3009 authorizations. The payment wallet needs USDC on Base, but does not need ETH. The server pays only the origin configured by BASE_GAS_ORIGIN, and tools do not accept arbitrary URLs. MAX_USD_PER_CALL can reject a payment before signing if the endpoint price exceeds the configured limit.

Setup and configuration

Node.js 18 or newer is required. Install the dependencies from a clone with npm install, or launch the published package with npx base-gas-mcp. Configure the process in an MCP client and provide BUYER_PRIVATE_KEY through that client's environment settings.

The key must belong to a Base mainnet wallet funded with a small amount of USDC. A separate, disposable wallet is appropriate because the key authorizes real payments. The server reads the key for signing and does not log or return it. It does not load a .env file, so environment values must be supplied by the client or process launcher.

Optional settings include MAX_USD_PER_CALL, BASE_GAS_ORIGIN, and BUILDER_CODE. The origin defaults to the live Base gas API, and the payment cap defaults to $0.05 per call. Claude Desktop can launch the package with npx, while Claude Code can register it with claude mcp add; both configurations pass the buyer key through the client environment.

Tools and capabilities

  • get_base_gas returns Base fee data, low/medium/high priority fees, transaction costs, and ready-to-sign maxFeePerGas and maxPriorityFeePerGas values in wei. An optional gasLimit changes the estimate.
  • compare_gas_costs estimates the same transaction on Base, OP Mainnet, Arbitrum One, and Ethereum. It also accepts gasLimit.
  • get_gas_history summarizes a selectable number of recent hours, defaulting to 24.
  • get_cheapest_window uses seven days of history to recommend a cheaper UTC hour.
  • get_service_status checks availability without requiring a payment wallet.

For rough estimates, the documented gas limits are 21,000 for an ETH transfer, 65,000 for an ERC-20 transfer, 85,000 for an NFT mint, 180,000 for a Uniswap swap, and 1,500,000 for a contract deployment.

Limitations and notes

The estimates depend on the selected gas limit and the live endpoint data. Paid use requires USDC and signs real payment authorizations, so wallet isolation and a per-call spending cap are important operational safeguards. The server is intended for fee analysis and payment of data requests; it does not submit the transaction being estimated.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Base Gas MCP

base-gas-mcp is an MCP server that connects agents to a paid Base gas data API through x402. Its tools estimate transaction costs, compare Base with OP Mainnet, Arbitrum One, and Ethereum, analyze gas history, find cheaper transaction windows, and check service status. Paid calls use USDC from a Base wallet.

Install it with `npm install` from a cloned repository or run `npx base-gas-mcp` directly. Configure the MCP client to launch the package and pass `BUYER_PRIVATE_KEY` through its environment. Node.js 18 or newer is required.

It needs a Base mainnet wallet containing USDC and the wallet's private key in `BUYER_PRIVATE_KEY`. ETH is not required for these EIP-3009 payments. Use a separate wallet with a small balance because the key authorizes real spending.

Call prices are set by the payment endpoint. The documented approximate prices are $0.002 for Base gas estimates, $0.01 for cross-chain comparisons and gas history, and $0.02 for the cheapest-window tool. Service status is free, and `MAX_USD_PER_CALL` can cap individual payments.

Yes. Claude Desktop can launch it with `npx -y base-gas-mcp` or a local Node.js path. Add the server to `claude_desktop_config.json`, provide `BUYER_PRIVATE_KEY` in the `env` object, and restart Claude Desktop.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewBase Gas MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/base-gas-mcp?style=directory)](https://allmcps.com/mcp/base-gas-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/base-gas-mcp"><img src="https://allmcps.com/api/badge/base-gas-mcp?style=directory" alt="Base Gas MCP on AllMCPs" /></a>