原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Octopus Energy (octopus-mcp)

作者:mattoddie版本 0.3.1i★ –i在你的电脑上运行
注册名称io.github.mattoddie/octopus-mcp

安装

概览

作者提供的说明(英文原文)

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

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 其他
  • 你需要填写:OCTOPUS_API_KEY

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 需要你自己填写: MCP_TRANSPORT, OCTOPUS_API_KEY, OCTOPUS_ACCOUNT, OCTOPUS_ALLOW_WRITES, OCTOPUS_TOOLSETS, OCTOPUS_AUDIT_LOG

标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。

你需要

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

下载作者的 .mcpb 文件

链接指向作者自己的文件;我们不托管也不重新打包它。打开文件后,Claude Desktop 会进行安装。

在终端中运行这条命令

claude mcp add octopus --env MCP_TRANSPORT=your-value --env OCTOPUS_API_KEY=your-value --env OCTOPUS_ACCOUNT=your-value --env OCTOPUS_ALLOW_WRITES=your-value --env OCTOPUS_TOOLSETS=your-value --env OCTOPUS_AUDIT_LOG=your-value -- docker run -i --rm -e MCP_TRANSPORT -e OCTOPUS_API_KEY -e OCTOPUS_ACCOUNT -e OCTOPUS_ALLOW_WRITES -e OCTOPUS_TOOLSETS -e OCTOPUS_AUDIT_LOG ghcr.io/mattoddie/octopus-mcp:0.3.1

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "octopus": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "MCP_TRANSPORT",
        "-e",
        "OCTOPUS_API_KEY",
        "-e",
        "OCTOPUS_ACCOUNT",
        "-e",
        "OCTOPUS_ALLOW_WRITES",
        "-e",
        "OCTOPUS_TOOLSETS",
        "-e",
        "OCTOPUS_AUDIT_LOG",
        "ghcr.io/mattoddie/octopus-mcp:0.3.1"
      ],
      "env": {
        "MCP_TRANSPORT": "your-value",
        "OCTOPUS_API_KEY": "your-value",
        "OCTOPUS_ACCOUNT": "your-value",
        "OCTOPUS_ALLOW_WRITES": "your-value",
        "OCTOPUS_TOOLSETS": "your-value",
        "OCTOPUS_AUDIT_LOG": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "octopus": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "MCP_TRANSPORT",
        "-e",
        "OCTOPUS_API_KEY",
        "-e",
        "OCTOPUS_ACCOUNT",
        "-e",
        "OCTOPUS_ALLOW_WRITES",
        "-e",
        "OCTOPUS_TOOLSETS",
        "-e",
        "OCTOPUS_AUDIT_LOG",
        "ghcr.io/mattoddie/octopus-mcp:0.3.1"
      ],
      "env": {
        "MCP_TRANSPORT": "your-value",
        "OCTOPUS_API_KEY": "your-value",
        "OCTOPUS_ACCOUNT": "your-value",
        "OCTOPUS_ALLOW_WRITES": "your-value",
        "OCTOPUS_TOOLSETS": "your-value",
        "OCTOPUS_AUDIT_LOG": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

需要你填写的值

  • MCP_TRANSPORT env
    The image serves HTTP by default; this runs it over stdio.
  • OCTOPUS_API_KEY 机密 必填 env
    Your Octopus API key, from Personal details → API access in your Octopus account. It starts sk_live_.
  • OCTOPUS_ACCOUNT env
    Your account number, like A-1234ABCD. Optional when the key can see only one account.
  • OCTOPUS_ALLOW_WRITES env
    true lets the assistant change Intelligent Octopus charging and join Saving Sessions. false is read-only.
  • OCTOPUS_TOOLSETS env
    Comma-separated toolsets to expose: account, consumption, tariffs, intelligent, octoplus, raw. Empty means all.
  • OCTOPUS_AUDIT_LOG env
    stderr, or a file path, to record every change the assistant makes as a JSON line. A file needs a volume.

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 mattoddie 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“其他”中的其他服务器比较i

  • 星标数多于此分类中其他 18354 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 18354 个服务器的 73% 更新
  • 基础检查结果等于或优于此分类中其他 18354 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Octopus Energy (octopus-mcp) 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:OCTOPUS_API_KEY

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.3.1)于16天前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Docker, MCPB。

