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.
TradingView Chart Image Scraper
Fetches TradingView chart images for a given ticker and interval.
Sports MCP Server
Live sports scores and stats from NBA, NFL, and NHL
Automatic MCP Discovery
AI powered automation toolkit which acts as an agent that discovers MCP servers for you. Point it at GitHub/npm/configure your own discovery, let GPT or Claude analyze the API or MCP or any tool, get ready-to-ship plugin configs. Zero manual work.
CrawlForge MCP
CrawlForge MCP is a production-ready MCP server with 18 web scraping tools for AI agents. It gives Claude, Cursor, and any MCP-compatible client the ability to fetch URLs, extract structured data with CSS/XPath selectors, run deep multi-step research, bypass anti-bot detection with TLS fingerprint randomization, process documents, monitor page changes, and more. Credit-based pricing with a free tier (1,000 credits/month, no credit card required).
Playwright Server
A server providing Playwright tools for browser automation and web scraping.
Dumpling AI MCP Server
Data scraping, conversion, and extraction tools from Dumpling AI.
Puppeteer
Provides browser automation using Puppeteer, enabling interaction with web pages, taking screenshots, and executing JavaScript.
Reddit MCP
A server to browse, search, and read content on Reddit using the Reddit API.
Playwright MCP
Automate web interactions and perform web scraping tasks using the Playwright framework.
Docs Fetch MCP Server
Fetch web page content with recursive exploration.