loxone-mcp-gen1
An unofficial MCP server for Loxone Miniserver Gen 1 that reads, analyzes, and safely edits copies of Loxone Config project files, with read-only live access and backups.
Open/list projects, pages, blocks; search, trace signals, and produce readable text views.
Compare project files with the last Miniserver backup and Config autosave.
Learn and inspect a catalog of block types/templates from your own projects.
Edit a working copy: add/clone/remove blocks, create placeholders, connect/disconnect, set parameters/inversions/positions, add pages, notifications, states/icons, virtual I/O, RS232, schedules, app display/structure entries.
Run multi-step changes atomically with build_plan and apply recipes.
Validate, lint, analyze, list changes, undo/discard, and save as a new file only.
Read-only Miniserver status, live values, history; back up the running program via FTP/Git; verify a load against the expected file.
Run layout optimization and read-only network discovery/check tools.
Never uploads to the Miniserver or overwrites project files; loading remains manual in Loxone Config.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@loxone-mcp-gen1 Open my main project and check whether it matches what's running on the Miniserver"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP server for Loxone Gen 1 · v0.9
Unofficial MCP server for the Loxone Miniserver Gen 1 (repository: mcp-server-for-loxone-gen1, formerly loxone-mcp-gen1)
An MCP server that lets an AI assistant (e.g. Claude) read, analyze and safely edit copies of Loxone Config project files (.Loxone) — including on a Miniserver Gen 1, which the official Loxone MCP does not support.
Unofficial. Not affiliated with or endorsed by Loxone Electronics GmbH. "Loxone" is a trademark of its owner. Use at your own risk.
Why
Most Loxone MCP servers can only control devices (switch lights, read states). This one works on the program: it understands pages, blocks, connections and placeholders, and can add and wire logic — always into a new file that you open in Loxone Config, check, and load into the Miniserver yourself. Loxone Config stays the final safety check.
Related MCP server: RemoteConnect MCP Server
Features
Area | Tools |
Read |
|
Catalog |
|
Edit logic |
|
Build plan |
|
Status with icons |
|
Peripherals |
|
App display |
|
Schedules |
|
Layout |
|
Network (read only) |
|
Rooms/categories |
|
Working copy |
|
Miniserver (read only) |
|
Analysis & recipes |
|
Tool descriptions are in English; result messages and build-plan keys are still German.
Requirements
Windows recommended (the icon library path defaults to Loxone Config's install folder; set
LOXONE_ICON_LIBRARYelsewhere). On other systems old versions are moved to a.loxone-papierkorbfolder instead of the recycle binPython ≥ 3.11 and uv
Loxone Config installed (for the icon library) and your project files
Optional: Git (for
backup_miniserver)
Setup
Add to your MCP client configuration (example for Claude Desktop):
{
"mcpServers": {
"mcp-server-for-loxone-gen1": {
"command": "uv",
"args": ["run", "--directory", "C:\\path\\to\\mcp-server-for-loxone-gen1", "server.py"],
"env": {
"LOXONE_PROJECTS_DIR": "C:\\Users\\<you>\\Documents\\Loxone\\Loxone Config\\Projects",
"LOXONE_HOST": "http://<miniserver-ip>",
"LOXONE_USER": "<user>",
"LOXONE_PASS": "<password>"
}
}
}
}Then, in the assistant: run catalog_learn once (it learns the block types from your project files) and project_set_main with a pattern for your project, e.g. my_home_v*.Loxone.
Settings
What | How |
Project folder |
|
Main project |
|
Catalog file |
|
Miniserver access (read only) |
|
Icon library |
|
Backup folder |
|
Safe workflow
project_open— check theabgleichfield: does the file match the Miniserver?Edit (ideally with
build_plan), thenproject_validate/project_lint.project_save("my_home_v23.Loxone")— always a new file. The project timestamp is set to now; otherwise Config would treat the Miniserver program as newer when loading.Open the new file in Loxone Config, decline the "automatic backup" prompt, check it, load it into the Miniserver.
verify_load(cleanup=True)— confirms the Miniserver runs exactly this file.
Known pitfalls (learned the hard way)
Loxone Config silently drops invalid connections. Input placeholders must use output
AQ(digital memories:Q).Config replaces
<and%in block titles with_.Querying
/dev/sps/io/<name>/stateon a virtual text input overwrites its text with "state". The live tools never query text inputs.System variables are fed via an output placeholder of the system variable, not via the
sourceattribute.Pages have no size in the file; the visible sheet is about 23,400 × 16,300 units. New blocks are placed inside it.
After loading, a Gen 1 Miniserver is unreachable (HTTP 503) for about a minute.
Status thresholds:
Cond01 means "greater than", 2 "greater or equal" – use 2 for thresholds, otherwise a value exactly on the threshold falls through.DayTimer entries sit directly in the object;
Ixis the position in the timer's mode list, not a fixed weekday. Config keeps only as many entries as the timer has modes. Room controller schedules live in<Timer N=…>andNmust equal the number of entries.Config drops
Defvalues on connected inputs and zero geometry values when loading; the comparison tools ignore both.Analogue Tree valve actuators report 0 % via
astate;statereturns the input value, whichlive_blockscales with SourceValHigh → DestValHigh.Zehnder ComfoAir (RS232) sends a data byte
0x07as07 07, which shifts all following bytes for fixed-position RS232 sensors.
What it deliberately does not do
It never uploads to the Miniserver and never overwrites your files. Loading stays in Loxone Config.
It sends no switching commands. Live access is a fixed whitelist of read-only requests (plus an FTP download for backups).
Safety and liability
Use it only on your own installation, or one you are authorized to change.
Every change is a proposal. Open each new file in Loxone Config, review it, and load it yourself. Do not load files you have not checked.
Heating, frost protection, water, smoke, alarm and access functions are safety-relevant. Do not rely on this tool alone for them; keep independent safeguards (thermostat limits, frost protection in the boiler, hard-wired smoke detectors, a qualified installer). Test after every change.
Keep a backup of the running program (
backup_miniserver) before loading a new version.Use a dedicated Miniserver user with minimal rights for the read-only live access. Never commit credentials;
settings.json,catalog.jsonand project files are git-ignored, and backups are stored outside the repository.The software is provided "as is", without warranty of any kind (see LICENSE). You are responsible for what you load into your Miniserver.
This project contains no Loxone software, icons, documentation or project files. Icons and block templates are read or learned locally from your own Loxone Config installation and projects.
Tests
uv run python tests/test_units.py # no project needed
uv run python test_smoke.py "C:\path\to\your\project.Loxone"License
MIT — see LICENSE.
Changelog
0.9.2 – Renamed to
mcp-server-for-loxone-gen1(MCP server name and package name; update the key in your MCP client config if you like). New section "Safety and liability".0.9.1 – App display tools (
state_style,app_set,structure_favorite,block_set_room_category,page_color_by_function); schedules (heating_schedule_set,schedule_set, build-plan opsheizplan,schaltuhr); build-plan opverschieben(move whole independent groups to another page); layered layout and crossing optimizer (layout2.py,layout_opt.py,layout_all.py); read-only network tools (net_check_outputs,net_find_device,yeelight_find,mijia_find);block_set_positionalso sets missing geometry;block_removeremoves user-permission references; live values of Tree valve actuators scaled correctly;verify_loadignores default values on connected inputs; unit test for DayTimer entries and permission references.0.9.0 –
page_add,notification_add, English tool descriptions, unit tests, recycle fallback outside Windows,build_planopstrennen,seite,mitteilung,kategorie_umhaengen,kategorie_loeschen; empty virtual outputs can be removed; parser accepts attributes starting with a digit (newer Config files).0.8.0 – first public release.
Available Tools
52 toolsbackup_miniserverA
Backs up the program currently running in the Miniserver (newest file in /prog via FTP, download only) as XML plus a readable text view into a local Git repository and reports what changed since the last backup. Nothing is stored if nothing changed.
Inputs: no named parameters.
block_addC
Adds a new logic block of a catalog type to a page (placed inside the sheet, not overlapping), optionally with parameter values.
Inputs: page (required), type (required), title (required), x, +2 more.
block_addable_typesB
Lists the block types that block_add can create safely.
Inputs: no named parameters.
block_cloneA
Adds a copy of an existing block with all settings and sub-objects to a page, without its connections. This also creates large blocks such as lighting controller, room controller or automatic blinds that block_add cannot create. Then wire it (block_connect) and check the settings.
Inputs: page (required), block (required), title (required), source_page.
block_connectC
Connects an output of one block to an input of another on the same page.
Inputs: to_block (required), from_block (required), page, to_connector, +1 more.
block_disconnectC
Removes a connection between two blocks on a page.
Inputs: to_block (required), from_block (required), page, to_connector, +1 more.
block_removeC
Deletes a block or placeholder from a page together with its connections.
Inputs: block (required), page.
block_set_invertedB
Inverts an input of a block or removes the inversion. A free, inverted input is permanently on (e.g. to lock something).
Inputs: block (required), connector (required), page, inverted.
block_set_paramsC
Sets connector default values, attributes (e.g. Formula, Title) or the description (name in the app) of a block.
Inputs: block (required), params (required), page.
block_set_positionA
Moves a block or placeholder on its page (x/y in Loxone units, grid 96; the sheet extends to about 23,400 x 16,300).
Inputs: x (required), y (required), block (required), page.
build_planA
Runs a whole build plan in one call - all or nothing. Each step is a dict with 'op' and its arguments, e.g. {"op":"baustein","typ":"And","titel":"Rain and open","seite":"Page 2","als":"and1"} or {"op":"verbinden","von":"ha_rain","nach":"$and1","nach_eingang":"I2","seite":"Page 2"}. Ops (German keys, see plan.py): baustein, kopie, status, eingang, befehl, rs232, platzhalter, verbinden, trennen, werte, negieren, anzeige, statistik, position, loeschen, peripherie_loeschen, seite, mitteilung, kategorie_umhaengen, kategorie_loeschen. 'als' names a new object, '$name' refers to it. Missing placeholders are created by 'verbinden'. Afterwards the result is validated; with save_as (new file name) it is saved if validation passes.
Inputs: steps (required), save_as.
catalog_get_typeC
Shows connectors, parameters and template of one block type.
Inputs: type (required), full_template.
catalog_learnB
Learns block types, connectors and templates from project files (needed once before editing).
Inputs: paths, reset.
catalog_list_typesC
Lists the block types known to the catalog.
Inputs: query, include_peripherals.
icon_findA
Searches the Loxone icon library by name or keyword (German keywords work best), e.g. 'sonne', 'regen', 'thermometer'. Returns name and UUID for state_add.
Inputs: query (required).
io_add_commandB
Adds a virtual output command under an existing virtual output (default 'Home Assistant'), e.g. a push: cmd_on='/api/webhook/?msg=Text'. With source and page it is wired there right away (output placeholder).
Inputs: title (required), cmd_on (required), page, parent, +3 more.
io_add_virtual_inputB
Adds a virtual input under 'Virtual inputs'. Values are set via HTTP (/dev/sps/io//), e.g. from Home Assistant. visu=True shows it in the app, unit is the display format (e.g. '<v.1>°'). text=True creates a text input (send the value URL-encoded; WARNING: querying /state on a text input overwrites it). desc is the name in the app. System variables are fed via an output placeholder of the system variable, not via 'source'.
Inputs: title (required), desc, room, text, +6 more.
io_set_displayC
Shows or hides an input, memory or constant in the app and sets its display format, e.g. '<v.1>°' or '%'.
Inputs: block (required), unit, visible.
io_set_statisticsC
Enables statistics for an analog input or memory (on every change, accumulated - as Loxone Config does for measurements) or disables it.
Inputs: block (required), enabled.
live_blockB
Current value of a block or device; for large blocks all outputs. Read only.
Inputs: block (required), page.
live_historyC
History of a block (e.g. why a blind moved: trigger and time). Read only.
Inputs: block (required), page.
live_pageC
Current values of the blocks on a page (read only, limited number of requests).
Inputs: page (required), max_values.
live_statusA
Read-only Miniserver status: last program change, CPU, memory, time.
Inputs: no named parameters.
notification_addB
Adds a Loxone notification (push/message in the Loxone app) and wires 'source' to it on 'page'. 'text' is the message sent on a rising edge of 'source'.
Inputs: page (required), text (required), title (required), source (required), +2 more.
page_addC
Adds a new, empty program page (after the last page), optionally with room and category.
Inputs: title (required), room, category.
periphery_removeA
Deletes an unused virtual input/output, an empty virtual output, a constant or the weather server. Refuses while the object is still used anywhere; permission entries are removed with it.
Inputs: block (required).
project_analyzeB
Analyses the project: errors, clean-up candidates and improvement suggestions (stufe = fehler | aufraeumen | verbesserung).
Inputs: stufe.
project_changesA
Lists all changes of the working copy compared with the opened file (new/removed blocks, connections, values).
Inputs: no named parameters.
project_discardB
Discards all unsaved changes of the working copy.
Inputs: no named parameters.
project_findC
Searches blocks by title/description, type, room, category or page.
Inputs: page, room, type, limit, +2 more.
project_get_blockB
Shows one block in detail: connectors, set values, sources and targets, and values that deviate from the usual defaults.
Inputs: block (required), page.
project_get_pageB
Shows one program page: its blocks, their settings and connections, with placeholders resolved.
Inputs: page (required), include_unconnected.
project_lintA
Pre-load check of the whole project (or working copy): errors Loxone Config drops silently (invalid placeholder outputs, dangling connections, placeholders without target) plus blocks outside the sheet, overlaps, titles with < or %, placeholders without connection.
Inputs: no named parameters.
project_list_filesA
Lists the Loxone project files (.Loxone) in the project folder, newest first.
Inputs: no named parameters.
project_list_pagesA
Lists all program pages of the open project with room, category and number of blocks.
Inputs: no named parameters.
project_openA
Opens a Loxone project file for reading and returns an overview (title, version, pages, most common block types). Without a path, the newest file of the main project is used (see project_set_main); a bare file name is looked up in the project folder. The field 'abgleich' compares it with the last Miniserver backup and the Loxone Config autosave. The file is never modified.
Inputs: path.
project_saveA
Saves the working copy as a NEW file in the project folder (never overwrites). Validation runs first; with errors nothing is saved. The project timestamp is set to now. Open the new file in Loxone Config, check it and load it into the Miniserver yourself.
Inputs: filename (required).
project_set_mainA
Defines which files belong to the main project (pattern with , e.g. 'my_home_v.Loxone'). project_open without a path then opens the newest matching file. Without pattern: show the current setting.
Inputs: pattern.
project_textA
Readable text view of the program (or working copy): per page the blocks with settings and inputs ('I1 <- Source.Output') and the outputs to peripherals. Without page: whole project (long).
Inputs: page.
project_traceC
Follows a signal forwards or backwards through the logic (across placeholders and pages).
Inputs: block (required), page, connector, direction, +1 more.
project_undoB
Undoes the last change of the working copy.
Inputs: no named parameters.
project_validateA
Checks the working copy for problems introduced by the changes (duplicate IDs, broken references, permissions) and warns about layout issues of new blocks.
Inputs: no named parameters.
recipe_applyC
Applies a recipe with its parameters to the working copy (all or nothing).
Inputs: name (required), params.
recipe_listA
Lists the available recipes (complete functions that can be applied in one step).
Inputs: no named parameters.
ref_addB
Adds a placeholder (input or output reference) for a block or peripheral object to a page, so it can be wired there.
Inputs: page (required), target (required), x, y, +1 more.
rs232_addB
Adds a command (kind='befehl', code = command bytes) or a sensor (kind='sensor', code = check pattern such as \x07\xF0\x00\xDE\x14\s3\1) under an RS232 extension, modelled on existing objects there. Wire it on pages with ref_add/block_connect.
Inputs: code (required), kind (required), title (required), analog, +2 more.
state_addA
Adds a status block that shows its own text, icon and colour per state in the app, and wires 'source' to I1 (placeholder created if needed). states: [{"wert": 1, "text": "Sunny", "symbol": "sun", "farbe": "#ffc800"}, ...]. compare='gleich': state applies if I1 equals wert; compare='ab': I1 >= wert, checked top to bottom (largest threshold first). Text may contain or <v1.1> (value of I1). default_* applies if no state matches. Room/category default to those of 'source'.
Inputs: page (required), title (required), source (required), states (required), +7 more.
structure_listA
Lists all rooms (kind='raum') or categories (kind='kategorie') with their number of assignments.
Inputs: kind (required).
structure_reassignC
Moves all assignments from one room/category to another.
Inputs: kind (required), source (required), target (required).
structure_removeB
Deletes an empty room or category including its permission group.
Inputs: kind (required), name (required).
sync_checkA
Compares project file, Loxone Config autosave and Miniserver program (pass miniserver_xml_path, e.g. the Miniserver-Backup file, for a content comparison). Call before every change.
Inputs: ask_miniserver, miniserver_xml_path.
verify_loadA
Call after loading a file into the Miniserver with Loxone Config: waits until the Miniserver answers again (up to 3 min), backs up the running program (Git) and compares it with the expected project file (default: newest file of the main project). cleanup=True moves older versions of the main project to the recycle bin on success.
Inputs: file, cleanup.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 52 tools
Most tools have distinct resource+action targets, but there is a dense cluster of overlapping inspection/validation tools (project_lint, project_validate, project_analyze, sync_check, verify_load, project_changes) whose boundaries require careful reading to keep apart. Similarly catalog_list_types vs block_addable_types and block_remove vs periphery_remove overlap conceptually. Descriptions mitigate this, but an agent can still easily pick the wrong analysis verb.
The bulk is snake_case with meaningful domain prefixes (project_, block_, live_, catalog_, io_, structure_, recipe_), which aids grouping. However ordering is inconsistent: prefix_noun_verb (project_list_pages, project_get_block) coexists with verb_noun (page_add, ref_add, block_clone) and bare forms (verify_load, build_plan, sync_check). Readable but not a predictable single pattern.
52 tools is a very large surface for any single server and forces the agent to search a flat namespace before acting. The domain (full Loxone project editing) is genuinely broad, and build_plan consolidates many operations, but the many narrow helpers (io_set_display, io_set_statistics, structure_reassign, icon_find) contribute to sprawl rather than a tight, scoped set.
Coverage is strong: catalog learning, project read/search/trace, block and peripheral editing, live read access, validation, undo/discard, save, backup, and post-load verification are all present, plus a batch build_plan. Minor gaps exist around page/category lifecycle details (e.g. explicit page deletion/rename outside build_plan) and richer history/restore flows, but core edit-validate-save-load workflows have no dead ends.
Maintenance
Related MCP Connectors
Let your coding agent read your GameSalad projects, and edit them live in Creator on Pro and Edu.
Read and edit DAW projects as an agent, save native Logic projects, convert projects between DAWs
Open, inspect, filter, edit and convert xlsx and csv files from your AI chat. Processing is local.
Open, inspect, filter, edit and convert xlsx and csv files from your AI chat. Processing is local.
Related MCP Servers
- FlicenseAqualityCmaintenanceEnables AI agents to build and edit MIT App Inventor projects as .aia files, supporting screens, components, properties, blocks, assets, and project merging.10-
- AlicenseBqualityDmaintenanceEnables AI agents to discover, inspect, edit, rebuild, and save Schneider Electric RemoteConnect and SCADAPack x70 IEC logic projects, including program sections, hardware, variables, and Modbus configuration.631MIT
- FlicenseAqualityCmaintenanceLets AI agents and users analyze Mitsubishi MELSEC .gx3 projects directly, tracing coil conditions, checking device references, comparing program changes, and inspecting ladder logic without opening GX Works3.134-
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to read and edit RPG Maker VX Ace and VX project data files directly, including databases, maps, events, scripts, and validation, without requiring Ruby.3MIT