Skip to main content
Glama
adrighem

Domoticz MCP Server

by adrighem

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DOMOTICZ_URLYesBase URL of your Domoticz instance
DOMOTICZ_MCP_HOSTNoHost to bind to for SSE/HTTP127.0.0.1
DOMOTICZ_MCP_PORTNoPort to bind to for SSE/HTTP8000
DOMOTICZ_PASSWORDNoYour Domoticz password for Basic Auth
DOMOTICZ_USERNAMENoYour Domoticz username for Basic Auth
DOMOTICZ_CLIENT_IDNoYour Application's Client ID for OAuth
DOMOTICZ_OAUTH_TOKENNoDirect OAuth2 access token (skips flow)
DOMOTICZ_CLIENT_SECRETNoYour Application's Client Secret for OAuth
DOMOTICZ_MCP_TRANSPORTNoTransport to use: stdio, sse, or streamable-httpstdio
DOMOTICZ_MCP_TOKEN_FILENoPath to OAuth token storage file~/.config/domoticz-mcp/token.json

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
start_oauth_login

Start or reuse a bounded browser login. Open the returned URL, then poll get_oauth_login_status.

get_oauth_login_statusA

Check a browser login. Retry the original operation only after status is complete.

search_scripts_tool

Search string in scripts. Cross-ref: domoticz://events.

search_devices_tool

Search devices by name/status. Cross-ref: domoticz://devices.

get_daily_energy_history

Read today's counter history. Preferred: idx. Set include_instantaneous=False for daily totals.

get_weekly_energy_history

Read the last 7 days of counter history. Preferred: idx.

get_monthly_energy_history

Read this month's counter history. Preferred: idx.

toggle_switch

Toggle device. Preferred: idx. Cross-ref: set_switch_state.

set_switch_state

Set 'On'/'Off'. Preferred: idx. Cross-ref: toggle_switch.

set_dimmer_levelA

Set brightness (0-100). Preferred: idx. Cross-ref: domoticz://device/{idx}.

set_temperature_setpoint

Set target temp. Preferred: idx.

control_blinds

'Open'/'Close'/'Stop'. Preferred: idx.

switch_scene

Activate scene. 'On'/'Off'/'Toggle'. Preferred: idx. Cross-ref: domoticz://scenes.

add_user_variableC

Add var. vtype: 0=Int, 1=Float, 2=Str, 3=Date, 4=Time. Cross-ref: domoticz://user-variables.

update_user_variableB

Update var value. Cross-ref: domoticz://user-variables.

delete_user_variableA

Delete var. Preferred: idx. Requires confirm=True.

create_eventC

Create script. Cross-ref: domoticz://docs/dzvents_syntax.

update_eventC

Update script. Cross-ref: domoticz://event/{event_id}. Requires confirm=True.

call_domoticz_api

Raw API call. Use if dedicated tools fail. Requires confirm=True.

restart_system

Reboot server. Requires confirm=True.

rename_device

Rename device. Preferred: idx.

delete_device

Hide device. Preferred: idx. Requires confirm=True.

create_virtual_sensor

Create dummy. Cross-ref: domoticz://hardware.

update_device_value

Manual update. Preferred: idx.

add_log_message

Log message. level: 1=Normal, 2=Status, 4=Error. Cross-ref: domoticz://logs.

send_notification

Send notification.

set_security_status

Arm panel. 0=Disarm, 1=Home, 2=Away. Requires confirm=True. Cross-ref: domoticz://security.

set_color_brightness

Set RGB. Preferred: idx.

set_color_temperature

Set normalized white temperature (0-100). Preferred: idx.

Prompts

Interactive templates invoked by user choice

NameDescription
agent_guidanceExpert rules. ORIENTATION: Read `domoticz://overview`.
maintenance_reportHealth summary. Cross-refs: `domoticz://health`, `domoticz://battery-alerts`, `domoticz://logs/error`.
summarize_homeState summary. Cross-ref: `domoticz://dashboard`.
energy_auditUsage analysis. Cross-ref: `domoticz://devices`.

Resources

Contextual data attached and managed by the client

NameDescription
get_overview_resourceOrientation: system version, hardware, and device counts.
get_system_health_resourceTroubleshooting: hardware health and unresponsive devices.
get_all_devices_resourceLarge output: state of all Domoticz devices.
get_scenes_resourceList: configured scenes and groups.
get_rooms_resourceList: Room Plans (logical groupings).
get_user_variables_resourceSystem: current values of user-defined variables.
get_battery_levels_resourceMaintenance: devices with <= 20% battery.
get_events_resourceOverview: internal event system scripts.
get_hardware_resourceSystem: configured hardware gateways.
get_dashboard_resourceCurated: favorite and active devices status.
get_log_resourceDebug: recent system logs.
get_log_alias_resourceAlias: recent system logs.
get_error_logs_resourceDebug: only 'Error' level log entries.
get_security_resourceStatus: security panel arming state.
get_settings_resourceConfig: global system settings.
get_dzvents_docsRules: dzVents automation syntax.
get_blockly_docsRules: Blockly XML representation.

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/adrighem/domoticz-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server