Sponsored by Deepsite.site

Gas Agent

Created By
samarabdelhameed9 months ago
Content

🚀 MCP Gas Price Agent Dashboard 🛰️

An MCP-compatible AI-ready gas price agent built with Node.js, Express, and TailwindCSS.
This dashboard enables users to monitor real-time gas prices on Ethereum, BNB, and Polygon, ask natural language questions, and receive smart recommendations on when to transact.


🧠 What This Project Delivers

From initial goals to full implementation, here's what has been achieved:

  • Multi-network support for Ethereum, BNB, and Polygon
  • Live gas price API for each network
  • Dashboard with interactive charts (Max Fee & Priority Fee over time)
  • Natural Language Processing Agent to interpret human questions like:
    • “Is now a good time?”
    • “What’s the max gas fee?”
    • “Compare between networks”
  • Real-time alerts when gas fee is extremely low
  • Export to CSV of gas history
  • Auto-refreshing UI (adjustable refresh rate)
  • Stylish dark-themed UI using Tailwind CSS
  • MCP-compatible plugin (mcp.json) so it can be connected directly to Claude or GPT

🔧 Features

EndpointDescription
/api/gas-priceReturns live gas prices for selected network
/api/nlp-agentReturns intelligent replies to natural questions
/dashboardDisplays live gas charts, NLP, export tools, etc
/Tailwind-based landing page
mcp.jsonPlugin schema for AI agents

📸 Preview

Dashboard Screenshot
(Shows live chart, network selector, NLP agent input, CSV export)


📦 Tech Stack

  • Node.js + Express
  • TailwindCSS
  • Chart.js
  • Blocknative, BscScan, PolygonScan APIs
  • MCP Plugin (Claude/GPT ready)

🚀 How to Run Locally

  1. Install dependencies
npm install

2. **Build Tailwind CSS**

```bash
npm run build:css
```

3. **Start server**

```bash
npm start
```

4. **Visit the app**
   Open your browser at:
   [http://localhost:3000](http://localhost:3000)

---

## 🤖 Ask Anything!

The AI Agent supports questions like:

- "Is now a good time?"
- "What’s the gas fee?"
- "What's the average gas price?"
- "What’s the highest gas today?"
- "Which network is cheaper?"
- "Is BNB cheaper than Ethereum?"

---

## 🔌 AI Plugin (MCP)

You can connect this project directly to Claude/GPT via the `mcp.json` file.
Example usage:

```json
{
  "schema_version": "v1",
  "name_for_model": "mcp_gas_agent",
  ...
}
```

---

## 📁 Folder Structure

```
📦 MCP-Gas-Agent
├── public/
│   ├── index.html
│   ├── dashboard.html
│   └── styles.css
├── server.js
├── mcp.json
├── tailwind.config.js
├── package.json
└── README.md
```

---

## 📝 License

MIT © 2025 - MCP Gas Price Agent Team

---

Server Config

{
  "mcpServers": {
    "gas-agent": {
      "name": "MCP Gas Price Agent",
      "description": "Multi-chain gas price server for Ethereum, BNB, and Polygon. Provides live gas data and smart recommendations using AI-ready endpoints.",
      "url": "https://mcp-gas-agent-pro-final-pueyk67dg-samarabdelhameeds-projects.vercel.app",
      "endpoints": [
        "/api/gas-price",
        "/api/recommend-time",
        "/api/nlp-agent"
      ],
      "chains": [
        "ethereum",
        "bnb",
        "polygon"
      ],
      "version": "1.0.0",
      "author": "samarabdelhameed",
      "command": "vercel --prod"
    }
  }
}
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
DeepChatYour AI Partner on Desktop
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
CursorThe AI Code Editor
Tavily Mcp
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
ChatWiseThe second fastest AI chatbot™
WindsurfThe new purpose-built IDE to harness magic
Amap Maps高德地图官方 MCP Server
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright McpPlaywright MCP server
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Serper MCP ServerA Serper MCP Server