Gas Fee Predictor

io.github.higherbeingPublished by GitHub account higherbeingv1.0.2Updated Oct 24, 2026

Live Ethereum and L2 gas fees: current gas, cheapest L2, forecast, ETH price, cost estimates.

VerifiedStreamable HTTPWeb executableFinanceData & Analytics

Overview

AI-generated overview

Read-only MCP server giving an assistant live Ethereum and Layer-2 gas fees, ETH price, cost estimates and gas forecasts.

What you can do
  • Check current Ethereum mainnet gas prices with ETH/USD price and a send-now-or-wait hint
  • Compare live Layer-2 fees across Arbitrum, Base, Optimism and Polygon and find the cheapest
  • Estimate the USD gas cost of ETH, ERC-20/USDC transfers, Uniswap swaps, NFT mints or custom gas units
  • Get an hourly gas forecast up to 24 hours ahead and the next cheaper window
  • Review recent gas history with min, max and average over a chosen window
When to use it
Useful when someone asks what gas costs right now, whether to send a transaction now or wait, which L2 is cheapest, or what a specific on-chain action would cost in USD.
Requirements
Either the hosted streamable HTTP endpoint (no install, no account) or the npm package gasfeepredictor-mcp over stdio, which needs Node 18 or newer. No API key or authentication. An optional GASFEE_API_BASE variable can override the API base.
Before you install
Read-only and unauthenticated, with no credentials requested. Figures are estimates from a third-party API that refreshes roughly every 30 to 60 seconds, so they should not be treated as guaranteed execution prices. The npm package exposes fewer tools than the hosted endpoint.

Installation

In SourceWeft

  1. Open Gas Fee Predictor in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.

Use with an agent

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/io.github.higherbeing%2Fgasfeepredictor-mcp/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.

Read the install guide the agent follows

Other MCP clients

Add this to your client's mcpServers config.

{
  "mcpServers": {
    "gas-fee-predictor": {
      "type": "http",
      "url": "https://api.gasfeepredictor.com/api/mcp"
    }
  }
}

README

Gas Fee Predictor — MCP Server

Live Ethereum + Layer-2 gas-fee data for AI agents, via the Model Context Protocol. Read-only, no API key, no account. Every answer carries a citation back to gasfeepredictor.com.

There are two ways to connect. Prefer the hosted one — there is nothing to install.


1. Hosted endpoint (recommended)

If your client supports remote MCP servers — ChatGPT and Claude connectors, Cursor, VS Code, and most current clients do — paste this URL and you are done:

https://api.gasfeepredictor.com/api/mcp

Streamable HTTP, unauthenticated, no install, no config file, nothing to keep updated. It exposes 7 tools — two more than the npm package (get_gas_forecast and get_gas_history).

Client config, if your client wants JSON rather than a URL box
json
{  "mcpServers": {    "gasfeepredictor": {      "type": "streamable-http",      "url": "https://api.gasfeepredictor.com/api/mcp"    }  }}

Verify it yourself:

bash
curl -s -X POST https://api.gasfeepredictor.com/api/mcp \  -H 'Content-Type: application/json' \  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

2. npm package (stdio)

For clients that speak stdio only. Requires Node ≥ 18.

json
{  "mcpServers": {    "gasfeepredictor": {      "command": "npx",      "args": ["-y", "gasfeepredictor-mcp"]    }  }}

Claude Desktop keeps that file at ~/Library/Application Support/Claude/claude_desktop_config.json on macOS. Restart the client, then ask: "What's the Ethereum gas fee right now, and is it cheaper on an L2?"

Env varDefaultPurpose
GASFEE_API_BASEhttps://api.gasfeepredictor.comOverride the API base (e.g. for self-hosting).

Tools

ToolWhat it answersHostednpm
get_current_gas"What's the Ethereum gas fee right now?" — low/avg/high Gwei, ETH price, send-now-vs-wait.✅✅
get_l2_gas"Cheapest L2 right now?" — live Arbitrum / Base / Optimism / Polygon fees.✅✅
get_eth_priceCurrent ETH/USD and 24h change.✅✅
best_time_to_transactSend now or wait? Next cheaper window + expected savings.✅✅
estimate_transaction_costUSD cost of an ETH transfer / USDC transfer / Uniswap swap / NFT mint (or custom gas), per tier.✅✅
get_gas_forecastForward-looking hourly gas forecast, up to 24h ahead.✅—
get_gas_historyRecent historical mainnet gas over a chosen window, with min/max/avg.✅—

Notes

  • Read-only and unauthenticated — it only reads public gas data.
  • Upstream data refreshes every ~30–60s.
  • Served from api.gasfeepredictor.com, not the apex, so automated clients are not challenged by the CDN's bot protection.
  • MIT licensed.

Changelog

1.1.0 — get_current_gas and estimate_transaction_cost now fall back to /api/eth-price when the dashboard payload returns ethPrice: null (upstream price cooldown). Previously they rendered ETH ≈ $undefined or failed outright while the price endpoint was serving fine.

Source: README.md at commit f9c8ae4

Tools

7

get_current_gas

Get the current Ethereum mainnet gas price (low / average / high, in Gwei) plus the live ETH/USD price and a send-now-vs-wait recommendation. Use this to answer "what is the gas fee right now".

Takes no parameters.

get_l2_gas

Compare live Layer-2 gas fees across Arbitrum, Base, Optimism, and Polygon (Gwei and the estimated wallet fee in USD for a standard transfer), and identify the cheapest right now. Use for "cheapest L2" / "L2 gas fees" questions.

Takes no parameters.

get_eth_price

Get the current ETH/USD spot price and its 24-hour change.

Takes no parameters.

best_time_to_transact

Find out whether to send a transaction now or wait — returns the current recommendation, expected savings, and when the next cheaper gas window is predicted.

Takes no parameters.

estimate_transaction_cost

Estimate the current USD gas cost of a specific Ethereum mainnet action (ETH transfer, ERC-20/USDC transfer, Uniswap swap, or NFT mint), or a custom gas-units amount, at the chosen priority tier.

Parameterstieractionrequiredgas_units

get_gas_forecast

Get the forward-looking hourly Ethereum gas forecast (up to 24 hours ahead) with the predicted cheapest window. Use for "when will gas be cheaper", "should I wait until tomorrow", or planning a transaction.

Parametershours

get_gas_history

Get recent historical Ethereum mainnet gas prices over a chosen window, with min/max/average. Use to answer "what has gas been doing", "was gas cheaper yesterday", or to compare the current price against a recent baseline.

Parametersrange

Version history

2
  1. v1.0.2LatestOct 12, 2026
  2. v1.0.1Sep 16, 2026

Score

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.

  • Reached in the last 30 daysRequired25 pts
  • Auth declaredRequired10 pts
  • Tools listedRequired15 pts
  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts