Skip to main content
Glama

dirigera-mcp

An MCP server for the IKEA DIRIGERA smart home hub. It talks to the hub on your local network through a Python client generated from dirigera-openapi.

Setup

Get a token, and press the action button on the bottom of the hub when asked:

uv run dirigera-mcp pair 192.168.1.100

The token is valid for ten years and gives full access to the hub, so treat it like a password. Add the server to Claude Code:

claude mcp add dirigera \
  --env DIRIGERA_HOST=192.168.1.100 \
  --env DIRIGERA_TOKEN="$TOKEN" \
  -- uv run --directory /path/to/dirigera-mcp dirigera-mcp

Use an existing token

Set DIRIGERA_TOKEN to the token, or point --config at a file like the one made by dirigera-rs or dirigera-tui:

ip-address = "192.168.1.100" # or host
token = "..."
claude mcp add dirigera -- uv run --directory /path/to/dirigera-mcp \
  dirigera-mcp --config /path/to/config.toml

With --config, the host and token in the environment are ignored.

Started in a terminal, such as with just run, the server prints the matching claude mcp add command.

Variable

Required

Description

DIRIGERA_HOST

Without --config

IP address or hostname of the hub

DIRIGERA_TOKEN

Without --config

Token from dirigera-mcp pair

DIRIGERA_CA_CERT

No

PEM file with the CA or hub certificate

The hub's certificate is signed by a private IKEA CA. Without DIRIGERA_CA_CERT it isn't verified, so someone on your network could impersonate the hub.

Related MCP server: mcp-server-tuya

Tools

  • Read: list_devices, get_device, list_rooms, list_device_sets, list_scenes, get_scene, get_hub_status, get_activity_log

  • Control: control_device, control_room, control_device_set, identify_device, trigger_scene, undo_scene

  • Organize: rename_device, create_room, move_devices_to_room

Deleting things, editing scenes, users, firmware, and the Matter, Thread and HomeKit settings are left out on purpose. Pairing codes, serial numbers and coordinates are removed from device and hub details.

The hub accepts changes before they have happened, so a successful call means accepted rather than done.

Development

just update-spec # download the latest published spec
just generate    # regenerate src/dirigera_mcp/client, never edit it by hand
just run         # run the server, takes the same arguments
just format      # format and fix lint errors
just check       # check formatting, lint, types and tests

Available Tools

17 tools
control_deviceC
Idempotent

Control one device.

Inputs: changes (required), device_id (required), transition_milliseconds. Returns: object

control_device_setC
Idempotent

Control every device of one type in a device set.

Inputs: changes (required), device_type (required), device_set_id (required), transition_milliseconds. Returns: object

control_roomC
Idempotent

Control every device of one type in a room.

Inputs: changes (required), room_id (required), device_type (required), transition_milliseconds. Returns: object

create_roomC

Create a room. Icons look like rooms_sofa, colors like ikea_green_no_65.

Inputs: name (required), icon, color. Returns: object

get_activity_logC
Read-only

Get the open, close and water leak events the hub returns by default.

Inputs: limit, device_id. Returns: result

get_deviceB
Read-only

Get all details of a device, including which attributes it accepts.

Inputs: device_id (required). Returns: object

get_hub_statusA
Read-only

Get the hub's own status and firmware version.

Inputs: no named parameters. Returns: object

get_sceneC
Read-only

Get what a scene does and what triggers it.

Inputs: scene_id (required). Returns: object

identify_deviceA

Make a device blink or beep to find it. Zero seconds stops it.

Inputs: device_id (required), seconds. Returns: result

list_devicesC
Read-only

List devices and sensors with their current state.

Inputs: room_id, device_type. Returns: result

list_device_setsA
Read-only

List device sets, called groups in the IKEA app.

Inputs: no named parameters. Returns: result

list_roomsC
Read-only

List rooms.

Inputs: no named parameters. Returns: result

list_scenesB
Read-only

List scenes and automations.

Inputs: no named parameters. Returns: result

move_devices_to_roomC
Idempotent

Move devices into a room.

Inputs: room_id (required), device_ids (required). Returns: result

rename_deviceC
Idempotent

Rename a device.

Inputs: name (required), device_id (required). Returns: result

trigger_sceneC

Run a scene now.

Inputs: scene_id (required). Returns: result

undo_sceneB

Undo a recent run of a scene. Has no effect if it can't be undone.

Inputs: scene_id (required). Returns: result

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 17 tools

    Disambiguation4/5

    Each tool targets a distinct resource and action, and most boundaries are clear (get_device vs list_devices, trigger_scene vs undo_scene). The only mild overlap is among control_device, control_room, and control_device_set, which all say 'control every device of one type' but differ by container (device/room/set); descriptions resolve this adequately.

    Naming Consistency5/5

    All 17 tools follow a consistent snake_case verb_noun pattern (get_*, list_*, control_*, create_*, move_*, trigger_*, undo_*, rename_*, identify_*). No camelCase or vague standalone verbs appear.

    Tool Count4/5

    17 tools is slightly above the ideal 3-15 range but reasonable for a smart-home hub covering devices, rooms, device sets, scenes, and hub status. Each tool maps to a concrete operation with little redundancy.

    Completeness3/5

    Read and control coverage is strong (devices, rooms, sets, scenes, activity log, hub status), but lifecycle gaps exist: create_room has no delete_room or rename_room, and there is no create/delete scene or create/delete device set. Agents can work around some of this but room and scene CRUD is incomplete.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers