GasBuddy MCP Price Tracker
MCP server to get the cheapest gas prices in a particular city or zip code from gasbuddy.com
GasBuddy MCP Price Tracker
The GasBuddy MCP Price Tracker is a Model Context Protocol (MCP) server that scrapes real-time gas prices on gasbuddy.com using Playwright. It finds the cheapest fuel in any US city or zip code.
[!NOTE] This project is for educational purposes only. GasBuddy reserves the right to modify their website structure at any time, which may break this script. The author provides no guarantee of functionality and is not liable for issues arising from its use. Community contributions and fixes are highly encouraged.
Requirements
- Python 3.10+
- Playwright
- Playwright-Stealth
- FastMCP
Installation & Setup
-
Clone the repository and navigate to the project directory.
-
Create and activate a virtual environment.
macOS/Linux
python3 -m venv venv source venv/bin/activateWindows
python -m venv venv .\venv\Scripts\activate -
Install dependencies:
pip install -r requirements.txt -
Install browser binaries:
playwright install chromium -
Test the standalone tool (CLI):
python gas_tool.py
Setup in Claude Desktop
To allow Claude Desktop to interact with the MCP server to get the cheapest gas prices, you will need to update your claude_desktop_config.json file and replace {absolute_path_to} with the absolute path to the cloned repository folder.
{
"mcpServers": {
"gas-buddy": {
"command": "/{absolute_path_to}/venv/bin/python",
"args": ["/{absolute_path_to}/gas_server.py"]
}
}
}
Example in Claude
![]()
License
This application is distributed under the MIT License.
相关服务器
Bright Data
赞助Discover, extract, and interact with the web - one interface powering automated access across the public internet.
Redbook Search & Comment Tool
An automated tool to search notes, analyze content, and post AI-generated comments on Xiaohongshu (Redbook) using Playwright.
Scrapfly
Scrapfly MCP Server gives AI agents a simple, unified way to scrape live web data with built-in anti-bot handling.
Horse Racing News
Fetches horse racing news from the thoroughbreddailynews.com RSS feed.
GeekNews MCP Server
Fetches and caches daily articles from GeekNews using web scraping.
Fetch MCP Server
Fetches web content from a URL and converts it from HTML to markdown for easier consumption by LLMs.
Playwright MCP Server
An MCP server using Playwright for browser automation and webscrapping
SideButton
Open-source MCP server with knowledge packs, 40+ browser tools, and YAML workflow engine for AI agents.
Intelligent Crawl4AI Agent
An AI-powered web scraping system for high-volume automation and advanced data extraction strategies.
AgentQL
Enable AI agents to get structured data from unstructured web with AgentQL.
Plasmate MCP
Agent-native headless browser that converts web pages to structured Semantic Object Model (SOM) JSON -- 4x fewer tokens than raw HTML with lower latency on Claude and GPT-4o.