PlugPence
This server has a remotely hosted endpoint. Open its connector listing for connection details, authentication requirements, and setup instructions:
PlugPence ππ·
What does it cost to run? Exact running costs for UK household appliances, from kettles to tumble dryers, for people on the web and for AI assistants via MCP.
π Live: plugpence.netlify.app Β· MCP server: https://plugpence.netlify.app/mcp
Why
With high energy bills, people constantly wonder "What does my tumble dryer cost per load?" or "Is the air fryer cheaper than the oven?". The maths is simple, but people (and AI chatbots) often get it wrong. PlugPence gives the exact answer, in pence and pounds, using the current UK price cap or the unit rate from your own bill.
Related MCP server: io.github.ufhouck/aicost-cli
Features
One appliance: cost per use, week, month and year, plus "Β£1 runs it forβ¦"
Compare: air fryer vs oven, tumble dryer vs heated airer⦠ranked, with the saving per use and per year
My home: the yearly cost of all your appliances, biggest first, with each one's share
Your own numbers: enter your appliance's watts (from its label) and your price per kWh (from your bill)
35 typical UK appliances across kitchen, laundry, heating, entertainment, lighting and more
Up-to-date prices: the built-in Ofgem price cap table switches automatically on the date the cap changes
Use with AI: a built-in MCP server, so Claude, Cursor and other assistants can call the same calculators
No API keys, no database, no AI service, no tracking. Everything is calculated in code.
Use with AI (MCP)
PlugPence is a remote MCP server at:
https://plugpence.netlify.app/mcpClaude Code
claude mcp add --transport http plugpence https://plugpence.netlify.app/mcpCursor (.cursor/mcp.json)
{ "mcpServers": { "plugpence": { "url": "https://plugpence.netlify.app/mcp" } } }Other apps: add the URL above wherever the app lets you add a remote MCP server (for example as a custom connector).
Then ask things like:
"Is it cheaper to cook chips in my air fryer or the oven?"
"How much does my tumble dryer cost a year if I use it 4 times a week?"
"How long can I run my oil heater for Β£1?"
"I pay 24.5p per kWh. What does a 10-minute electric shower cost?"
Tools
Tool | What it does |
| Cost of running one appliance for a time or number of uses, with optional weekly, monthly and yearly totals |
| Compares 2β4 appliances, cheapest first, with the saving per use and per year |
| How long Β£X runs an appliance, or how many loads it pays for |
| Yearly cost of several appliances, biggest first, with each one's share |
| Every appliance PlugPence knows, optionally by category |
| Typical power, typical use, cost per use and a money-saving tip |
| The price per kWh being used, its dates, and the next known change |
All tools are read-only and optionally take watts (your appliance's power) and price_per_kwh (your unit rate in pence). Each returns both a plain-text answer and structured JSON (structuredContent).
How it works
flowchart LR
U[Browser<br/>React + Vite] --> C[src/core<br/>appliances Β· prices Β· calc]
A[AI assistant<br/>Claude Β· Cursor] -->|POST /mcp<br/>JSON-RPC| F[Netlify Function<br/>MCP server]
F --> CThe website and the MCP server share the same calculation code (src/core), so they always give identical answers.
The maths: cost = power (kW) Γ hours Γ price per kWh. A 3,000 W kettle running for 3 minutes uses 0.15 kWh, which at 26.32p per kWh is about 3.9p. Washing machines, dishwashers and dryers are worked out per load instead.
The MCP server is written from the MCP specification with no dependencies. It is a stateless Streamable HTTP endpoint that:
answers JSON-RPC requests (
initialize,ping,tools/list,tools/call) with a single JSON responsereturns
202 Acceptedfor notifications and405forGET(no server-sent event stream)negotiates protocol versions
2025-11-25,2025-06-18and2025-03-26, and rejects unsupportedMCP-Protocol-Versionheadersvalidates the
Originheader (DNS-rebinding protection) and limits request sizereturns bad input as a tool error (
isError: true) so the AI can correct itself and retry
Prices
By default PlugPence uses the Ofgem energy price cap: the GB average electricity unit rate for Direct Debit customers on a standard variable tariff.
Period | Unit rate | Standing charge |
1 Oct β 31 Dec 2026 | 26.32p per kWh | 54.83p per day |
1 Jan β 31 Mar 2027 | 32.69p per kWh | 54.77p per day |
The standing charge is paid daily whatever you use, so it isn't part of an appliance's running cost. To add a new quarter, add a row to src/core/prices.js.
Typical, not exact: appliance figures are typical values. Real appliances vary, so enter your own watts and unit rate for exact costs.
Project structure
βββ src/
β βββ core/ # Shared, pure logic: appliances, prices, calculations
β βββ components/ # React UI: calculators, price bar, Use with AI
β βββ App.jsx
βββ netlify/
β βββ functions/mcp.mjs # MCP endpoint at /mcp
β βββ lib/ # MCP protocol handling and tool definitions
βββ tests/ # node:test suites (calculations + MCP protocol)
βββ netlify.tomlRun locally
Requires Node 20+ (22 recommended).
git clone https://github.com/mynk4121/PlugPence.git
cd PlugPence
npm install
npm run dev # website only, at http://localhost:5173
npx netlify dev # website + MCP server, at http://localhost:8888 (MCP: /mcp)
npm test # 27 testsTry the local MCP server with the MCP Inspector (npx @modelcontextprotocol/inspector), using the Streamable HTTP transport and the URL http://localhost:8888/mcp.
Deploy
Import this repository in Netlify and click Deploy. netlify.toml sets the build, the functions folder and security headers. There are no environment variables to set (optionally, MCP_ALLOWED_ORIGINS adds extra browser origins allowed to call /mcp).
Contributing
Contributions are welcome, especially new appliances. See CONTRIBUTING.md for a 3-line guide, and the good first issues to get started.
License
MIT. Price data: Ofgem energy price cap.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
This server cannot be deployed
Maintenance
Related MCP Connectors
Real-time electricity price signals for AI agents. Spot prices, cheapest hours, and contract recommendations. 31 countries across Europe and Oceania. No authentication required.
UK solar PV and heat pump calculators that follow the published MCS methods. Open, no key.
Estimate the payback of a UK home battery from your usage, tariff and battery choice. Also returns sourced battery specifications and UK tariff data. Read-only, no API key.
Real-time electricity prices for AI agents. 40+ countries, 100+ zones. No auth required.
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides real-time electricity grid data including CO2 intensity, power mix, and wholesale prices, plus optimal green time windows for energy-intensive AI tasks. Supports UK, Germany, and global regions with optional API keys.9MIT
- AlicenseAqualityBmaintenanceEnables AI agents to calculate, compare, and recommend AI API costs from multiple providers, with support for currency conversion and platform fee analysis.81MIT
- FlicenseNot gradedqualityCmaintenanceProvides real-time electricity prices, cheapest hours, and contract comparison for 40+ countries, enabling AI agents to make energy-aware decisions.5-
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to query UK energy tariffs and products via the Octopus Energy public API.65 npmMIT