Base Gas MCP server
io.github.memosr/base-gas-mcp·v0.3.2Live Base gas, tx cost in USD, 4-chain comparison and gas history. Paid per call in USDC via x402.
0 stars63 downloads/wk
Reviews
Write oneNobody has reviewed Base Gas yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Base Gas tools (5)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
compare_gas_costsLive cost of the same transaction on Base, OP Mainnet, Arbitrum One and Ethereum, in USD and ETH, ranked cheapest first. Costs about $0.01. …
get_base_gasLive Base mainnet gas: EIP-1559 base fee, low/medium/high priority fees in gwei, the cost of a transaction in USD, ETH and gwei, and ready-to-sign maxFeePerGas / maxPriorityFeePerGas. Costs about $0.002. …
get_cheapest_windowFrom 7 days of Base gas history: the hours of day to avoid, the cheapest hour (UTC), and the saving versus the average hour in percent and USD. Says so plainly when timing saves nothing. Costs about $0.02. …
get_gas_historyBase gas sampled every 5 minutes over a lookback window (default 24h): min/max/average/median and whether gas is cheap, normal, expensive or flat right now. Costs about $0.01. …
get_service_statusFree, no wallet needed. Reports whether the gas service is up and how much gas history it has collected, so you can decide whether the history tools are worth paying for.
Public scan report
scanner v0.1.10 · 2026-10-28 · same rubric, same numbers if you re-run it
- Code scan3 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitystatic API keys via environment variables6/15
- Maintenancelast push 9 days ago15/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
How Base Gas compares
Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 83/100
- higher than 65% of 48,255 servers
- Tools
- 5
- the typical server has 7
- Tools that change things
- 0%
- typical: 0%. Fewer write tools means less an agent can break
- Downloads a week
- 63
- more than 50% of 12,191 servers with a package
What its tools let an agent do: 5 read
Install Base Gas in Claude Code, Cursor or VS Code
Runs npx -y base-gas-mcp on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add base-gas-mcp -- npx -y base-gas-mcp
What the publisher says
From the Base Gas repository's README, as published. We do not edit it. Read it on GitHub
base-gas-mcp
<!-- mcp-name: io.github.memosr/base-gas-mcp -->
An MCP server for live Base gas data, paid per call in USDC over the x402 payment protocol. No API key and no account: the agent pays a fraction of a cent from a wallet you control.
It answers the questions an RPC call cannot: what a transaction costs in dollars, which chain is cheapest right now, whether gas is high or low, and which hours to avoid.
Tools
Prices are set by the endpoint and published in its OpenAPI document. Every paid result includes the settlement transaction hash.
gasLimit guide: 21000 ETH transfer (default), ~65000 ERC-20 transfer, ~85000 NFT mint, ~180000 Uniswap swap, ~1500000 contract deploy.
Safety
defaulting to the live base-gas-x402 API). No tool takes a URL, so text the model reads cannot redirect your wallet to another paid endpoint.
- The server only ever pays one origin, set by you (BASEGASORIGIN,
refused before anything is signed.
- Per-payment cap. Any payment above MAXUSDPER_CALL (default 0.05) is
environment to sign payments and is never logged or returned.
- Payments are EIP-3009 authorizations: the wallet needs USDC only, no ETH.
- Use a separate wallet holding a few dollars. The key is read from the
The paid data source is a companion project: base-gas-x402.
Installation
Requirements
- Node.js 18 or newer (built-in fetch is required)
- A Base mainnet wallet holding a little USDC (no ETH needed)
git clone https://github.com/memosr/base-gas-mcp.git
cd base-gas-mcp
npm installPass BUYERPRIVATEKEY through your MCP client's config (see below). The server does not read a .env file.
Or run the published package directly with npx base-gas-mcp (see the config blocks below).
Getting a buyer key
BUYERPRIVATEKEY is the private key of a Base mainnet wallet. Create a fresh wallet (for example in MetaMask, Coinbase Wallet, or with cast wallet new), export its private key, and fund it on Base with a few dollars of USDC.
Warning: this is a real private key that controls real funds.
Use a separate, disposable wallet holding only small amounts. Never reuse a key from a wallet with significant funds, never commit it to git, and never paste it into chat. The server reads it only to sign payments and never logs or returns it.
Environment variables
Configuration
Claude Desktop
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Base Gas: common questions
- Is Base Gas MCP server safe?
- Mostly: it is graded B (83/100). Read the Base Gas safety report
- How do I install Base Gas?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Base Gas need an API key?
- Yes. The registry entry asks for
BUYER_PRIVATE_KEY. - Is Base Gas maintained?
- The last commit was 16 days ago (2026-10-19). The latest release is v0.3.2.
- How does Base Gas compare with other MCP servers?
- safety score 83/100 (higher than 65% of 48,255 servers); tools 5 (the typical server has 7); tools that change things 0% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.