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.
Verwandte Server
Bright Data
SponsorDiscover, extract, and interact with the web - one interface powering automated access across the public internet.
Web Search
Performs web searches and extracts full page content from search results.
Icypeas
Icypeas MCP allows agents to source leads in a gigantic +575M lead database, and enrich these leads with emails
Web Browser MCP Server
Provides advanced web browsing capabilities for AI applications.
Oxylabs
Scrape websites with Oxylabs Web API, supporting dynamic rendering and parsing for structured data extraction.
deadlink-checker-mcp
Dead link checker MCP server - find broken links, redirects, and timeouts on any website.
Crawl4AI RAG
Integrate web crawling and Retrieval-Augmented Generation (RAG) into AI agents and coding assistants.
MCP360
MCP360 is a unified gateway and marketplace that provides 100+ external tools and custom MCPs through a single integration for AI agents.
Puppeteer Real Browser
Enables powerful, detection-resistant browser automation for AI assistants using puppeteer-real-browser.
Playwright MCP
Browser automation using Playwright, enabling LLMs to interact with web pages through structured accessibility snapshots.
Sports MCP Server
Live sports scores and stats from NBA, NFL, and NHL