Skip to main content
Glama
README.md
# zont-mcp

**[README на русском](README.ru.md)**

A local MCP server that gives AI assistants natural-language control over ZONT heating systems (BAXI Connect+ and compatible controllers) — reading state, switching modes, boiler telemetry, diagnostics and configuration writes.

## Demo

A conversation once the server is connected to any MCP client (Claude, Cursor, VS Code, …):

```
You:      Any boiler errors right now? If yes — what should I do?
Assistant: (calls get_boiler_errors)
          No active faults. Fault flags: none.
          Telemetry: flow temp 54.2 °C, setpoint 55 °C, modulation 34%, status: ch, flame.

You:      We're cold. Run a diagnosis.
Assistant: (calls diagnose_heating)
          Status: warning. The "Boiler circuit" has no active mode — it was
          lost after a controller reboot. Fix: enable the mode.
          (calls set_heating_mode, then get_device_state to verify)
          Done — mode "Comfort" is active, target 21.5 °C.
```

How it works:

```
┌─────────────┐   MCP (stdio)   ┌──────────┐   HTTPS    ┌─────────────────┐
│ AI assistant │ ◄──────────────► │ zont-mcp │ ─────────► │  ZONT cloud API │
└─────────────┘                  └──────────┘            └────────┬────────┘
                                                                     │
                                                            ┌────────▼────────┐
                                                            │  ZONT controller │
                                                            │  + boiler (bus)  │
                                                            └─────────────────┘
```

The server runs locally, opens no network ports and talks to exactly two official
ZONT endpoints over HTTPS (`my.zont.online/api` and `lk.zont-online.ru/api`).

## Quick start

Requirements: Python 3.11+, a ZONT account (zont-online.ru) with a registered device,
any MCP-compatible client.

```bash
pip install zont-mcp        # from PyPI (Python Package Index)
# — or from source —
git clone https://github.com/MAB2908/zont-mcp.git && cd zont-mcp
python -m venv .venv && source .venv/bin/activate   # Windows: .venv\Scripts\activate
pip install -e .
```

Get your API token: set `ZONT_LOGIN` + `ZONT_PASSWORD`, run `zont-mcp` once —
the token is printed to stderr; then keep only the token.

Add to your MCP client (Claude Desktop `claude_desktop_config.json` shown; Cursor,
VS Code and others use the same fields — see [docs/setup.md](docs/setup.md) for all snippets):

```json
{
  "mcpServers": {
    "zont": {
      "command": "zont-mcp",
      "env": {
        "ZONT_CLIENT_EMAIL": "your@email.com",
        "ZONT_TOKEN": "your_token"
      }
    }
  }
}
```

Ask your assistant:

```
Show the list of my ZONT devices.
```

Credentials live only in environment variables / a local `.env` file — never in
code. Full installation and configuration guide: [docs/setup.md](docs/setup.md)
([по-русски](docs/setup.ru.md)).

## Features

- **38 tools in 7 groups**: device state, heating control, I/O and guard zones, history, analytics, configuration, commands & archives
- **Boiler OpenTherm telemetry** — flow temperature, setpoint, burner modulation, status flags
- **Diagnostics with recommendations** — known failure signatures: lost bus connection, mode reset after reboot, low pressure, dead radio sensors
- **Configuration writes at web-cabinet level** — circuits, modes, sensors, weather-compensation curve; every write is backed up and verified by re-reading
- **Works with any MCP client** — Claude Desktop, Claude Code, Cursor, VS Code, ZCode
- **Safety by design** — dangerous firmware commands (restart, deletion, SMS/calls) deliberately excluded; device passwords masked in responses

## Comparison

