Back to Browse

Gasfeepredictor MCP Server

Developer ToolsModerate6.0MCP RegistryLocal
Free

Server data from the Official MCP Registry

Live Ethereum and L2 gas fees for AI agents: current gas, cheapest L2, ETH price, cost estimates.

About

Live Ethereum and L2 gas fees for AI agents: current gas, cheapest L2, ETH price, cost estimates.

Security Report

6.0
Moderate6.0Moderate Risk

This is a well-written, read-only MCP server that wraps a public, unauthenticated gas fee prediction API. The code is clean, properly handles errors, and has no malicious patterns or credential storage issues. Minor quality suggestions around input validation and timeout configuration exist but do not represent security risks. Supply chain analysis found 2 known vulnerabilities in dependencies (0 critical, 2 high severity). Package verification found 1 issue.

3 files analyzed · 6 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

HTTP Network Access

Connects to external APIs or services over the internet.

env_vars

Check that this permission is expected for this type of plugin.

What You'll Need

Set these up before or after installing:

https://api.gasfeepredictor.comOptional

Environment variable: GASFEE_API_BASE

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "io-github-higherbeing-gasfeepredictor-mcp": {
      "env": {
        "GASFEE_API_BASE": "your-gasfee-api-base-here"
      },
      "args": [
        "-y",
        "gasfeepredictor-mcp"
      ],
      "command": "npx"
    }
  }
}

Documentation

View on GitHub

From the project's GitHub README.

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

ToolWhat 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_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.

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 varDefaultPurpose
GASFEE_API_BASEhttps://api.gasfeepredictor.comOverride the API base.

Notes

  • Read-only and unauthenticated — it only reads public gas data.
  • Data refreshes ~every 30–60s upstream.
  • MIT licensed.

Reviews

No reviews yet

Be the first to review this server!

Gasfeepredictor MCP Server - Live Ethereum and L2 gas fees for AI agents: current gas, | MCP Marketplace