Skip to main content
Glama

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

project_list_files, project_open (with automatic comparison to the last Miniserver backup and the Config autosave), project_list_pages, project_get_page, project_find, project_get_block, project_trace, project_text (readable text view)

Catalog

catalog_learn (learns block types and templates from your own projects), catalog_list_types, catalog_get_type

Edit logic

block_add, block_clone (also large blocks: lighting controller, room controller, automatic blinds), ref_add, block_connect, block_disconnect, block_set_params, block_set_inverted, block_set_position, block_remove, page_add (new program page)

Build plan

build_plan: many steps in one call, all or nothing, names via als/$name, missing placeholders created automatically

Status with icons

state_add (text, icon and colour per state), icon_find (searches the Loxone icon library)

Peripherals

io_add_virtual_input (incl. text inputs), io_set_display, io_set_statistics, io_add_command (e.g. Home Assistant webhook), rs232_add, periphery_remove, notification_add (Loxone app notification)

App display

state_style (colour/icon per state of an existing status block), app_set (favourite, order, icon), structure_favorite, block_set_room_category, page_color_by_function

Schedules

heating_schedule_set (room controller V2), schedule_set (DayTimer per weekday)

Layout

layout2.py (layered layout: inputs left, logic in columns, outputs right; feedback loops ignored), layout_opt.py (local search so connections do not run across blocks), layout_all.py (command line)

Network (read only)

net_check_outputs (ping/port of all virtual outputs with an address), net_find_device (by MAC), yeelight_find, mijia_find (miIO discovery)

Rooms/categories

structure_list, structure_remove, structure_reassign

Working copy

project_changes, project_validate, project_lint, project_undo, project_discard, project_save (always a new file, never overwrites)

Miniserver (read only)

live_status, live_page, live_block, live_history, backup_miniserver (FTP download of the running program into a local Git repo, with a plain-text diff), verify_load (after loading: waits for the Miniserver, backs up, compares with the expected file)

Analysis & recipes

project_analyze, recipe_list, recipe_apply

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_LIBRARY elsewhere). On other systems old versions are moved to a .loxone-papierkorb folder instead of the recycle bin

  • Python ≥ 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

LOXONE_PROJECTS_DIR (default: Documents\Loxone\Loxone Config\Projects)

Main project

settings.json → hauptprojekt_muster (see settings.example.json), set via project_set_main

Catalog file

LOXONE_CATALOG (default: catalog.json next to the server; created by catalog_learn)

Miniserver access (read only)

LOXONE_HOST, LOXONE_USER, LOXONE_PASS — use a dedicated user with minimal rights

Icon library

LOXONE_ICON_LIBRARY (path to an IconLibrary.zip) or LOXONE_CONFIG_DATA (default C:\ProgramData\Loxone)

Backup folder

LOXONE_BACKUP_DIR (default Documents\Loxone\Miniserver-Backup)

Safe workflow

  1. project_open — check the abgleich field: does the file match the Miniserver?

  2. Edit (ideally with build_plan), then project_validate / project_lint.

  3. 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.

  4. Open the new file in Loxone Config, decline the "automatic backup" prompt, check it, load it into the Miniserver.

  5. 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>/state on 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 source attribute.

  • 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: Cond0 1 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; Ix is 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=…> and N must equal the number of entries.

  • Config drops Def values on connected inputs and zero geometry values when loading; the comparison tools ignore both.

  • Analogue Tree valve actuators report 0 % via astate; state returns the input value, which live_block scales with SourceValHigh → DestValHigh.

  • Zehnder ComfoAir (RS232) sends a data byte 0x07 as 07 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.json and 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 ops heizplan, schaltuhr); build-plan op verschieben (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_position also sets missing geometry; block_remove removes user-permission references; live values of Tree valve actuators scaled correctly; verify_load ignores 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_plan ops trennen, 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 tools
backup_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

    B3/5.0

    Scored across 52 tools

    Disambiguation3/5

    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.

    Naming Consistency3/5

    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.

    Tool Count2/5

    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.

    Completeness4/5

    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

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      A
      quality
      C
      maintenance
      Enables AI agents to build and edit MIT App Inventor projects as .aia files, supporting screens, components, properties, blocks, assets, and project merging.
      10
      -
    • A
      license
      B
      quality
      D
      maintenance
      Enables 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.
      63
      1
      MIT
    • F
      license
      A
      quality
      C
      maintenance
      Lets 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.
      13
      4
      -
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables 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.
      3
      MIT