Ofgem logo

Ofgem

Queries Ofgem’s UK energy datasets, price-cap components, wholesale prices, supplier data, debt, switching, and customer service statistics.

Install Ofgem

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "ofgem": {
      "command": "npx",
      "args": [
        "-y",
        "@pipeworx/mcp-ofgem"
      ],
      "env": {
        "PIPEWORX_API_KEY": "YOUR_VALUE_HERE",
        "PIPEWORX_META_TOOLS": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env PIPEWORX_API_KEY=YOUR_VALUE_HERE --env PIPEWORX_META_TOOLS=YOUR_VALUE_HERE --transport stdio ofgem -- npx -y @pipeworx/mcp-ofgem

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We hit an unexpected error while testing this listing automatically.

npx -y @pipeworx/mcp-ofgem

Rate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

Ofgem MCP server exposes the UK regulator’s published energy statistics through three MCP tools. It searches the Ofgem Data Portal catalogue, retrieves complete source tables, and provides domestic price-cap breakdowns by payment method and period. Use it when an agent needs structured UK energy data from Ofgem rather than web-search results. The hosted endpoint is keyless, while the npm bridge forwards calls to the same gateway and can use an optional API key.

Use cases

  • Find Ofgem datasets about the domestic price cap
  • Compare price-cap components across payment methods and periods
  • Retrieve monthly wholesale gas or electricity price tables
  • Analyse supplier market share and switching data
  • Inspect customer debt, disconnection, or service statistics

Key features

  • Searches the Ofgem Data Portal catalogue
  • Returns complete datasets as structured rows and columns
  • Breaks down the Great Britain domestic price cap
  • Supports Direct Debit, prepayment, and standard credit
  • Provides hosted MCP and local stdio connection options

Tools3

What Ofgem lets your agent do. Expand a tool for its parameters.

Verified live~705 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

14/14 checks healthy over the last 68d

What it can do

From the 3 tools this server returned when we ran it; 3 declare their own safety hints.

Makes network requests · 3Read-only tools · 3
Network at startup4 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age38 days
Maintainers1

Observed 2026-11-03 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 3d ago via OSV.dev · @pipeworx/mcp-ofgem (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads570Package downloads in the last 30 days.
Last commit26d agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.
Tools exposed3Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Ofgem works

What Ofgem MCP server does

Ofgem MCP server gives MCP-compatible agents access to statistics published by Ofgem, the UK energy regulator. Its coverage includes the domestic default tariff cap, the components behind that cap, wholesale gas and electricity prices, supplier market share, switching, customer debt, disconnections, network indicators, and customer service.

The server returns data as structured catalogue results or table rows. This makes it suitable for questions that require actual values, historical comparisons, or source-table inspection rather than a summary of a chart. The integration is independent and unofficial; it is not affiliated with or endorsed by Ofgem.

How it works

The hosted MCP endpoint is:

text
https://gateway.pipeworx.io/ofgem/mcp

A client can connect to that URL directly, or run @pipeworx/mcp-ofgem through npx. The local package acts as a stdio bridge and forwards requests to the hosted gateway, so it requires network access and has no offline mode.

The catalogue is obtained from Ofgem’s listing endpoint. Individual datasets are published through Everviz embeds, where the source table is available as CSV. The integration parses that CSV into rows and columns. It removes blank layout columns and adds suffixes to duplicate column names so adjacent fields remain distinct. Dates from the source tables use US-style month/day/year formatting, while price-cap data uses period labels such as seasonal ranges.

A scoped endpoint also exposes shared Pipeworx meta-tools alongside the Ofgem tools. These can route broader questions through the wider Pipeworx catalogue. The local bridge lists the Ofgem tools by default; setting PIPEWORX_META_TOOLS=1 adds the shared tools.

Setup and configuration

For a hosted connection, add the endpoint as an MCP server in a compatible client:

config.json
{
  "mcpServers": {
    "ofgem": {
      "url": "https://gateway.pipeworx.io/ofgem/mcp"
    }
  }
}

For a local stdio connection, use:

config.json
{
  "mcpServers": {
    "ofgem": {
      "command": "npx",
      "args": ["-y", "@pipeworx/mcp-ofgem"]
    }
  }
}

The service can be called anonymously. Anonymous usage is limited to 50 calls per day; a free Pipeworx account increases the limit to 200 calls per day. Add PIPEWORX_API_KEY to the local server environment to authenticate with a Pipeworx key. The key is sent as a Bearer token.

The tools can also be called over HTTP. For example, an HTTP POST to /v1/tools/ofgem_datasets with a JSON body containing {"query":"price cap"} searches the catalogue.

Tools and capabilities

  • ofgem_datasets searches or browses roughly 190 datasets and returns each dataset’s ID, title, and description. Use the returned ID with the row-retrieval tool.
  • ofgem_price_cap returns domestic price-cap periods and their wholesale, network, policy, operating, debt-related, EBIT, and VAT components. It supports Direct Debit, prepayment, and standard credit payment methods.
  • ofgem_dataset_rows returns the complete underlying table for a selected dataset. Optional controls limit the number of rows and reverse their order to show the latest entries first.

Limitations and notes

The catalogue and source data depend on Ofgem and Everviz endpoints remaining reachable. Dataset tables can contain repeated headers, blank chart-layout columns, and source labels that are preserved in the returned rows. The price-cap tool first resolves its dataset through the live catalogue and can fall back to known source identifiers if the catalogue naming changes. The server is intended for Ofgem data; broader requests may require the shared Pipeworx routing tools.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Ofgem

Ofgem is an MCP server that connects AI agents to the UK regulator’s published energy data through the Ofgem Data Portal and source tables. Its main tools search datasets, retrieve complete dataset rows, and return domestic price-cap periods with wholesale, network, policy, operating, debt, EBIT, and VAT components.

Install it by adding the hosted MCP URL to your client, or run the local bridge with `npx -y @pipeworx/mcp-ofgem`. The hosted URL is `https://gateway.pipeworx.io/ofgem/mcp`; the npm bridge forwards requests to that endpoint and requires network access.

Yes, Ofgem works with Cursor through the hosted MCP endpoint or the local stdio bridge. Add `https://gateway.pipeworx.io/ofgem/mcp` as the server URL, or configure Cursor to start `npx -y @pipeworx/mcp-ofgem`.

No, an API key is not required for anonymous use. Anonymous calls are capped at 50 per day; adding `PIPEWORX_API_KEY` with a free Pipeworx account raises the limit to 200 calls per day.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewOfgem AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/ofgem?style=directory)](https://allmcps.com/mcp/ofgem)
HTML Embed
<a href="https://allmcps.com/mcp/ofgem"><img src="https://allmcps.com/api/badge/ofgem?style=directory" alt="Ofgem on AllMCPs" /></a>