miot-mcp
v2.1.0Mijia smart device MCP server, providing device discovery, property read/write, action invoke and other functions
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_service_status
Return service status, authentication status, and local file locations.
reconnect_service
Reconnect to Mijia cloud, optionally clearing saved login first.
| Parameter | Type | Description |
|---|---|---|
force_reauth | boolean |
prepare_login
Prepare QR login artifacts and optionally force a fresh QR login flow.
| Parameter | Type | Description |
|---|---|---|
force_reauth | boolean | |
reopen_qr | boolean |
clear_saved_login
Clear saved login credentials so the next connection triggers QR login.
list_homes
List all homes and rooms in a user-friendly structure.
| Parameter | Type | Description |
|---|---|---|
refresh | boolean |
refresh_devices
Refresh homes, devices, and room mappings from Mijia cloud.
get_tool_catalog
Return the recommended everyday tools, advanced tools, and workflow.
get_home_overview
Return a room-first overview of homes and devices for everyday browsing.
| Parameter | Type | Description |
|---|---|---|
home_name | string | |
refresh | boolean | |
room | string |
list_devices
List devices by friendly filters like name, room, home, or model.
| Parameter | Type | Description |
|---|---|---|
device_type | string | |
home | string | |
online_only | boolean | |
query | string | |
refresh | boolean | |
room | string | |
verbose | boolean |
get_device
Resolve one device and return its summary, capabilities, and common state.
| Parameter | Type | Description |
|---|---|---|
device_id | string | |
device_name | string | |
device_type | string | |
home | string | |
refresh | boolean | |
room | string | |
verbose | boolean |
get_device_status
Return the current state and recommended next actions for one device.
| Parameter | Type | Description |
|---|---|---|
device_id | string | |
device_name | string | |
device_type | string | |
home | string | |
refresh | boolean | |
room | string |
get_device_capabilities
Resolve one device and return its standard capability schema for stable client-side routing.
| Parameter | Type | Description |
|---|---|---|
device_id | string | |
device_name | string | |
device_type | string | |
home | string | |
refresh | boolean | |
room | string | |
verbose | boolean |
control_device
Control a device through capability operations like turn_on, set_brightness, set_target_temperature, set_property, or run_action.
| Parameter | Type | Description |
|---|---|---|
operation * | string | |
action_name | string | |
device_id | string | |
device_name | string | |
home | string | |
property_name | string | |
refresh | boolean | |
room | string | |
value |
turn_on_device
Turn on a device.
| Parameter | Type | Description |
|---|---|---|
device_id | string | |
device_name | string | |
home | string | |
room | string |
turn_off_device
Turn off a device.
| Parameter | Type | Description |
|---|---|---|
device_id | string | |
device_name | string | |
home | string | |
room | string |
set_brightness
Set device brightness.
| Parameter | Type | Description |
|---|---|---|
device_id | string | |
device_name | string | |
home | string | |
room | string | |
value | integer |
set_color_temperature
Set device color temperature.
| Parameter | Type | Description |
|---|---|---|
device_id | string | |
device_name | string | |
home | string | |
room | string | |
value | integer |
set_target_temperature
Set target temperature on any target-temperature-capable device.
| Parameter | Type | Description |
|---|---|---|
device_id | string | |
device_name | string | |
home | string | |
room | string | |
value | integer |
set_hvac_mode
Set mode on a mode-capable device such as an air conditioner, fan, or purifier.
| Parameter | Type | Description |
|---|---|---|
device_id | string | |
device_name | string | |
home | string | |
room | string | |
value |
set_fan_speed
Set fan speed on any fan-speed-capable device such as a fan, air conditioner, or purifier.
| Parameter | Type | Description |
|---|---|---|
device_id | string | |
device_name | string | |
home | string | |
room | string | |
value |
set_cover_position
Set position for any cover-capable device such as a curtain or blind.
| Parameter | Type | Description |
|---|---|---|
device_id | string | |
device_name | string | |
home | string | |
room | string | |
value | integer |
list_scenes
List scenes globally or within a specific home.
| Parameter | Type | Description |
|---|---|---|
home_id | string | |
home_name | string |
execute_scene
Execute a scene by friendly name or scene id.
| Parameter | Type | Description |
|---|---|---|
home_id | string | |
home_name | string | |
scene_id | string | |
scene_name | string |
get_consumable_items
Get consumable items globally or for a specific home.
| Parameter | Type | Description |
|---|---|---|
home_id | string | |
home_name | string |
control_by_intent
Route a natural-language-like smart-home request to the best product tool.
| Parameter | Type | Description |
|---|---|---|
query * | string | |
home | string | |
prefer_device_type | string | |
room | string |
ping
Test server connectivity.
| Parameter | Type | Description |
|---|---|---|
message | string |