fuel-prices-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@fuel-prices-mcp cheapest unleaded near LL57 4DF"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
fuel-prices-mcp

UK fuel prices MCP server — ask Claude "where's the cheapest unleaded near LL57?" and get real answers from the official Fuel Finder open data: every UK forecourt, prices updated within 30 minutes of a change, as required by the Motor Fuel Price (Open Data) Regulations 2025.
First of its kind: the first MCP server for the UK's statutory fuel price scheme (as of July 2026 — the scheme itself only went live in February 2026). Free forever: government open data plus keyless postcode geocoding.
Tools
Tool | What it does |
| Cheapest stations for a fuel near a postcode, ranked by price, each compared to the local median, with the tank-of-fuel savings spread |
| Forecourts near a location, nearest first, with all fuel prices, brand and amenities |
| Min/median/max per fuel for an area — "is 142.9 actually a good price here?" |
| Diagnostics: credentials configured, stations loaded, cache age |
Fuels: unleaded (E10), super unleaded (E5), diesel (B7), premium diesel, B10 and HVO. Prices are pence per litre. All tools read-only.
Related MCP server: openbusdata
Setup
1. Register for Fuel Finder access (free)
The API needs a GOV.UK One Login (free): start here. You'll get an OAuth client ID and secret.
2. Install
uv tool install fuel-prices-mcp3. Configure your MCP client
Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"fuelprices": {
"command": "uvx",
"args": ["fuel-prices-mcp"],
"env": {
"FUEL_FINDER_CLIENT_ID": "your-client-id",
"FUEL_FINDER_CLIENT_SECRET": "your-client-secret"
}
}
}
}Claude Code:
claude mcp add fuelprices -e FUEL_FINDER_CLIENT_ID=... -e FUEL_FINDER_CLIENT_SECRET=... -- uvx fuel-prices-mcpPrefer not to keep credentials in a config file? Set them as user environment variables instead (Windows: setx FUEL_FINDER_CLIENT_ID "..." in your own terminal; macOS/Linux: export them in your shell profile) and omit the env block entirely. The server reads them from the environment it inherits. Either way they never leave your machine, and if a secret is ever exposed you can regenerate it in the Fuel Finder portal.
Example
You: Cheapest diesel within 10 miles of CF10 1EP?
Claude (via
fuel_find_cheapest): The cheapest is 146.9p/litre at a supermarket forecourt 2.1 miles away — 5.0p under the local median. The spread in your area is 16.0p/litre, which is about £8.80 on a 55-litre tank, so it's worth the detour past the two nearest stations.
How it works
The server fetches the full UK dataset (stations + prices, batch-paginated), joins it, and caches it in memory for 5 minutes — so repeated questions don't hammer the API while staying inside the Fair Use Policy's freshness expectation. Postcodes resolve via postcodes.io (keyless); distances and statistics are computed locally. Permanently closed stations are excluded; prices older than 7 days are flagged as stale.
Fair Use Policy compliance
This server is built to comply with the Fuel Finder Aggregator Fair Use Policy: prices are presented unbiased and ranked by objective criteria (price, distance), timestamps and metadata pass through unmodified, the in-memory cache refreshes within the policy's 5-minute freshness expectation, and every response includes the official Report a Discrepancy link. If you build a public-facing service on top of this server, the Fair Use Policy applies to you directly — read it when you register.
Limitations
Prices are self-reported by forecourts under the statutory scheme; errors and lag happen — treat the pump price as final.
The scheme covers road fuel at registered UK forecourts; it does not include EV charging or LPG prices.
Postcode geocoding needs internet access to postcodes.io;
lat,loninput works without it.Not affiliated with the CMA, DESNZ or GOV.UK.
Privacy
Your credentials stay in your MCP client's config. Lookups go directly from your machine to the government API and postcodes.io — no third-party servers, no logging, no telemetry.
Contributing
Issues and PRs welcome. Run the checks before submitting:
uv run pytest
uv run ruff check src testsCredits
Built by Dwain Barnes / EryriLabs — HuggingFace. Contains public sector information from the Fuel Finder scheme, licensed under the Open Government Licence v3.0. Geocoding by postcodes.io.
Available Tools
4 toolsfuel_area_summaryARead-onlyIdempotent
Per-fuel price statistics for an area: min/median/max and the cheapest station for each fuel. Use it to judge whether a price you've seen is actually good locally.
Inputs: location (required), radius_miles. Returns: stats, location, attribution, spread_note, +2 more
fuel_data_statusARead-onlyIdempotent
Check the server's data: credentials configured, stations loaded, and cache age. Use this to diagnose empty results.
Inputs: no named parameters. Returns: note, configured, stations_loaded, cache_age_seconds
fuel_find_cheapestARead-onlyIdempotent
Find the cheapest fuel near a location, ranked by price, with each station's price compared to the local median. Prices are pence per litre from the official Fuel Finder data (updated within 30 minutes).
Inputs: location (required), fuel, top_k, radius_miles. Returns: fuel, results, location, attribution, +4 more
fuel_nearby_stationsARead-onlyIdempotent
List forecourts near a location (nearest first) with all their fuel prices, brand, amenities and motorway/supermarket flags.
Inputs: location (required), max_results, radius_miles. Returns: count, location, stations, attribution, +1 more
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool has a clearly distinct purpose: one diagnoses server/data status, one finds the cheapest station, one lists nearby stations with full details, and one provides area-level price statistics. No two tools would be confused for each other.
Tools consistently follow a 'fuel_' prefix with descriptive noun phrases (status, find_cheapest, nearby_stations, area_summary). The pattern is mostly consistent, though 'find_cheapest' uses a verb while 'nearby_stations' and 'area_summary' use noun phrases, which is a minor stylistic deviation.
Four tools is well-scoped for a fuel-prices domain: diagnostics, cheapest search, station listing, and area statistics each earn their place. This is a tight, focused set with no padding.
The set covers the core workflows: finding cheap fuel, listing nearby stations, and evaluating prices against area statistics, plus a diagnostic tool for troubleshooting. A minor gap is the absence of a direct single-station detail lookup or fuel-type-specific filtering, but most common user needs are covered.
Maintenance
Related MCP Connectors
MCP server for China domestic fuel prices (92/95/98 gasoline, diesel) across 31 provinces with
Tankerkoenig MCP — German real-time fuel prices (Benzinpreise) for all German gas stations…
Unofficial UK Police MCP — wraps the UK Police Data API (free, no auth) https://data.police.uk/api
This MCP server provides seamless access to Malaysia's government open data, including datasets, w…
Related MCP Servers
- AlicenseAqualityBmaintenanceMCP server that exposes any Pumperly instance to LLMs, enabling real-time fuel price queries, station search, route planning, and geocoding.6341 npm4GPL 3.0
- AlicenseCqualityCmaintenanceMCP server for the UK Bus Open Data Service, enabling timetable queries, stop search, route discovery, journey planning, and real-time bus tracking.1623 PyPIMIT
- AlicenseCqualityCmaintenanceA no-key-first MCP server providing access to UK public data including postcodes, bank holidays, carbon intensity, flood warnings, and government datasets.261MIT
- AlicenseNot gradedqualityFmaintenanceEnables AI assistants to query Austria's public fuel price API to find the cheapest diesel, super, or CNG stations near an address or within a region, including price, address, distance, open status, and navigation links, and to list regions and districts. It runs locally as a read-only stdio MCP server with no API keys required.MIT