The closest analogue is [`defanator/zont_api`](https://github.com/defanator/zont_api) —
a Python library for the ZONT API. `zont-mcp` used it as a knowledge source for the
`z3k_boiler_adapter` data format.

| Aspect | defanator/zont_api | zont-mcp |
|--------|--------------------|----------|
| Purpose | Python library for developers | MCP server for AI assistants |
| Interface | `import zont_api` in code | Natural language via any MCP client |
| Boiler control | No | Yes — modes, temperatures, relays |
| Configuration writes | No | Yes — circuits, modes, sensors, weather curve |
| Radio sensor history | No | Yes |
| Diagnostics & analytics | No | Yes |
| Event journal | No | Yes |
| Prometheus exporter / CSV | Yes | No |
| Tests | pytest, tox, CI | unittest + GitHub Actions |

Choose `zont-mcp` when you want to *talk* to your heating system; choose
`zont_api` when you build your own Python software against the API.

## Documentation & more examples

| Document | Purpose |
|----------|---------|
| [docs/setup.md](docs/setup.md) | Full installation guide: token, all MCP clients, troubleshooting ([по-русски](docs/setup.ru.md)) |
| [AGENTS.md](AGENTS.md) | Working rules for AI agents (English + [Russian](AGENTS.ru.md)) |
| [CAPABILITIES.md](CAPABILITIES.md) | Everything the server can and cannot do; z3k command dictionary |
| [examples/heating-check/](examples/heating-check/) | Example: full diagnostic session |
| [examples/vacation-mode/](examples/vacation-mode/) | Example: "leaving for a week" scenario |
| [examples/python-client/](examples/python-client/) | Example: use the API client directly from Python |
| [CHANGELOG.md](CHANGELOG.md) | Release history (English + Russian) |
| [SECURITY.md](SECURITY.md) | Credential handling, vulnerability reporting |

## Badges

[![PyPI](https://img.shields.io/pypi/v/zont-mcp)](https://pypi.org/project/zont-mcp/)
[![Python 3.11+](https://img.shields.io/badge/python-3.11+-blue.svg)](https://python.org)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
[![Tests](https://github.com/MAB2908/zont-mcp/actions/workflows/tests.yml/badge.svg)](https://github.com/MAB2908/zont-mcp/actions/workflows/tests.yml)
[![MCP](https://img.shields.io/badge/MCP-compatible-green.svg)](https://modelcontextprotocol.io)

## Contributing

See [CONTRIBUTING.md](CONTRIBUTING.md) — how to set up the project, run tests and
submit changes. Simple starter tasks are marked
[`good first issue`](https://github.com/MAB2908/zont-mcp/labels/good%20first%20issue).

## License

MIT — see [LICENSE](LICENSE). This is an independent project, not affiliated with
ZONT or Micro Line; it uses only the official public ZONT API.

TDQS

A3.6/5.0

Scored across 38 tools

Disambiguation4/5

Most tools target clearly distinct resources/actions (per-datatype history tools, per-subsystem getters, distinct setters for single vs all circuits vs temporary mode). A few boundaries blur: get_system_summary overlaps get_device_state + get_sensors + get_heating_circuits, get_heating_circuits overlaps get_config(section=heating_circuits), and send_custom_command/run_scenario/change_web_element all touch 'custom controls'. Descriptions mostly disambiguate these, so an agent can recover.

Naming Consistency4/5

Nearly all tools use snake_case verb_noun (get_*, set_*, update_*, get_*_history), which is predictable. Minor deviations exist: set_device_name vs update_device_settings both rename the device, and change_web_element uses 'change_' while peers use 'set_/update_'. These are small inconsistencies but the overall pattern is clear.

Tool Count3/5

38 tools is heavy (well above the 3-15 sweet spot) and pushes toward the 25+ 'too many' band. The domain is genuinely complex (heating circuits, sensors, boiler, guard zones, history, config, archives, scenarios), so most tools earn a place, but two are declared no-ops (set_dhw_temperature, update_mode_temperatures), suggesting some bloat.

Completeness4/5

The surface is broad and lifecycle-rich: discovery, state, config, multiple history/event feeds, diagnostics, energy analysis, archives, and configuration writes with verification. Gaps are mostly protocol-imposed dead ends (DHW control unsupported, no weather-curve creation, mode-temperature edits unsupported), which agents can work around via the web cabinet.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues