Skip to main content
Glama
darronz

Octopus Energy MCP Server

by darronz

get_gas_consumption

Retrieve gas consumption data from Octopus Energy accounts for specified date ranges, with options to group by time periods and customize result formats.

Instructions

Get gas consumption data from Octopus Energy. Returns consumption in kWh for SMETS1 meters or cubic meters for SMETS2 meters. MPRN and serial number can be provided as parameters or will use values from GAS_MPRN and GAS_SERIAL_NUMBER environment variables.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
mprnNoThe MPRN (Meter Point Reference Number) for the gas meter. Optional if GAS_MPRN is set in .env
serial_numberNoThe meter serial number. Optional if GAS_SERIAL_NUMBER is set in .env
period_fromNoStart date/time in ISO 8601 format with UTC indicator (e.g., 2024-01-01T00:00:00Z)
period_toNoEnd date/time in ISO 8601 format with UTC indicator (e.g., 2024-01-31T23:59:59Z)
page_sizeNoNumber of results per page (default: 100, max: 25000)
order_byNoSet to 'period' to return earliest records first (default: latest first)
group_byNoGroup results by: day, week, month, or quarter

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/darronz/octopus-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server