Octopus Energy (octopus-mcp)
v0.5.1Octopus Energy usage and costs, tariffs, Agile prices, bills, EV charging and Saving Sessions
Values you need
| Variable | What it is | |
|---|---|---|
MCP_TRANSPORT | optional | The image serves HTTP by default; this runs it over stdio. |
OCTOPUS_API_KEY | required secret | Your Octopus API key, from Personal details → API access in your Octopus account. It starts sk_live_. |
OCTOPUS_ACCOUNT | optional | Your account number, like A-1234ABCD. Optional when the key can see only one account. |
OCTOPUS_ALLOW_WRITES | optional | true lets the assistant change Intelligent Octopus charging and join Saving Sessions. false is read-only. Default: false |
OCTOPUS_TOOLSETS | optional | 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 | optional | 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.1Add 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
- Ask the user for: OCTOPUS_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
- 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).
- Restart or reload the client so it starts the server.
- If it fails, check that the required runtime is installed (Docker) and that the values above are set.
Machine-readable: install.md · manifest.json