# Gas Fee Predictor

> Gas Fee Predictor is an open-source MCP server for finance and payments. Live Ethereum and L2 gas prices, forecasts and transaction cost estimates for agents. It can run locally on your machine or as a hosted remote server.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** API, CLI
- **Website:** https://gasfeepredictor.com/docs/api
- **Repository:** https://github.com/higherbeing/gasfeepredictor-mcp
- **MCP Registry name:** io.github.higherbeing/gasfeepredictor-mcp
- **Categories:** finance and payments
- **Listing updated:** 2026-11-15

## About

Gas Fee Predictor serves read-only gas data with no API key and no account, and every answer carries a citation string back to the source site. The hosted endpoint at api.gasfeepredictor.com/api/mcp exposes seven tools over streamable HTTP, while the npm package runs over stdio with five of them.

Beyond mainnet gas in Gwei, it compares Arbitrum, Base, Optimism and Polygon fees, adds the ETH price, and prices an ETH transfer, USDC transfer, Uniswap swap or NFT mint in USD. Forecast and history tools are hosted only. Upstream data refreshes roughly every 30 to 60 seconds.

The forecast is pattern-based and the API docs say confidence stays null until measured accuracy supports it. The project is MIT licensed.

## Features

- **Live mainnet gas:** Low, average and high Gwei with the ETH price and a send-now-or-wait hint.
- **L2 fee comparison:** Compare Arbitrum, Base, Optimism and Polygon wallet fees.
- **Transaction cost estimates:** Estimate USD cost for transfers, swaps and NFT mints, or custom gas.
- **Best time to transact:** Find the next cheaper window and expected savings.
- **Forecast and history:** Hosted-only hourly forecast up to 24 hours and recent history with min, max and average.
- **Cited responses:** Responses include an attribution string for agents to reuse.

## Good for

- Ask whether Ethereum gas is cheap right now
- Find the cheapest L2 for a swap
- Estimate the USD cost of an NFT mint
- Decide whether to wait for a cheaper window
- Replace a retired gas API in an agent workflow

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http gasfeepredictor-mcp https://api.gasfeepredictor.com/api/mcp
```

### Claude Desktop (Settings → Connectors → Add custom connector)

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

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "gasfeepredictor-mcp": {
      "url": "https://api.gasfeepredictor.com/api/mcp"
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "gasfeepredictor-mcp": {
      "type": "http",
      "url": "https://api.gasfeepredictor.com/api/mcp"
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "gasfeepredictor-mcp": {
      "serverUrl": "https://api.gasfeepredictor.com/api/mcp"
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "gasfeepredictor-mcp": {
      "type": "http",
      "url": "https://api.gasfeepredictor.com/api/mcp"
    }
  }
}
```

## Tools

- `get_current_gas`: Current Ethereum gas in Gwei, ETH price and send-now-vs-wait
- `get_l2_gas`: Live Arbitrum, Base, Optimism and Polygon fees
- `get_eth_price`: Current ETH/USD and 24h change
- `best_time_to_transact`: Next cheaper window and expected savings
- `estimate_transaction_cost`: USD cost of a transfer, swap or mint
- `get_gas_forecast`: Hourly gas forecast up to 24h ahead
- `get_gas_history`: Recent historical mainnet gas with min, max and average

## FAQ

### Do I need an API key?

No. It is unauthenticated and needs no account.

### Which tools are hosted only?

get_gas_forecast and get_gas_history are in the hosted endpoint but not the npm package.

### How do I run it locally?

Use `npx -y gasfeepredictor-mcp` with Node 18 or newer.

### How fresh is the data?

The README says upstream data refreshes about every 30 to 60 seconds.

### What licence is it under?

MIT.

### Is Gas Fee Predictor free?

Yes. Gas Fee Predictor is open source, so you can use and self-host it for free.

### How do I add Gas Fee Predictor to Claude Code?

Run this command in your terminal: claude mcp add --transport http gasfeepredictor-mcp https://api.gasfeepredictor.com/api/mcp

### What are the best alternatives to Gas Fee Predictor?

The closest alternatives to Gas Fee Predictor are Solana MCP by Vybe, Tapetide - Indian Stock Market MCP, Budget Tracker, Quantivex Research and Provyan.

## Alternatives

- [Solana MCP by Vybe](https://ai-powered.com/mcp/solana-mcp-by-vybe): Solana MCP by Vybe is an MCP server for finance and payments.
- [Tapetide - Indian Stock Market MCP](https://ai-powered.com/mcp/tapetide-indian-stock-market-mcp): Tapetide - Indian Stock Market MCP is a freemium MCP server for finance and payments.
- [Budget Tracker](https://ai-powered.com/mcp/budget-tracker-2): Budget Tracker is a freemium MCP server for finance and payments.
- [Quantivex Research](https://ai-powered.com/mcp/quantivex-research): Quantivex Research is a free MCP server for finance and payments.
- [Provyan](https://ai-powered.com/mcp/provyan): Provyan is a free MCP server for finance and payments.
- [TribuJus](https://ai-powered.com/mcp/tribujus): TribuJus is an open-source MCP server for legal and government.
- [L2WS](https://ai-powered.com/mcp/l2ws): L2WS is a paid MCP server for finance and payments.
- [Invoices](https://ai-powered.com/mcp/invoices): Invoices is a paid MCP server for files and documents.

---
Source: https://ai-powered.com/mcp/gas-fee-predictor
