zencontrol-cloud-mcp
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., "@zencontrol-cloud-mcpList my available sites"
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.
zencontrol-cloud-mcp
MCP server for ZenControl DALI-2 lighting control via the ZenControl Cloud API.
Overview
zencontrol-cloud-mcp enables AI assistants — such as Claude, Cursor, and other MCP-compatible clients — to discover and control ZenControl DALI-2 lighting systems through natural language.
Built on the Model Context Protocol (MCP) with FastMCP, the server supports two transports:
stdio — for local, single-user setups (Claude Desktop, Cursor, etc.)
StreamableHTTP — for hosted / multi-user deployments
Features
Tool | Description |
| Discover accessible ZenControl sites |
| Explore site hierarchy (floors, zones, gateways, tenancies) |
| List lighting groups by scope (site, floor, map, or gateway) |
| List devices and their ECGs by scope |
| On/off, dim, set level (0–100 %), recall scenes, identify |
| Colour temperature (Kelvin) or RGBWAF control |
Prerequisites
Python 3.11+
ZenControl Cloud account with API credentials (
client_idandclient_secret) — see How to use OAuth 2.0 authentication for zencontrol cloud APIs for instructions on obtaining credentialsuv package manager (recommended) or
pip
Quick Start
Set your credentials:
export ZENCONTROL_CLIENT_ID=your_client_id export ZENCONTROL_CLIENT_SECRET=your_client_secretRun with
uvx:uvx zencontrol-cloud-mcpOn first launch a browser window will open so you can log in to ZenControl. After that, tokens are cached and refreshed automatically.
Configuration
Claude Desktop (stdio mode)
Add the following to your Claude Desktop configuration file:
{
"mcpServers": {
"zencontrol": {
"command": "uvx",
"args": ["zencontrol-cloud-mcp"],
"env": {
"ZENCONTROL_CLIENT_ID": "your_client_id",
"ZENCONTROL_CLIENT_SECRET": "your_client_secret"
}
}
}
}HTTP mode (hosted)
Start the server on a network port:
uvx zencontrol-cloud-mcp --transport streamable-http --port 9000Then point your MCP client at the HTTP endpoint:
{
"mcpServers": {
"zencontrol": {
"url": "http://localhost:9000/mcp"
}
}
}Environment Variables
Variable | Required | Default | Description |
| Yes (stdio) | — | OAuth client ID |
| Yes (stdio) | — | OAuth client secret |
| No |
| OAuth redirect URI |
| No |
| HTTP server port |
| No | — | Public HTTPS URL for HTTP mode (e.g. |
| No | — | Lock operations to a site (UUID, tag, or name) |
Authentication
The server uses OAuth 2.0 Authorization Code flow to authenticate with the ZenControl Cloud API.
On first run the server opens your default browser so you can log in.
Tokens are stored encrypted in a platform-appropriate location (via
platformdirs).Tokens are refreshed automatically when they expire — you should rarely need to re-authenticate.
Usage Examples
Typical interactions with an AI assistant:
User: "What sites do I have access to?"
→ Calls list_sites
User: "Show me the structure of the Main Office site"
→ Calls get_site_details
User: "Turn on all lights in the Lobby group"
→ Calls control_light(target_type="group", target_id="...", action="on")
User: "Set the office lights to 50% brightness"
→ Calls control_light(target_type="group", target_id="...", action="set_level", level=50)
User: "Change the lobby to warm white (3000K)"
→ Calls set_colour(target_type="group", target_id="...", mode="temperature", kelvin=3000)Core Tool Families
Site discovery:
list_sites,get_site_detailsTopology inventory:
list_groups,list_devices,list_gateways,list_device_locationsLighting control:
control_light,set_colour,set_profileLive telemetry:
get_live_light_levels,get_sensor_readings,get_system_variablesDiagnostics:
get_device_healthScope controls:
set_scope,get_scope,clear_scope
Safe Control Workflow
Start with
list_sites.Resolve a concrete target with
get_site_detailsorlist_groups.Prefer controlling groups over individual devices.
Use moderate levels first (for example, 30-50%) before full output.
Use scope controls to avoid cross-site mistakes in multi-site environments.
Troubleshooting
Required environment variable(s) not set:Set
ZENCONTROL_CLIENT_IDandZENCONTROL_CLIENT_SECRETfor stdio mode.
HTTP 401 on live endpoints:
Verify account entitlement for Live API and valid token scope.
HTTP 403 on diagnostics:
Account may not have access to diagnostics endpoints.
get_site_detailsparsing inconsistencies:This server tolerates both label payload shapes (
{"value": "..."}and plain strings).
Architecture
┌─────────────────────┐ stdio / StreamableHTTP ┌─────────────────────┐
│ MCP Client │ ──────────────────────────────▶ │ zencontrol-cloud-mcp│
│ (Claude, Cursor, …) │ │ FastMCP Server │
└─────────────────────┘ └──────────┬──────────┘
│
REST + Live API│
▼
┌──────────────────┐
┌──────────────────┐ │ ZenControl │
│ Encrypted │◀─────▶│ Cloud API │
│ Token Store │ └──────────────────┘
└──────────────────┘Development
git clone https://github.com/oWretch/zencontrol-cloud-mcp.git
cd zencontrol-cloud-mcp
uv sync
# Lint & format
uv run ruff check src/
uv run ruff format --check src/
# Run tests
uv run pytest
# Generate full API docs (Markdown)
uv run python scripts/generate_docs.pyGenerated documentation entry points:
docs/reference/api.md
See CONTRIBUTING.md for full guidelines.
API Payload Compatibility Notes
Some ZenControl payloads can represent labels in two shapes:
Wrapped sync field:
{ "value": "Office", "state": "OK", "error": null }Plain string:
"Office"
The server accepts both formats for label fields (for example, tenancy and floor
labels) so tools such as get_site_details remain robust across mixed API
responses.
License
This project is licensed under the Apache License 2.0.
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
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/oWretch/zencontrol-cloud-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server