ampworth-cli
Officialampworth
The command line for Ampworth: UK solar PV and heat pump calculators that follow the published MCS standards and show their working, and the guides that explain them. It also runs as a local MCP server, so AI assistants can use the same tools.
$ ampworth run heat-pump-size --location birmingham --annual-fuel-use 12000 --bedrooms 3 --quoted-heat-pump-kw 12
Estimated peak heat loss: 3.5 kW, so the heat pump has to deliver at least that at -3.2 C outside and 45 C flow.
...It's a thin client for Ampworth's public API. The calculations run on ampworth.com, so the CLI always gives the same answers as the website, and it needs an internet connection.
Install
With Homebrew, on macOS or Linux:
brew install ampworth/tap/ampworthWith Go 1.27 or later:
go install github.com/ampworth/cli/cmd/ampworth@latestOr download a binary for macOS, Linux or Windows from the releases page.
Related MCP server: unofficial-solaredge-mcp
Use
ampworth list # the calculators
ampworth describe solar-pv-output # the fields a calculator takes
ampworth run solar-pv-output --postcode "BS1 5TR" --capacity-kwp 4.4 --orientation 30 --inclination 35
ampworth search "flow temperature" # search the guides, articles and questions
ampworth docs --kind guide # list the documents
ampworth read guides/sizing-a-heat-pumpFields are flags named after the calculator's fields, in kebab case
(--capacity-kwp) or as written in the API (--capacityKwp). A field that
takes a list, such as a room's elements, takes its JSON array as the value. A
yes-or-no field given on its own, such as --include-battery, means yes.
Add --json to any command for the API's JSON instead of text. Use
--api <url>, or set AMPWORTH_API, to point at a different copy of the API.
Calculators
Calculator | What it works out | Method |
| The solar array a home needs, with panels, battery and savings, from a postcode, roof direction and a year of electricity use | MIS 3002 |
| A house's heat loss from its fuel bills, and whether a quoted heat pump looks the right size | MIS 3005-D |
| Annual generation of a known array | MIS 3002 |
| Shade factor from the sunpath chart | MGD 005 |
| How much generation is used at home, with or without a battery | MGD 003 |
| Design heat loss for one room | MIS 3005-D |
| The flow temperature a radiator needs | MGD 007 |
| Hot water demand and cylinder size | MIS 3005-D |
| Sound level at a neighbour's window, for permitted development | MCS 020 |
| Running cost compared with the current fuel | MCS 007 |
| Whether solar panels and batteries can connect under G98 or need G99 approval | ENA EREC G98 / G99 |
The list comes from the API each time, so a calculator added to Ampworth appears here without a new release.
Use it with an AI assistant
ampworth mcp runs a local MCP server over standard input and output, with
every calculator as a tool, plus list_calculators, search_documents,
get_document and list_documents. Add it to any client that starts local
servers:
{
"mcpServers": {
"ampworth": {
"command": "ampworth",
"args": ["mcp"]
}
}
}Claude Code:
claude mcp add ampworth -- ampworth mcpIf your client connects to remote servers, you don't need the CLI: use
https://ampworth.com/mcp directly. See
ampworth/mcp. For guided workflows, such as
checking a heat pump quote, see ampworth/skills.
Data
The CLI sends only the inputs each request needs, such as a postcode, a roof
direction or a year of energy use, to https://ampworth.com/api/v1. It stores
nothing and sends nothing else. The server works the answer out and doesn't
store the request. Like any web server, it keeps a request log for 30 days.
The privacy policy has the details.
Scope
The methods and data cover the United Kingdom only. The answers are for understanding a system and checking a quotation. An installation still needs a survey and a design from a certified installer. Ampworth isn't affiliated with MCS, sells nothing and recommends no installer.
Releasing
Releases run on a Mac, because the macOS binary is signed with codesign and
notarised with notarytool, using credentials in the keychain:
Once:
make notary-setupstores a notarytool profile with your Apple ID and an app-specific password. The Developer ID Application certificate must be in the keychain too.make tag VERSION=v0.2.0tags the version and pushes the tag.make release-checkchecks everything a release needs.make releasebuilds every binary, signs and notarises the macOS one, publishes the GitHub release, and updates the cask in ampworth/homebrew-tap.
It uses your gh login for GitHub. Optional settings are in
.env.release.example.
Support
Email support@ampworth.com or open an issue. Terms of use.
Licence
MIT.
This server cannot be deployed
Maintenance
Related MCP Connectors
UK solar PV and heat pump calculators that follow the published MCS methods. Open, no key.
UK solar PV and heat pump calculators, with guides, on one server. Follows the MCS methods. No key.
151Solar, weatherization, EV charging, battery and heat-pump decision tools for AI agents.
NREL MCP — wraps the US National Renewable Energy Laboratory developer API
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceUK property data MCP server for AI hosts (Claude, ChatGPT). Wraps Land Registry, Rightmove, EPC, rental yields, stamp duty, and Companies House into 13 tools.2MIT
- AlicenseAqualityCmaintenanceA lean Model Context Protocol (MCP) server that gives AI assistants like Claude structured access to a SolarEdge PV installation via the official SolarEdge Monitoring API.4MIT
- AlicenseAqualityDmaintenanceAn unofficial MCP (Model Context Protocol) server that exposes a Vaillant heat pump's data to AI assistants like Claude. Query outdoor and room temperatures, hot water status, energy consumption, COP estimates, schedules, and diagnostics through natural conversation.4MIT
- AlicenseAqualityBmaintenanceMCP server for the entire Shelly smart-home ecosystem, enabling local-first control, automation, and energy monitoring of Shelly devices with cloud fallback.4733 PyPIMIT