MCP4KNX (“MCP for TUL”) is firmware for the busware TUL that lets an AI agent commission KNX devices — not just talk to them, and without ETS. The stick is its own MCP server; two services in your own network add the manufacturers’ product data and the installation’s record.
Need the hardware? busware TUL — TPUART USB module. Pick the ESP32-C6: the C3 runs this firmware but has far less headroom, and it is being phased out. The TUL is a hardware platform for your own projects and ships without firmware; this firmware is free, you install it yourself, and busware provides no support for it.
On a TULX, which has no USB for its user, this firmware is installed from its recovery system: install.busware.de/tulx/.
Flash it right here. Chrome, Edge or Opera. Wi-Fi follows in the same USB session, via Improv — no captive portal, no rebuild.
busware TUL hardware only (shop.busware.de/tul). This page reads the stick first and writes the firmware together with a pass issued for that one device; on anything else the firmware refuses to start. The pass ties this firmware to busware hardware, whose sales fund its development. It also keeps an image off a board it was not built for: the KNX pins differ per product, so an image that drove the wrong ones would drive somebody's bus.
Most gateways relay group telegrams: they talk to devices somebody else configured with ETS. This firmware speaks the connection-oriented management services ETS itself uses. It can give a device its individual address, read and write its memory and properties, drive its Load State Machines, install its address and association tables, restart it so the change takes effect, and change device parameters — from one tool surface an agent can call.
Installing a table is the dangerous part, so it is one operation: open the load session, write in chunks that are each verified by read-back, close the session, restart. Nothing outside can interrupt it half-way, and the close runs even when a write fails. That matters because a device left mid-download is not merely unconfigured — while its table is not loaded it resolves no group address at all, and a power cycle does not reliably get it out of there.
It also reads an installation it did not build: a passive survey of everything it hears, and an active sweep that finds the devices on a line and reads back the identity that maps each one to its product file.
On top of that it publishes what it hears to MQTT, renders Home-Assistant discovery, and answers MCP itself, so an agent talks to the stick directly over your LAN.
In a KNX installation, ETS does four jobs: it holds the manufacturers’ product data, keeps the project, programs the devices and helps diagnose the bus. Here they are spread over the firmware and two services you run yourself, and none of them needs ETS:
| Product data | knxprod-mcp
reads the .knxprod files you supply: which product an ApplicationId
is, its com objects, its parameters with memory address and value meanings, and
what raw memory bytes decode to. |
|---|---|
| Individual address | The stick checks that the address is free and that exactly one device is in programming mode, writes the address, verifies it and takes the device out of programming mode. |
| Group addresses | The address and association tables are built from the links and installed as one operation: load session, chunks verified by read-back, close, restart. |
| Parameters | The load procedure comes from the device’s product file; the parameter is written inside a load session, verified by read-back, and the device restarted. |
| Project | knxproject-mcp keeps the installation’s record between conversations: topology, devices, group addresses, links, parameters and the owner’s decisions, each with its source. |
| Diagnostics | A passive survey of every telegram on the line, an active sweep for the devices on a line, and each device’s identity, properties and memory read back. |
The whole chain — address, tables, parameter, restart — is documented end to end on a Merten 649802 blind actuator: in the example below, and with every wrong turn in the session write-up (German). A device with another load procedure is a new case: let the agent run it as a dry run first.
Where ETS is still the tool:
.knxproj, and cannot read one yet. It imports ETS
group-address exports (ESF), ETS3 project databases, and Home Assistant and
FHEM configurations.http://busware-knx-<id>.local/ — it shows its mDNS name,
both addresses, its hardware identity, and the ready-made command below.claude mcp add --transport http busware-knx \
http://busware-knx-<id>.local/mcp
Any MCP client works; the endpoint is plain JSON-RPC 2.0 over HTTP POST.mqtt-set_creds {"broker": "mqtt://<host>:1883"}
Plain mqtt:// or ws://, with user and
pass if the broker wants them; TLS is not supported.The stick works without a password, and then anyone on your network can use it;
its page says so and offers to set one. Without one it answers only under its IP
address or its .local name. Once set, its pages and its MCP endpoint
need it, and scripts and agents send it as
Authorization: Bearer <password>. If you forget it, plug the stick
in again, open this page over USB within 30 seconds and press Visit device;
holding the stick is the proof. The stick’s web server speaks plain HTTP, so use it
on a network you trust.
A stick that already runs this firmware is updated over the network, not
through this page: open its own update page,
http://busware-knx-<id>.local/update, upload the image for its
chip and press Reboot once the upload has finished. Current images
(0.26.0): ESP32-C6
· ESP32-C3.
The pass and the stored settings stay on the stick. A stick that still runs a
version before 0.24.0 answers no_ota_partition and needs one more
pass through the flasher above.
The update replaces the firmware; the skill document an agent reads from the
stick stays as it was. To bring it in line, upload the
skill for
0.26.0 (one file for both chips) — no reboot needed; with a password set, add
-H "Authorization: Bearer <password>":
curl --data-binary @busware-tul-mcp-0.26.0.SKILL.md \
"http://busware-knx-<id>.local/api/skill?name=SKILL.md"
Off until you switch it on. Tick Remote access (claude.ai) on the stick’s own page: it dials out to the busware relay, with no port forwarding, and shows a connector URL to add in claude.ai. Each connection attempt is approved with a one-time code that only the stick’s page shows, and the tools that change the stick’s own security state stay local-only. More.
The stick knows the bus. What a com object means, and what an installation is, it gets from two services you run in your own network. It finds them by itself (DNS-SD) and hands their tools and skills to your agent — on your network and through remote access alike.
| knxprod-mcp | Product data, read-only prod-* tools. It reads
the manufacturer product files (.knxprod) you put into its folder or
upload from the stick’s page. The files stay on that service; it ships no
manufacturer data. |
|---|---|
| knxproject-mcp | Project record, proj-* tools: topology, devices,
group addresses, links and parameters, each with its source, plus the owner’s
decisions, notes and history. The tools that write change the record, never the
bus; proj-read-device reads one device through the stick, when
asked. |
Both are Docker containers for a Linux machine next to the stick — tested on a Raspberry Pi 5 and on an x86-64 server — and one Compose file starts both. Neither has a login: run them on a network you trust. How to run them.
| Tools | The stick’s admin verbs — address assignment, the passive survey and the active sweep, memory and property access, Load State Machines, table build/read and the atomic table install, device restart, group send, datapoint types, Home-Assistant projection, device parameters. Including what a device says about its own properties, so an agent can ask whether a write is permitted instead of finding out by trying it. |
|---|---|
| A skill | resources/read
skill://busware-knx-stick/SKILL.md — the commissioning runbook, the
Home-Assistant handover, and the device traps worth knowing before the first
write. |
| A safety model | Every mutating tool defaults to dry
run: it performs every read and withholds only the write, so its report
is truthful about whether the real thing would work. Danger classes C0–C3 are
reported per verb. With an admin password set, the stick’s pages and its MCP
endpoint need it; scripts and agents send it as
Authorization: Bearer. |
It does not guess product semantics. What a ComObject number
means, and where a parameter lives in a device’s memory, is in the manufacturer’s
.knxprod — not in this firmware. The stick gives an agent the
mechanism; the product file stays your input. A tool that invents a mapping here
would move somebody’s blinds for the wrong reason.
An actuator is wired to the bus and does nothing yet. There is no ETS project, no knxd, no gateway to configure. What you supply is the manufacturer’s product file; the rest is a conversation.
YouA blind actuator is on the bus. Its
product file is in ~/knxprod/. Put channel 1 into Home Assistant.
AgentFrom the product file, channel 1 needs four group objects: move up/down (DPT 1.008), stop/step (1.007), position (5.001) and the position status it sends back (5.001). I’ll use 1/1/1 … 1/1/4 unless you have an address plan. Dry run first — I read the device and show you the writes without performing them.
YouAddresses are fine. Go.
AgentBuilt the address and association tables and wrote them in a load session, then restarted the device. Channel 1 answers. Home Assistant now has a cover tile — up, down, stop, and a position slider.
YouThe slider jumps. It only shows a new height once the blind has stopped.
AgentThat is the actuator: it reports its position at the end of a travel, not during it. The discovery I published accounts for it, so the slider follows your input and corrects itself when the real value arrives. For the travel to be calibrated, the device needs its travel time — a parameter, not a group address.
YouTop to bottom takes 45 seconds.
AgentThe product file puts that parameter at a known memory address, 16 bit, in units of 100 ms. Written in a load session and the device restarted; it now reports intermediate positions. I also exposed it in Home Assistant, so next time you type the number there instead of asking me.
What was not involved: ETS, knxd, a project file, a gateway configuration, or a firmware rebuild. The one input that had to be yours is the manufacturer’s product file — it is where a ComObject number and a parameter address get their meaning, and the stick will not invent them. This sequence is the real one from the session this firmware was developed in, on a Merten 649802 blind actuator; the wrong turns it also contained are left out.