Changelog
All notable changes to this project are documented here. The format is based on Keep a Changelog, and the project follows Semantic Versioning.
For octopus-mcp, the “public API” is the set of tool names, their arguments, the prompts and the configuration variables. Renaming or removing any of these is a breaking change.
0.5.1 - 2026-11-27
Section titled “0.5.1 - 2026-11-27”A maintenance release with an updated Docker base image. octopus-mcp still has 26 tools (22 read and 4 write) and 5 prompts.
Changed
Section titled “Changed”- The Docker image is built on the latest
gcr.io/distroless/static-debian13base image.
0.5.0 - 2026-11-17
Section titled “0.5.0 - 2026-11-17”This release renames tools, arguments and list output to match the other mattoddie MCP servers ahead of 1.0. octopus-mcp has 26 tools (22 read and 4 write) and 5 prompts. Read the Breaking entries before upgrading.
Breaking changes
Section titled “Breaking changes”Tool, argument and output names now follow the conventions shared by the mattoddie MCP servers, ahead of 1.0.
- Breaking:
octopus_rest_getis renamedoctopus_api_request, matching the raw API tool of the other servers. - Breaking:
max_rowsis renamedlimitonoctopus_get_consumption,octopus_get_live_usage,octopus_get_unit_ratesandoctopus_get_solar_summary. - Breaking:
past_limitonoctopus_get_saving_sessionsis renamedlimit. - Breaking:
completed_hoursonoctopus_get_dispatchesis renamedhours, and is now a number, so fractions such as0.5work. - Breaking:
minutesonoctopus_get_live_usageis replaced byhours(a number;0.25is 15 minutes; default 1, at most 24). The output reportshoursinstead ofminutes. - Breaking: list tools return
{total, returned, items}:octopus_list_billsandoctopus_list_transactionsreturn their rows initemsinstead ofbillsandtransactions,octopus_list_devicesreturnstotal,returnedanditemsinstead ofdevices, andoctopus_list_productsaddsreturned.
0.4.0 - 2026-11-15
Section titled “0.4.0 - 2026-11-15”Four new tools, and fixes from a code review. octopus-mcp now has 26 tools in 6 toolsets (22 read and 4 write) and 5 prompts.
Breaking changes
Section titled “Breaking changes”- Breaking: the
rawtoolset (octopus_graphqlandoctopus_rest_get) is no longer enabled by default or byOCTOPUS_TOOLSETS=all, because it reaches any GraphQL query or REST path. Name it to keep it, for exampleOCTOPUS_TOOLSETS=all,raw.
octopus_compare_tariffsre-prices your actual half-hourly smart meter readings on other tariffs (Agile, Go, Cosy, Tracker, Flux, fixed deals or any product or tariff code) and compares them with the tariffs you were on: unit costs at each half-hour’s real rate plus standing charges. Works for electricity import, export (compares earnings) and gas. Thecompare_tariffsprompt uses it.octopus_get_solar_summaryputs the import and export meters side by side for homes with solar panels or a battery: kWh imported and exported, import costs and export earnings at each half-hour’s real rate, standing charges and the net cost, by day, week or month. Passgenerated_kwhfrom your inverter to add self-consumption and self-sufficiency, which Octopus can’t see.octopus_find_greener_slotsfinds the lowest-carbon times to use electricity over the next 48 hours from NESO’s official regional carbon intensity forecast, alongside your tariff’s prices: the greenest block of a given length, runner-ups, the greenest half-hours and the cheapest block for comparison. It uses a new upstream host,api.carbonintensity.org.uk(public, no credentials), set with the newOCTOPUS_CARBON_INTENSITY_URL.octopus_plan_scheduleplans when to charge a home battery or car, or run a heat pump, on Cosy, Flux, Go, Agile and other time-of-use tariffs: it spreads the energy you need over the cheapest half-hours the device’s power allows, across every cheap window, merges them into start and stop times, and lists the tariff’s price windows and the saving against starting straight away. It plans only; it doesn’t change any device.
octopus_get_consumptionwithgroup_by=hourkeeps the two 01:00 hours apart on the day the clocks go back, instead of merging them.octopus_get_consumptionprices a tariff that comes back in a later agreement (for example Agile, then Go, then Agile again); the later period used to have no rates.yesterdayandtomorroware counted in UK days, so they’re right just after midnight on the day the clocks change, whatever the server’s time zone.- The
average_p_per_kwhfromoctopus_get_unit_ratesis weighted by how long each rate applies in the period, instead of being a plain average of the rate records. octopus_find_cheapest_slotsonly uses half-hours that end byto.octopus_set_charge_preferenceskeeps each day’s minimum charge (min) when it changes the target or ready-by time; it used to clear it. The result now shows the minimum too.
Security
Section titled “Security”octopus_rest_getrefuses any path with agraphqlsegment, in any case. A leading/v1was removed twice, so/v1/v1/graphqlpassed the check and reached the GraphQL endpoint with a GET.- Successful REST and GraphQL responses are scrubbed of the API key and Kraken tokens before tools see them, not just error messages.
- Audit log entries are scrubbed of the API key and tokens wherever they appear, such as a key pasted into a GraphQL query, not just under secret-looking argument names.
Changed
Section titled “Changed”- Building from source needs Go 1.26 or later.
0.3.2 - 2026-11-13
Section titled “0.3.2 - 2026-11-13”- Each release now has plain binaries for macOS, Linux and Windows on
amd64andarm64, with aSHA256SUMSfile and build provenance attestations, so you can run octopus-mcp without Docker. See Running without Docker.
Security
Section titled “Security”- Built with Go 1.27.4, which fixes an HTTP/1 server crash in the standard library’s
net/http(GO-2026-6859).
0.3.1 - 2026-10-22
Section titled “0.3.1 - 2026-10-22”- Listed in the MCP Registry as
io.github.mattoddie/octopus-mcp. Each stable release is published to the official MCP Registry with the Docker image (run over stdio) and the extension bundles, so clients that install from the registry can find it. See Releasing.
0.3.0 - 2026-10-22
Section titled “0.3.0 - 2026-10-22”- Claude Desktop extension bundles. Each release now has a
.mcpbbundle for macOS, Windows and Linux onamd64andarm64, which installs octopus-mcp into Claude Desktop in one click, with a settings form for the API key, account, writes, toolsets and audit log. No Docker or token needed. See Claude Desktop. - Audit log.
OCTOPUS_AUDIT_LOG(a file path orstderr) records every call of a write tool, and everyoctopus_graphqlmutation, as a JSON line with the time, tool, arguments (secrets redacted) and outcome. The file is created with mode0600, and the server refuses to start if it can’t write to it. See Audit log. - Keeping the tool list small in the configuration docs: how many tools, and how many kilobytes of
tools/list, each toolset combination costs, read-only and with writes.
Changed
Section titled “Changed”- A variable set to exactly
${user_config.<key>}, which is what Claude Desktop passes for an extension setting left empty, counts as unset, like an empty value.
Security
Section titled “Security”- Built with Go 1.27.3, which fixes a
crypto/x509vulnerability in the standard library (GO-2026-6809).
0.2.0 - 2026-10-20
Section titled “0.2.0 - 2026-10-20”Fixes from a security review.
Breaking changes
Section titled “Breaking changes”- With
MCP_TRANSPORT=http, the server refuses to start ifMCP_AUTH_TOKENis shorter than 16 characters. Generate one withopenssl rand -hex 32. MCP_ALLOW_UNAUTHENTICATED=truenow needsMCP_ALLOWED_HOSTStoo: without a token, the allow-list is the only protection against DNS rebinding.- When
MCP_ALLOWED_HOSTSis set, requests with anOriginheader that isn’t on the list are refused. An entry without a port matches anOriginonly on the scheme’s default port, so a browser-based client on another port needs ahost:portentry. /mcponly acceptsPOST, with a valid JSON body of at most 4 MiB.OCTOPUS_API_URL,OCTOPUS_GRAPHQL_URLandOCTOPUS_BACKEND_GRAPHQL_URLmust usehttps://(http://only for localhost) and can’t contain a user name or password.octopus_graphqlrefuses any document that mentions tokens, API keys or passwords even with writes off, refuses subscriptions, and refuses documents it can’t parse.
Security
Section titled “Security”- Fix a bypass of the read-only switch in
octopus_graphql: a mutation preceded by a comma or a byte order mark, which GraphQL ignores, was taken for a query, so,mutation { regenerateSecretKey { key } }ran with writes off. Documents are now read with a GraphQL lexer that follows the specification, and every operation in them must be a query unless writes are on. - Check the
Originheader againstMCP_ALLOWED_HOSTS, as well asHost. - Don’t follow redirects from Octopus at all; same-host redirects, including https to http, were followed before.
- Don’t retry a POST (GraphQL queries and mutations) when Octopus answers 503, so a mutation is never sent twice. POSTs are still retried when rate-limited.
- Redact the API key and tokens from the details in GraphQL errors (
errorDescription, refusal reasons), and keep redacting recent tokens after they are refreshed. octopus_rest_getrefuses paths that are still percent-encoded after decoding, such as/%252e%252e/graphql/.- Error on Octopus responses over 64 MiB instead of reading a truncated body.
- Wait 30 seconds before sending a rejected API key to Octopus again.
- Add read and idle timeouts to the HTTP server.
- Build with Go 1.27 (
toolchain go1.27.2), pin the Docker base images by digest, and rungovulncheckin CI.
- Costs for long periods (up to the 732 days the consumption tools allow) no longer silently miss rates: rate history is fetched for the whole period, with an error asking for a shorter one if Octopus has more than expected.
- The rate in force is found even when it started many records earlier, for tariffs whose rate records overlap.
cost_if_run_now_gbpinoctopus_find_cheapest_slotsprices the job over its whole duration from now, rather than at the current half-hour’s rate.- The
healthcheckcommand connects toMCP_HTTP_HOSTwhen it is a specific address.
0.1.1 - 2026-10-16
Section titled “0.1.1 - 2026-10-16”Security
Section titled “Security”- Update
golang.org/x/systo v0.44.0 for GO-2026-5024. The advisory is Windows-only and not reachable from this code, so the Linux images weren’t affected. - Build with Go 1.26.9 (
toolchain go1.26.9), which fixes standard-library advisories innet/http,mime/multipartandcrypto/tls.
0.1.0 - 2026-10-15
Section titled “0.1.0 - 2026-10-15”First release, not yet tagged. It hasn’t yet been tested against a live Octopus account, so expect rough edges, and please report anything Octopus rejects.
- MCP server for Octopus Energy (unofficial) with 22 tools in 6 toolsets: account, consumption, tariffs, intelligent, octoplus and raw.
- Account overview (properties, MPAN/MPRN, meter serials, smart meter device IDs, gas meter units, current and previous tariffs), balance, bills with temporary PDF links, and transactions.
- Smart meter consumption for electricity import and export and gas, totalled by half-hour, hour, day, week, month or overall in UK time, with cost estimates from the actual unit rate of every half-hour and the daily standing charges of the tariff in force at the time.
- Honest gas units: SMETS2 readings in m³ are recognised from the meter’s details, converted to kWh with the standard formula and a configurable calorific value, and any assumption is reported.
- Live demand from an Octopus Home Mini.
- Public tariff tools: products, prices by region, unit rates (half-hourly for Agile and other time-of-use tariffs, day and night for Economy 7), standing charges, a cheapest-time finder for continuous blocks and individual half-hours, and region lookup by postcode.
- Intelligent Octopus: devices with status, battery level and schedule, and planned and completed dispatches. With writes: charging target and ready-by time, bump charge, and suspending or resuming smart control.
- Octoplus: points balance and Saving Sessions (upcoming in your region, joined status, past results). With writes: joining a session or booking a weekend happy hour.
- Raw
octopus_graphql(Kraken or backend API; mutations only with writes, and never for tokens, API keys or passwords) andoctopus_rest_gettools. - Five built-in prompts:
energy_report,plan_cheap_usage,compare_tariffs,ev_charging_checkandsaving_session_check. - Authentication with the API key alone: HTTP Basic for account REST requests (public requests send no credentials), and in-memory Kraken tokens for GraphQL, renewed before expiry with the refresh token and retried once if rejected. The key and tokens are scrubbed from errors and never returned.
- Account number discovery when
OCTOPUS_ACCOUNTisn’t set and the key sees a single account. - Read-only by default;
OCTOPUS_ALLOW_WRITESregisters the write tools andOCTOPUS_TOOLSETSlimits the tools exposed. Tools are annotated as read-only, destructive or open-world. - Automatic retries when Octopus rate-limits requests, and error messages with hints for common Octopus errors.
- Streamable HTTP (stateless) and stdio transports, with bearer-token auth and a
Hostheader allow-list for HTTP. serve,status,healthcheckandversioncommands._FILEvariants of every variable for Docker secrets.- Multi-arch distroless Docker image (
linux/amd64,linux/arm64) published to GHCR on each release, with SBOM and provenance attestation. - Documentation, including a tool reference generated from the code, and a website.