octopus-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| OCTOPUS_ACCOUNT | No | Your account number, like A-1234ABCD. Optional when the key can see only one account. | |
| OCTOPUS_API_KEY | Yes | Your Octopus API key, from Personal details → API access in your Octopus account. It starts sk_live_. | |
| OCTOPUS_TOOLSETS | No | Comma-separated toolsets to expose: account, consumption, tariffs, intelligent, octoplus, raw. Empty means all, which leaves out raw: name it (all,raw) to enable it. | |
| OCTOPUS_AUDIT_LOG | No | stderr, or a file path, to record every change the assistant makes as a JSON line. A file needs a volume. | |
| OCTOPUS_ALLOW_WRITES | No | true lets the assistant change Intelligent Octopus charging and join Saving Sessions. false is read-only. | false |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Tools for an Octopus Energy (UK energy supplier) household account: the account's properties, meters and tariffs, smart meter consumption with cost estimates, unit rates and standing charges (including half-hourly Agile prices), bills and balance, Intelligent Octopus EV charging, and Octoplus Saving Sessions. Start with octopus_get_account for the meters and current tariffs. Prices are in pence including VAT unless a field says otherwise; money totals are in pounds. Times are UK local time; dates are whole UK days. Electricity is in kWh; SMETS2 gas meters report m³, which tools convert to kWh where they estimate costs, saying so. Cost estimates come from published rates and won't exactly match bills. The server is read-only; write tools are disabled (OCTOPUS_ALLOW_WRITES=false).
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| logging | {} |
| prompts | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| octopus_compare_tariffsA | Re-price your actual half-hourly smart meter readings on other Octopus tariffs, such as Agile, Go, Cosy, Tracker, Flux or a fixed deal, and compare them with what the tariffs you were on would have cost: unit costs at each tariff's real rate for every half-hour, plus standing charges, including VAT. Give product codes from octopus_list_products (your meter's region and fuel are used) or full tariff codes. Works for electricity import, export (compares earnings) and gas. These are estimates from past usage, which would change if you shifted it to suit a tariff; they ignore eligibility (Go and Intelligent Go need an EV or charger, Cosy a heat pump), exit fees, discounts and credits. Half-hours a tariff has no rate for (for example before a product existed) are left out and counted. |
| octopus_find_cheapest_slotsA | Find the cheapest time to use electricity on a time-of-use tariff such as Agile: the cheapest continuous block of a given length (for a dishwasher, washing machine, battery or car), runner-up blocks that don't overlap, and the cheapest individual half-hours. Only looks at prices Octopus has published (Agile prices for the next day usually appear around 4pm). Choose the tariff by tariff_code, by product_code with region or postcode, or leave them out for the account's current tariff. |
| octopus_find_greener_slotsA | Find the lowest-carbon times to use electricity in your region over the next 48 hours, from the official regional carbon intensity forecast of NESO (Great Britain's electricity system operator, api.carbonintensity.org.uk), alongside your tariff's prices: the greenest continuous block of a given length, runner-up blocks, the greenest half-hours, the cheapest block for comparison, and the intensity now. Intensity is grams of CO2 per kWh of electricity generated in the region (a forecast), with NESO's index from very low to very high. The region comes from the tariff, or from region or postcode on their own (then without prices). Choose the tariff by tariff_code, by product_code with region or postcode, or leave them out for the account's current tariff. Northern Ireland isn't covered. |
| octopus_find_regionA | Find which of the 14 electricity regions (A to P) a UK postcode is in. Tariff prices differ by region, and tariff codes end with the region letter. Public data; no account needed. |
| octopus_get_accountA | A one-call overview of the Octopus Energy account and a good first call: each property's address, its electricity meter points (MPAN, import or export, meter serial numbers, smart meter device IDs) and gas meter points (MPRN, serials, whether the meter reports in kWh or m³), the current tariff on each (tariff and product codes, region), the estimated annual consumption Octopus holds, and the account balance. Use the tariff codes with the tariffs tools, and the MPAN/MPRN and serials with octopus_get_consumption. |
| octopus_get_balanceA | Get the account balance in pounds (positive means in credit, negative means you owe Octopus), any overdue balance and the account status. |
| octopus_get_consumptionA | Get smart meter readings for electricity (import or export) or gas, totalled by half-hour, hour, day, week or month in UK time, with an estimated cost from the tariff that was active at the time: the actual unit rate for every half-hour (so Agile, Go and other time-of-use tariffs are priced correctly) plus standing charges, including VAT. Readings come from the smart meter, usually a day behind; there is no data for meters that aren't smart or don't send half-hourly reads. Electricity is in kWh. SMETS2 gas meters report m³, which is converted to kWh for costing with the standard formula (m³ × 1.02264 × calorific value ÷ 3.6). For export meters the estimate is what Octopus pays you. Day/night (Economy 7) tariffs are priced assuming night hours of 00:30 to 07:30 GMT, which may not match your meter. Estimates exclude discounts and credits; your bill is the source of truth. |
| octopus_get_dispatchesA | Get Intelligent Octopus charging slots (dispatches) for a car or charger: the planned slots Octopus has scheduled (with the energy each should add) and recent completed slots. On Intelligent Octopus Go, home electricity is charged at the off-peak rate during planned smart-charging slots even outside the usual off-peak hours (Octopus caps how many hours a day this applies to; check your tariff terms). Completed slots are reported about 12 hours late. |
| octopus_get_live_usageA | Get near real-time electricity readings from the smart meter through an Octopus Home Mini: current demand in watts and energy used in each interval. Needs a Home Mini paired with the smart meter; without one this returns no data. Readings are typically a few seconds to a few minutes old. |
| octopus_get_octoplusB | Get whether the account is enrolled in Octoplus, Octopus's rewards scheme, and its OctoPoints balance with the value Octopus gives it in pounds. |
| octopus_get_productA | Get an Octopus product's details and its current prices in each region, including VAT: unit rate (pence per kWh; day and night rates for Economy 7), standing charge (pence per day) and any exit fee, for electricity and gas. For half-hourly tariffs such as Agile the unit rate shown is only indicative; use octopus_get_unit_rates. Public data; no account needed. |
| octopus_get_saving_sessionsA | Get Octoplus Saving Sessions (and turn-up and weekend happy hour sessions): upcoming sessions for your region with their start and end times, the OctoPoints reward per kWh, whether you've joined each one and the code to join it; whether you've signed up to the campaign; your points balance; and results of past sessions you took part in. |
| octopus_get_solar_summaryA | Combine a home's electricity import and export smart meters (for solar panels or a battery) over a period: kWh imported and exported, what the imports cost and the exports earned at the actual rate for every half-hour (so Agile Outgoing and other time-of-use export tariffs are priced correctly), standing charges and the net cost, by day, week or month. Octopus has no generation data, so to get self-consumption (generation minus export) and self-sufficiency, pass generated_kwh from your inverter app. Readings are usually a day behind. Estimates exclude discounts and credits; your bill is the source of truth. |
| octopus_get_standing_chargesA | Get a tariff's daily standing charge (pence per day, including VAT): the current charge and how it has changed over a period. Choose the tariff by tariff_code, by product_code with region or postcode, or leave them out for the account's current tariff. |
| octopus_get_unit_ratesA | Get a tariff's unit rates (pence per kWh, including VAT) over a period: every half-hour for Agile, the cheap and peak periods for Go, Intelligent Go, Cosy and Flux, daily prices for Tracker, and the flat rate for fixed and flexible tariffs. Also gives the price now, when it next changes, and the minimum, maximum and average. Choose the tariff by tariff_code, by product_code with region or postcode, or leave them out for the account's current tariff. Day/night tariffs list day and night rates separately. |
| octopus_list_billsA | List the account's bills (statements), newest first: the period covered, issue date, charges and credits, and the opening and closing balances, all in pounds. Set include_pdf_links for a temporary link to each bill's PDF. |
| octopus_list_devicesB | List the devices Octopus controls for smart tariffs such as Intelligent Octopus Go: electric cars, chargers, batteries and heat pumps, with each one's make and model, status (for example SMART_CONTROL_CAPABLE, BOOSTING or LOST_CONNECTION), whether smart charging is suspended, battery level where reported, and its charging schedule (target charge and ready-by time for each day). |
| octopus_list_productsA | List the energy products (tariffs) Octopus Energy sells now, such as Agile, Go, Intelligent Go, Cosy, Tracker, Flux, Flexible and fixed deals, with whether each is variable, a tracker, green, import or export. Public data; no account needed. Use the codes with octopus_get_product for prices. |
| octopus_list_transactionsA | List the account's transactions, newest first: charges for energy, payments (such as direct debits), credits (such as Octoplus rewards or Saving Session payouts) and refunds, in pounds, with the balance after each. |
| octopus_plan_scheduleA | Plan when to charge a home battery or car, or run a heat pump, so that a given amount of energy goes in as cheaply as possible on a time-of-use tariff such as Cosy, Flux, Go, Intelligent Go or Agile. Unlike octopus_find_cheapest_slots, which finds one continuous block, this spreads the energy over the cheapest half-hours the device's power allows, across every cheap window in the period, and merges them into start and stop times. Also lists the tariff's price windows over the period (for example Cosy's three cheap windows and its peak) and compares the cost with starting straight away. It only plans; it doesn't change any device. Only uses published prices. Choose the tariff by tariff_code, by product_code with region or postcode, or leave them out for the account's current tariff. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| compare_tariffs | Estimate what your actual recent electricity use would have cost on other Octopus tariffs, such as Agile, Go, Cosy or a fixed deal, against what you're on now. |
| energy_report | A plain-English report on your electricity (and gas) use and cost for a period, with the tariff, the expensive times of day and ideas to save. |
| ev_charging_check | Check an Intelligent Octopus car or charger: status, schedule, planned and recent charging slots, and anything that needs attention. |
| plan_cheap_usage | Find the cheapest times in the next day or so to run an appliance, charge a car or battery, on Agile or another time-of-use tariff. |
| saving_session_check | See upcoming Octoplus Saving Sessions, whether you've joined, what you could earn, and how past sessions went. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 20 tools
Tools are largely distinct, and several descriptions explicitly cross-reference their neighbours (plan_schedule explains how it differs from find_cheapest_slots). The main soft spots are the three slot-finding tools (find_cheapest_slots, find_greener_slots, plan_schedule) and the overlapping price/overview tools (get_product vs get_unit_rates, get_balance vs get_account), but the descriptions give enough detail to choose correctly.
Every tool uses the octopus_ prefix plus a consistent snake_case verb_noun pattern (find_region, get_consumption, list_bills, plan_schedule, compare_tariffs). The small number of verbs (find, get, list, plan, compare) is used uniformly and predictably.
20 tools is on the heavy side but is justified by a broad domain spanning accounts, tariffs, consumption, solar, devices, rewards and scheduling. Each tool maps to a distinct API area, though it sits at the upper edge of comfortable scope.
Read/analysis coverage is excellent: account overview, balance, bills, transactions, consumption, live usage, solar, tariff pricing, comparison, scheduling and Octoplus rewards are all present, plus a postcode-to-region helper. Gaps are on the action side — no submitting meter readings and no way to actually join a Saving Session or execute a schedule, only retrieve its join code.