
Octopus Energy (octopus-mcp)
io.github.mattoddie由 GitHub 账号 mattoddie 发布v0.3.1更新于 Oct 29, 2026
Octopus Energy usage and costs, tariffs, Agile prices, bills, EV charging and Saving Sessions
发布方自己的服务:Octopus.do
概览
面向英国 Octopus Energy 用户的非官方 MCP 服务器,让助手读取智能电表用量、费用、电价与账单,并可选管理电动车充电和 Saving Sessions。
- 可以做什么
- 读取账户信息、余额、账单与交易记录
- 按半小时、小时、日、周或月查询电表用电(进口、出口)与燃气用量,并给出费用估算和 Home Mini 实时负荷
- 查询在售电价方案、地区价格、半小时 Agile 电价、固定费用以及最便宜用电时段
- 查看 Intelligent Octopus 车辆与充电桩状态、日程和充电时段
- 查看 Octoplus 积分与 Saving Sessions,开启写入后可设置充电目标、启动补电或报名场次
- 通过原始 GraphQL 查询和 REST GET 作为备用手段
- 适用场景
- 适合拥有智能电表的英国 Octopus 用户,想用自然语言了解用电花费、Agile 电价、燃气用量或电动车充电安排,并可能希望助手调整充电或报名 Saving Sessions。
- 运行要求
- 以 Docker 镜像、Claude Desktop 一键扩展包或独立二进制在本地运行;需要 Octopus Energy 账户,用量数据还需智能电表。需要 OCTOPUS_API_KEY 密钥,通常还需 OCTOPUS_ACCOUNT;可选 OCTOPUS_ALLOW_WRITES、OCTOPUS_TOOLSETS、OCTOPUS_AUDIT_LOG 和 MCP_TRANSPORT。HTTP 方式还需 MCP_AUTH_TOKEN 作为 Bearer 头。
安装
在 SourceWeft 中
- 打开 控制台中的 Octopus Energy (octopus-mcp),将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
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.
[!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) forlinux/amd64andlinux/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 fordocker 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 in your Octopus account. Note your account number (A-1234ABCD) too.
2. Set up and start the server.
3. Connect your assistant.
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 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
See the tool reference 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, with search.
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.
来源:README.md,提交 224d3b8
工具
0版本历史
1- v0.3.1最新Oct 22, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
其他 Octopus 集成
Octopus.do
do.octopus官方发布者
一个远程 MCP 服务器,让助手以已登录用户的身份读取和编辑 Octopus.do 可视化站点地图中的页面、区块和评审备注。

Codex Octopus
由 GitHub 账号 xiaolai 发布
封装 OpenAI Codex SDK,让助手把多个各自独立配置的 Codex 代理作为工具运行,每个代理有自己的模型、沙箱和指令。

Claude Octopus
由 GitHub 账号 xiaolai 发布
封装 Claude Agent SDK,让助手以 MCP 工具形式运行多个独立配置的 Claude Code 智能体,并提供时间线、会话记录和报告。

Octopus Energy
由 GitHub 账号 pipeworx-io 发布
Octopus Energy 公共 API MCP — 英国能源资费与产品。AI 翻译

Octopus Blackboard
由 GitHub 账号 octoryn 发布
一个本地优先的共享黑板,让多个 AI 编程代理在同一仓库上记录认领、任务、决策、消息和提交归属。