@pipeworx/ofgem
Connect: https://gateway.pipeworx.io/ofgem/mcp · Install: one-click buttons
No MCP client? Skip the connection: POST https://gateway.pipeworx.io/v1/tools/search_packs {"query":"..."} to find a tool below, GET /v1/tools/<name> for its schema, POST the same URL with arguments for the data — see For AI agents.
Tools: 3
Ofgem energy data — the UK energy regulator’s published statistics on the domestic price cap and what it is made of, wholesale gas and electricity prices, supplier market shares, switching, debt and customer service, returned as tabular rows rather than pictures.
Tools
ofgem_datasets(query?, page?)— the Data Portal catalogue (~190 datasets). Returnsdataset_id, the id every other tool here takes.ofgem_price_cap(payment_method?, periods?)— the default tariff cap by period, broken into wholesale / network / policy / operating / debt / EBIT / VAT components, for Direct Debit, prepayment or standard credit.ofgem_dataset_rows(dataset_id, limit?, latest_first?)— the full source table behind any Data Portal dataset.
Auth
Keyless.
Data sources
- https://www.ofgem.gov.uk/api/listing/2156 — the Data Portal chart catalogue.
- https://app.everviz.com/inject/{dataset_id}/ — the source table for one dataset.
Things worth knowing:
- There is no CKAN, no Opendatasoft and no JSON:API.
data.ofgem.gov.ukdoes not resolve at all (no A record; it has MX records only)./jsonapi,/api/v1/datasetsand/api/searchare 404s. The Data Portal page renders nothing server-side — a plain fetch of/news-and-insight/data/data-portal/all-available-chartscontains zero dataset links, so scraping the HTML returns an empty list, not an error. - The catalogue is
/api/listing/{paragraph_id}, the endpoint the portal’s own front end calls (found inthemes/custom/numiko/dist/filter-listing-legacy-*.js).2156is the chart listing’s paragraph id. It takesfulltext=andpage=(0-based, 24 per page) and reports the match count inmeta.count. - Each catalogue row carries its dataset payload as HTML-escaped JSON inside
a
data-js-chart-modal-dataattribute on the row’s teaser markup, not as a JSON field. It has to be unescaped and parsed out. - The table is not on ofgem.gov.uk. Ofgem publishes each dataset through
everviz (Highsoft), and the everviz embed script carries the source table as
CSV in
options.data.csv. That CSV is the data; this pack parses it. - Dates in those CSVs are US-ordered (mm/dd/yyyy) even though every figure is British, and the price-cap breakdown tables use period labels (“Oct - Dec 2026”) rather than dates. Row labels are returned verbatim.
- CSV headers repeat and some are blank spacers used for chart layout.
Blank-named columns are dropped; duplicate names get a
(2)suffix so one column never silently swallows its neighbour. ofgem_price_capresolves its dataset from the live catalogue first and only falls back to the known everviz ids, so an upstream rename degrades to a stale id rather than to no answer.
Tools
- ofgem_datasets — Browse or search the Ofgem Data Portal catalogue — ~190 published datasets from the UK energy regulator covering the domestic price cap and its cost components, wholesale gas and electricity prices, s
- ofgem_price_cap — The Ofgem domestic energy price cap (the default tariff cap) for Great Britain, broken down into the cost components that make it up — wholesale costs, network costs, policy costs, operating costs, de
- ofgem_dataset_rows — Return the full underlying table for one Ofgem Data Portal dataset as rows and columns — the numbers behind the published chart, not an image. Get the dataset id from ofgem_datasets. Use for “give me
Tools
ofgem_dataset_rows— Return the full underlying table for one Ofgem Data Portal dataset as rows and columns — the numbers behind the published chart, not an image. Get the dataset id from ofgem_datasets. Use for give me tofgem_datasets— Browse or search the Ofgem Data Portal catalogue — ~190 published datasets from the UK energy regulator covering the domestic price cap and its cost components, wholesale gas and electricity prices, sofgem_price_cap— The Ofgem domestic energy price cap (the default tariff cap) for Great Britain, broken down into the cost components that make it up — wholesale costs, network costs, policy costs, operating costs, de