Loxone MCP Proxy
Click on "Install 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 Proxyturn off the hallway lights"
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.
Loxone MCP Proxy
A tiny, zero-dependency local proxy that gives Claude Desktop (or any stdio-based MCP client) a stable connection to a Loxone Miniserver's native MCP Server β with a fully headless, credential-based login (no browser, no manual OAuth click).
Loxone Gen 2 Miniservers (firmware 17.1+) can run a built-in MCP Server plugin. Connecting a local MCP client to it normally has two pain points that this proxy solves for you.
Why this exists
The Miniserver's MCP URL is not stable. Loxone publishes the endpoint through a Cloud "connect" service that redirects to a relay address that rotates over time (it changes on Miniserver restarts and relay reshuffles). If you hard-code the redirected
β¦dyndns.loxonecloud.com:PORT/mcpURL into a client, it breaks a while later.Auth is interactive by default. The MCP endpoint speaks OAuth 2.1 and the official flow pops a browser login. That's awkward for an always-on client and impossible for a headless setup.
This proxy exposes a normal local stdio MCP server to Claude, and on the other side it:
resolves the stable
connect.loxonecloud.com/<serial>/mcpentry point to the current relay, and re-resolves automatically whenever the relay moves or dies (so your Claude connection just keeps working);performs the OAuth login headlessly using a Loxone username/password from a local
.env(it drives the Miniserver's HTML login form directly β no browser), then caches and refreshes the token;proxies the MCP protocol (streamable HTTP β stdio) transparently.
Related MCP server: Loxone Miniserver MCP
Features
π Stable β hides the rotating relay address behind automatic re-resolution.
π€ Headless β logs in from
.envcredentials, no browser, no clicking.β»οΈ Self-healing β re-resolves the relay and refreshes/re-issues tokens on failure, and transparently re-initializes a dropped session.
πͺΆ Zero runtime dependencies β plain Node.js (β₯ 20). Nothing to build.
π Least-privilege friendly β log in as a dedicated, restricted Loxone user; tokens are cached with
0600permissions.
How it works
Claude Desktop ββstdio(JSON-RPC)βββΆ loxone-mcp-proxy ββHTTPS(streamable MCP)βββΆ Loxone relay βββΆ Miniserver
β
1) GET connect.loxonecloud.com/<serial>/mcp β 307 β current relay "entry"
2) headless OAuth on the entry:
register client β GET authorize (HTML login form)
β POST username+password (+hidden fields) β ?code=β¦
β exchange code (PKCE) β access + refresh token
3) speak MCP to the entry with the Bearer token
4) on relay death / 401 / lost session β re-resolve / refresh / re-initA subtle but important detail: the OAuth resource advertised by the server
is only the token audience identifier β it frequently points at a different,
sometimes unreachable relay. MCP traffic is therefore sent to the reachable
connect-resolved entry, not to resource. The proxy handles this for you.
Requirements
Node.js β₯ 20 (uses the built-in
fetch, no packages to install).A Loxone Gen 2 Miniserver, firmware 17.1+, with the MCP Server plugin added and running (Loxone Config β Network Periphery β MCP Server).
A Loxone user account for the assistant. Create a dedicated one with the minimum rights it needs (ideally read-only to start).
Setup
1. Get the code
git clone https://github.com/ivantichy/loxone-mcp-proxy.git
cd loxone-mcp-proxy
# no "npm install" needed β there are no dependencies2. Configure credentials
cp .env.example .envEdit .env:
LOXONE_SERIAL=504F94A1AE7A # your Miniserver serial (MAC without colons)
LOXONE_USER=mcp # a DEDICATED, minimal-rights Loxone user
LOXONE_PASSWORD=your-passwordFinding your serial: open http://<miniserver-ip>/jdev/cfg/api in a browser
and read the snr field (e.g. 50:4F:94:A1:AE:7A β 504F94A1AE7A), or read it
in Loxone Config.
3. Verify it works
npm run login-checkExpected:
OK Authenticated & connected. Server: MCP Server 1.0.0
OK 11 tools available: control_find, control_command, system_status, ...
All good - this configuration works in Claude Desktop.If this fails, see Troubleshooting.
4. Add it to Claude Desktop
Open Settings β Developer β Edit Config and add a server that runs this proxy
over stdio. Point it at src/index.js with an absolute path:
{
"mcpServers": {
"loxone": {
"command": "node",
"args": ["/absolute/path/to/loxone-mcp-proxy/src/index.js"]
}
}
}On Windows, escape the backslashes:
{
"mcpServers": {
"loxone": {
"command": "node",
"args": ["C:\\path\\to\\loxone-mcp-proxy\\src\\index.js"]
}
}
}Credentials are read from the project's .env, so you don't put secrets in the
Claude config. Fully quit and reopen Claude Desktop, then ask it something
like "what's on in Loxone?".
What Claude can do
The tools come from your Miniserver's MCP plugin and act with your Loxone user's permissions. Typical set:
Tool | Type | Purpose |
| read | discover controls, rooms, categories |
| read | read current values / installation status |
| read | historical data & aggregates |
| read | Loxone weather data |
| write | operate controls (lights, blinds, scenesβ¦) |
| advanced | scripted access (use with care) |
To keep the assistant read-only, either restrict the Loxone user's rights or disable the write tools in your MCP client's connector settings.
Security
Use a dedicated Loxone user with the least privilege necessary. The assistant can only see and do what that user can.
Credentials live only in your local
.env(git-ignored). Tokens are cached at~/.loxone-mcp-proxy/cache.jsonwith0600permissions.Nothing is sent to any third-party cloud β the proxy talks only to Loxone's own connect/relay infrastructure and your Miniserver.
Troubleshooting
Run with verbose logging (to stderr):
LOXONE_DEBUG=1 npm run login-checklogin was rejected (form re-rendered)β wrongLOXONE_USER/LOXONE_PASSWORD, or that user may not access this Miniserver.connect is rate-limited (HTTP 429)β the connect endpoint allows only a handful of requests per window; wait a minute. Normal operation caches the endpoint and rarely hits it.could not authenticate after N attemptsβ check the MCP Server plugin is added and running in Loxone Config, and that the Miniserver has external access / Remote Connect enabled.Claude shows the server but no tools β fully quit Claude Desktop (from the tray) and relaunch; confirm
npm run login-checkpasses.
Configuration reference
All optional, via .env or environment:
Variable | Default | Meaning |
| β | required β Miniserver serial (MAC, no colons) |
| β | required β Loxone username |
| β | required β Loxone password |
|
| Loxone Cloud connect base |
|
| token cache location |
|
| loopback port used only as the OAuth redirect target |
|
| set |
Development
npm test # unit tests (node:test, no deps)
LOXONE_INTEGRATION=1 npm run test:integration # live test (needs .env + device)Layout:
src/
index.js entry point (loads config, starts the stdio proxy)
proxy.js stdio <-> Connection bridge (newline-delimited JSON-RPC)
connection.js endpoint resolution, token lifecycle, session, recovery
loxoneAuth.js headless OAuth (register, HTML-form login, token, refresh)
resolver.js connect.loxonecloud.com -> current relay, cached
cache.js on-disk token cache
config.js .env + environment config
logger.js stderr logging (stdout is reserved for MCP)
scripts/
login-check.js standalone connectivity/credentials checkLicense
MIT Β© Ivan Tichy
Acknowledgements
Built for connecting Claude to Loxone's native MCP Server. Not affiliated with or endorsed by Loxone.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ivantichy/loxone-mcp-proxy'
If you have feedback or need assistance with the MCP directory API, please join our Discord server