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.
Related Servers
Bright Data
sponsorDiscover, extract, and interact with the web - one interface powering automated access across the public internet.
yt-dlp
Download video and audio from YouTube and other platforms using the yt-dlp tool.
mcp-techtrend
Multi-source MCP server: arXiv + PubMed + GitHub + HuggingFace + openFDA 510(k)/Recalls. Newspaper-style briefings, per-domain tuning, sandbox-safe Python launcher.
YouTube Transcript
An MCP server for extracting and processing transcripts from YouTube videos.
Open Crawler MCP Server
A web crawler and content extractor that supports multiple output formats like text, markdown, and JSON.
LinkRescue
MCP server that exposes LinkRescue's broken link scanning, monitoring, and fix suggestion capabilities to AI agents (Claude, Cursor, etc.).
Intercept
Give your AI the ability to read the web. Fetches URLs as clean markdown with 9 fallback strategies. Handles tweets, YouTube, arXiv, PDFs, and regular pages.
MyBrowserAPI
A browser API for interacting with web services like X, Reddit, ChatGPT, and WhatsApp using Puppeteer.
Selenix MCP
MCP server that bridges Claude Desktop (or any other local app supporting MCP) with Selenix for browser automation and testing. Enables creating, running, debugging, and managing browser automation tests through natural language.
Simple MCP Tool Server
A simple MCP server that provides a tool for fetching website content using SSE transport.
JCrawl4AI
A Java-based MCP server for interacting with the Crawl4ai web scraping API.