Skip to main content
Glama
olympia-thermostat-mcp

olympia-thermostat-mcp

README.md
# olympia-thermostat-mcp

MCP server and small CLI for Olympia Electronics Wi-Fi thermostats (BS-850 / BS-851).
It talks to the cloud API the Olympia mobile app uses. That API is unofficial and may change.

Standard library only (Python 3.9+). No install step.

## Tools

| Tool | What it does |
| --- | --- |
| `status` | Mode, room temperature, setpoint, burner, hot-water boiler, online. Read-only. |
| `set_temperature` | Target temperature, 5 to 30 °C. |
| `set_mode` | Heating `heat` or `off`. |
| `set_boiler` | Hot-water boiler output on or off. |

Writes send the full settings and keep the fields you did not change. Every tool takes an
optional `device` (id or name), needed only when the account has several thermostats.

## Credentials

Only from the environment, never printed, logged or returned by a tool:

- `OLYMPIA_EMAIL`, `OLYMPIA_PASSWORD`: your Olympia app login.
- `OLYMPIA_DEVICE` (optional): default thermostat id or name.

## MCP client config

```json
{
  "mcpServers": {
    "olympia-thermostat": {
      "command": "python3",
      "args": ["/path/to/olympia-thermostat-mcp/olympia_mcp.py"],
      "env": { "OLYMPIA_EMAIL": "...", "OLYMPIA_PASSWORD": "..." }
    }
  }
}
```

The server speaks MCP over stdio (newline-delimited JSON-RPC).

## CLI

```
python3 olympia.py status
python3 olympia.py temp 21.5
python3 olympia.py mode heat|off
python3 olympia.py boiler on|off
python3 olympia.py --dry-run temp 21.5    # show what would be sent, send nothing
```

## Tests

`python3 -m unittest test_olympia test_mcp` runs the CLI and the MCP server against a local fake API.

API calls are based on the MIT-licensed
[ncmarks/homeassistant-olympia-electronics](https://github.com/ncmarks/homeassistant-olympia-electronics).

TDQS

A3.7/5.0

Scored across 4 tools

Disambiguation5/5

Each tool targets a clearly distinct function: read-only state (status), temperature setpoint (set_temperature), heating mode (set_mode), and hot-water boiler output (set_boiler). The descriptions explicitly separate mode/heat from boiler control and note that other settings are preserved, so an agent can choose correctly without guessing.

Naming Consistency4/5

Three of four tools follow a clean set_<attribute> pattern (set_temperature, set_mode, set_boiler), which is predictable and readable. The lone read tool is named 'status' rather than something parallel like get_status, a minor but harmless deviation.

Tool Count5/5

Four tools is well-matched to the narrow scope of a single thermostat: read state plus three independent write operations. Nothing is redundant and nothing feels padded.

Completeness4/5

The core control and observability lifecycle (read status, setpoint, mode, boiler) is fully covered with no dead ends for basic operation. Minor gaps remain for likely adjacent features such as schedules/absence overrides or a boost/timer, but agents can work around these with the existing tools.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues