trackmcp
Back to directory
jimmytwei

gasbuddy-mcp-price-tracker

View on GitHub

MCP server to get the cheapest gas prices in a particular city or zip code from gasbuddy.com

1 stars PythonOthers Updated Apr 22, 2026
claudegas-pricesmcpmcp-serverplaywrightpythonfastmcp

Documentation

GasBuddy MCP Price Tracker

SafeSkill 93/100

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

1. Clone the repository and navigate to the project directory.

2. Create and activate a virtual environment.

# macOS/Linux

bash
python3 -m venv venv
   source venv/bin/activate

# Windows

cmd
python -m venv venv
   .\venv\Scripts\activate

3. Install dependencies:

`pip install -r requirements.txt`

4. Install browser binaries:

`playwright install chromium`

5. 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.

json
{
  "mcpServers": {
    "gas-buddy": {
      "command": "/{absolute_path_to}/venv/bin/python",
      "args": ["/{absolute_path_to}/gas_server.py"]
    }
  }
}

Example in Claude

Example from Claude

License

This application is distributed under the MIT License.

Frequently asked questions

What is gasbuddy-mcp-price-tracker?

gasbuddy-mcp-price-tracker is MCP server to get the cheapest gas prices in a particular city or zip code from gasbuddy.com

How do I install gasbuddy-mcp-price-tracker?

Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.

Is gasbuddy-mcp-price-tracker open source?

Yes — it is hosted on GitHub at https://github.com/jimmytwei/gasbuddy-mcp-price-tracker and has 1 stars.

Related MCP tools

Run your own MCP server? See who uses it and what to fix.

Measure it with TrackMCP