fuel-prices-mcp

fuel-prices-mcp

MCP server for UK fuel prices, enabling queries for cheapest stations, nearby forecourts, and area price summaries using official government open data.

Category
访问服务器

README

fuel-prices-mcp

PyPI Downloads Downloads/month

fuel-prices-mcp finding the cheapest fuel

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
fuel_find_cheapest Cheapest stations for a fuel near a postcode, ranked by price, each compared to the local median, with the tank-of-fuel savings spread
fuel_nearby_stations Forecourts near a location, nearest first, with all fuel prices, brand and amenities
fuel_area_summary Min/median/max per fuel for an area — "is 142.9 actually a good price here?"
fuel_data_status 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.

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-mcp

3. 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-mcp

Prefer 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,lon input 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 tests

Credits

Built by Dwain Barnes / EryriLabsHuggingFace. Contains public sector information from the Fuel Finder scheme, licensed under the Open Government Licence v3.0. Geocoding by postcodes.io.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选
mcp-server-qdrant

mcp-server-qdrant

这个仓库展示了如何为向量搜索引擎 Qdrant 创建一个 MCP (Managed Control Plane) 服务器的示例。

官方
精选