Skip to content
VS Code

Octopus Energy (octopus-mcp) for VS Code

io.github.mattoddie/octopus-mcp

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

client:VS Code transport:stdio runtime:oci

Install Octopus Energy (octopus-mcp) in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "mcp-transport",
      "description": "MCP_TRANSPORT",
      "password": true
    },
    {
      "type": "promptString",
      "id": "octopus-api-key",
      "description": "OCTOPUS_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "octopus-account",
      "description": "OCTOPUS_ACCOUNT",
      "password": true
    },
    {
      "type": "promptString",
      "id": "octopus-allow-writes",
      "description": "OCTOPUS_ALLOW_WRITES",
      "password": true
    },
    {
      "type": "promptString",
      "id": "octopus-toolsets",
      "description": "OCTOPUS_TOOLSETS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "octopus-audit-log",
      "description": "OCTOPUS_AUDIT_LOG",
      "password": true
    }
  ],
  "servers": {
    "octopus-mcp": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/mattoddie/octopus-mcp:0.3.2"
      ],
      "env": {
        "MCP_TRANSPORT": "${input:mcp-transport}",
        "OCTOPUS_API_KEY": "${input:octopus-api-key}",
        "OCTOPUS_ACCOUNT": "${input:octopus-account}",
        "OCTOPUS_ALLOW_WRITES": "${input:octopus-allow-writes}",
        "OCTOPUS_TOOLSETS": "${input:octopus-toolsets}",
        "OCTOPUS_AUDIT_LOG": "${input:octopus-audit-log}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

Octopus Energy (octopus-mcp) in other clients