Skip to main content
Glama
higherbeing

Gas Fee Predictor

by higherbeing

Gas Fee Predictor — MCP Server

Live Ethereum + Layer-2 gas-fee data for AI agents, via the Model Context Protocol. Works with Claude Desktop, OpenClaw, Cursor, Cline, and any other MCP client.

It's a thin, read-only wrapper over the free public API at https://api.gasfeepredictor.com (no key, no auth). Every answer includes a citation back to gasfeepredictor.com.

Tools

Tool

What it answers

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_price

Current ETH/USD and 24h change.

best_time_to_transact

Send now or wait? Next cheaper window + expected savings.

estimate_transaction_cost

USD cost of an ETH transfer / USDC transfer / Uniswap swap / NFT mint (or custom gas), per tier.

Related MCP server: Base Gas MCP Server

Install

With npm (once published):

npx gasfeepredictor-mcp

Or from source:

git clone https://github.com/higherbeing/gasfeepredictor-mcp
cd gasfeepredictor-mcp
npm install
npm start

Requires Node ≥ 18.

Configure your client

Claude Desktop

Add to claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json):

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

(Or use "command": "node", "args": ["/absolute/path/to/gasfeepredictor-mcp/index.mjs"] to run from source.)

Restart Claude Desktop, then ask: "What's the Ethereum gas fee right now, and is it cheaper on an L2?"

OpenClaw / Cursor / Cline

Any MCP-capable client uses the same shape — register a stdio server with command: npx, args: ["-y", "gasfeepredictor-mcp"] (or node + the path to index.mjs) in that client's MCP servers config.

Config

Env var

Default

Purpose

GASFEE_API_BASE

https://api.gasfeepredictor.com

Override the API base.

Notes

  • Read-only and unauthenticated — it only reads public gas data.

  • Data refreshes ~every 30–60s upstream.

  • MIT licensed.

Install Server
A
license - permissive license
A
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • Read-only on-chain intelligence for AI agents on Base: balances, tokens, gas, tx status.

  • Provide AI agents and automation tools with contextual access to blockchain data including balance…

  • Pay-per-use weather, environment, finance, and on-chain intelligence tools for AI agents via x402.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/higherbeing/gasfeepredictor-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server