有什么可以替代它?

同一分类中有:Spec Driven Development, Remote Desktop Commander, Qemu MCP

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Spec Driven Development

作者:formulahendry

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

在你的电脑上运行★ 440MIT14个月前更新
安装

Remote Desktop Commander

作者:desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

在云端运行★ 211前天更新
安装

Qemu MCP

作者:0xmortuex

Boot and drive QEMU VMs from an AI agent: keys, screenshots, serial. No guest agent.

在你的电脑上运行今天更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

octopus-mcp

Talk to your energy.

An open-source Model Context Protocol server for Octopus Energy customers in the UK. It lets Claude and other AI assistants read your smart meter usage, costs, tariffs and bills, find the cheapest Agile half-hours and, if you allow it, manage Intelligent Octopus EV charging and join Saving Sessions, all from one small Docker container.

[octopus-mcp.mattoddie.dev](https://octopus-mcp.mattoddie.dev)

Quick start · Documentation · Tool reference · Contributing

[!NOTE]

octopus-mcp is an unofficial, independent community project. It is not affiliated with, endorsed by or supported by Octopus Energy. It uses the public customer APIs with your own API key.


"How much did I spend on electricity last week, and when should I run the dishwasher tonight?"

*Last week you used 58.4 kWh for £11.92, including £2.66 of standing charges, an average of 15.9p/kWh on Agile. Wednesday was the priciest day: you used 4.1 kWh between 4pm and 7pm, when prices were over 30p. Tonight the cheapest two hours are 01:30 to 03:30 at an average of 7.8p/kWh, so a 1.5 kWh dishwasher cycle would cost about 12p, against 46p if you started it now.*

Ask about your energy in plain English. The assistant picks from 22 tools to look things up and, if you allow it, make changes. Some examples:

  • 📊 *"Give me a report on my energy use for September."*
  • ⚡ *"What are the Agile prices for tomorrow? Any negative ones?"*
  • 🕑 *"Find the cheapest 3 hours overnight to charge the home battery."*
  • 🔥 *"How much gas did we use this month, in kWh?"*
  • 🚗 *"When will the car charge tonight? Make it 90% by 7am tomorrow."*
  • 🎁 *"Is there a Saving Session coming up? Sign me up."*

Highlights

  • 🐳 Docker-first and tiny. One image (ghcr.io/mattoddie/octopus-mcp) for linux/amd64 and linux/arm64, about 20 MB. It's a single static Go binary on a distroless base, with no shell or package manager, running as a non-root user with nothing to write. It serves Streamable HTTP for a long-running service, or stdio for docker run -i. You can also run the binary on its own, and for Claude Desktop there's a one-click extension bundle (.mcpb) that needs no Docker.
  • 💷 Real costs, half-hour by half-hour. Consumption is priced with the actual unit rate for every half-hour from the tariff you were on at the time, plus standing charges, so Agile, Go, Intelligent Go, Cosy, Flux and Tracker are costed properly.
  • 🕑 Cheapest-time finder. Finds the cheapest continuous block for a job, runner-up times and the cheapest half-hours, and says what it'll cost against running it now.
  • 🔥 Honest about units. SMETS2 gas meters report m³. octopus-mcp knows which your meter uses, converts with the standard formula, and tells you what it assumed.
  • 🛡️ Safe by default. The server is read-only unless you turn on writes. Tools that aren't allowed aren't registered at all, and the raw GraphQL tool can't run mutations without writes, or ever touch tokens or API keys.
  • 🔑 Simple, secret-safe auth. Just your Octopus API key: REST requests use it directly, and GraphQL gets short-lived Kraken tokens that are renewed automatically and kept in memory. Neither the key nor tokens ever appear in output or logs.
  • 🎛️ Tunable. Expose only the toolsets you need, which keeps the model's context small and focused.
  • 🧪 Tested. The test suite runs against a mock Octopus REST API and GraphQL APIs on every build.

Quick start

You need Docker, an Octopus Energy account (with a smart meter for usage data) and an MCP client such as Claude Code.

1. Get your API key from [Personal details → API access](https://octopus.energy/dashboard/new/accounts/personal-details/api-access) in your Octopus account. Note your account number (A-1234ABCD) too.

2. Set up and start the server.

mkdir octopus-mcp && cd octopus-mcp

curl -fsSLO https://raw.githubusercontent.com/mattoddie/octopus-mcp/main/compose.yaml curl -fsSL https://raw.githubusercontent.com/mattoddie/octopus-mcp/main/example.env -o .env

Edit .env: set OCTOPUS_API_KEY, OCTOPUS_ACCOUNT

and a random MCP_AUTH_TOKEN (e.g. openssl rand -hex 32)

docker compose up -d docker compose exec octopus-mcp /octopus-mcp status # checks the API key

3. Connect your assistant.

claude mcp add --transport http octopus http://<docker-host>:8080/mcp \

--header "Authorization: Bearer "

Now ask *"What tariff am I on, and what's my electricity price right now?"* in Claude Code.

Using Claude Desktop on a Mac or Windows PC? You don't need Docker at all. Download the .mcpb bundle for your computer from the latest release, open it, and enter your API key in the settings. See Claude Desktop.

Using VS Code, Cursor or Codex? See Connecting MCP clients. Prefer not to run a service? Use stdio mode with docker run -i or the local binary.

octopus-mcp is listed in the MCP Registry as io.github.mattoddie/octopus-mcp, so clients that install from the registry can find it there, with the Docker image and the bundles.

Turning on changes

Out of the box the assistant can look but not touch. To let it change Intelligent Octopus charging settings, start a bump charge and join Saving Sessions, add this to .env and restart:

OCTOPUS_ALLOW_WRITES=true

OCTOPUS_TOOLSETS=account,consumption,tariffs,intelligent,octoplus # optional: expose fewer tools

Octopus API keys can't be limited to read-only, so this switch, enforced by octopus-mcp, is what keeps the assistant read-only. Read Security before turning it on. To keep a record of every change the assistant makes, set OCTOPUS_AUDIT_LOG to a file path (see Audit log).

What it can do

ToolsetWhat's covered
accountThe account overview (properties, MPAN/MPRN, meter serials, smart meter device IDs, current tariffs), balance, bills and transactions
consumptionSmart meter usage for electricity import and export and gas, by half-hour, hour, day, week or month, with cost estimates; live demand from a Home Mini
tariffsProducts on sale, prices by region, half-hourly unit rates (Agile, Go and more), standing charges, the cheapest times to use electricity, region by postcode. No account needed
intelligentIntelligent Octopus cars and chargers: status, schedule, planned and completed charging slots; with writes, target and ready-by time, bump charge, smart control
octoplusOctoplus points, Saving Sessions with rewards and results; with writes, joining a session
rawEscape hatches: any GraphQL query (mutations only with writes) and any REST GET

See the [tool reference](docs/tools.md) for every tool and argument. Ready-made prompts like energy_report, plan_cheap_usage and compare_tariffs chain the tools together for common jobs.

Documentation

The docs are also published at [octopus-mcp.mattoddie.dev/docs](https://octopus-mcp.mattoddie.dev/docs/), with search.

🚀 Getting startedStep-by-step setup, from API key to first question
🔌 Connecting MCP clientsClaude Code, Claude Desktop, VS Code, Cursor, Codex, stdio mode
⚙️ ConfigurationEvery environment variable, how authentication works, Docker secrets, toolsets
🐳 DeploymentCompose, image tags, upgrades, TLS reverse proxy, hardening, running without Docker
💬 Using octopus-mcpExample conversations, prompts, units, cost estimates, gas in m³, EV charging, Saving Sessions
🧰 Tool referenceEvery tool and prompt, generated from the code
🛡️ SecurityThreat model, the API key, safe write setups
📡 CompatibilityThe Octopus APIs, meters and tariffs, and known gaps
🩹 TroubleshootingCommon errors and how to fix them
🛠️ DevelopmentArchitecture, adding a tool, testing

Contributing

Contributions are very welcome, whether that's bug reports, docs or new tools. Read the contributing guide to get started, and please follow the code of conduct. To report a vulnerability, see the security policy. Please don't open a public issue for one.

License

MIT © Matt Oddie

*octopus-mcp is an independent community project. It is not affiliated with, endorsed by or sponsored by Octopus Energy Ltd or Kraken Technologies Ltd. "Octopus Energy", "Agile Octopus", "Intelligent Octopus", "Octoplus" and related names are trademarks of their owners and are used here only to describe what the software works with.*

问 PopNx