Octopus Energy (octopus-mcp)

v0.5.1
io.github.mattoddie/octopus-mcp Checked 1 day ago Published 5 days ago

Octopus Energy usage and costs, tariffs, Agile prices, bills, EV charging and Saving Sessions

Values you need

VariableWhat it is
MCP_TRANSPORToptional The image serves HTTP by default; this runs it over stdio.
OCTOPUS_API_KEYrequired secret Your Octopus API key, from Personal details → API access in your Octopus account. It starts sk_live_.
OCTOPUS_ACCOUNToptional Your account number, like A-1234ABCD. Optional when the key can see only one account.
OCTOPUS_ALLOW_WRITESoptional true lets the assistant change Intelligent Octopus charging and join Saving Sessions. false is read-only. Default: false
OCTOPUS_TOOLSETSoptional 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_LOGoptional stderr, or a file path, to record every change the assistant makes as a JSON line. A file needs a volume.

Docker

Requires Docker

Run in a terminal
claude mcp add octopus-mcp -e 'OCTOPUS_API_KEY=<OCTOPUS_API_KEY>' -- docker run -i --rm -e OCTOPUS_API_KEY ghcr.io/mattoddie/octopus-mcp:0.5.1
Add to claude_desktop_config.json
{
  "mcpServers": {
    "octopus-mcp": {
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "OCTOPUS_API_KEY",
        "ghcr.io/mattoddie/octopus-mcp:0.5.1"
      ],
      "command": "docker",
      "env": {
        "OCTOPUS_API_KEY": "<OCTOPUS_API_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "octopus-mcp": {
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "OCTOPUS_API_KEY",
        "ghcr.io/mattoddie/octopus-mcp:0.5.1"
      ],
      "command": "docker",
      "env": {
        "OCTOPUS_API_KEY": "<OCTOPUS_API_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "OCTOPUS_API_KEY",
      "id": "octopus-api-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "octopus-mcp": {
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "OCTOPUS_API_KEY",
        "ghcr.io/mattoddie/octopus-mcp:0.5.1"
      ],
      "command": "docker",
      "env": {
        "OCTOPUS_API_KEY": "${input:octopus-api-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.octopus-mcp]
command = "docker"
args = ["run", "-i", "--rm", "-e", "OCTOPUS_API_KEY", "ghcr.io/mattoddie/octopus-mcp:0.5.1"]
env = { "OCTOPUS_API_KEY" = "<OCTOPUS_API_KEY>" }

For AI agents

  1. Ask the user for: OCTOPUS_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. If it fails, check that the required runtime is installed (Docker) and that the values above are set.

Machine-readable: install.md · manifest.json