Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
TUYA_LOCAL_MCP_HOMENoUse another folder instead of ~/.config/tuya-local-mcp for the config (bulb keys, presets, devices).
TUYA_LOCAL_MCP_AMBIENTNoEnable ambient mode so Claude can set the mood on its own. Set to "true" to have every chat start with the ambient instructions.false
TUYA_LOCAL_MCP_SIGNALSNoTurn the red/green build and test signals on or off.on
TUYA_LOCAL_MCP_SIGNAL_TARGETNoWhich target shows the build/test signals, e.g. setup.all
TUYA_LOCAL_MCP_SIGNAL_COMMANDSNoYour own regular expression for recognising test or build commands.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Local LAN control of Tuya / Smart Life lights. Act directly: power_light and set_light do not need a status or list call first. brightness is 1-100, temp is 0 (warm) to 100 (cool), rgb is [r, g, b] 0-255. Use delay_seconds for anything that should happen later; timers survive this session. No lights are configured yet: No lights configured yet (/root/.config/tuya-local-mcp/devices.json does not exist). Run tuya-local-mcp init to fetch your bulbs' local keys once, or copy devices.example.json there and fill it in. Presets at startup: code, chill, night, cyber, red, focus, gaming, movie. presets.json can change while running; call get_presets if a name is unknown.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

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

Tools

Functions exposed to the LLM to take actions

NameDescription
list_lightsA

List lights (name, zone, every word that targets them, IP) and preset names.

light_statusA

Read what each target light is doing now (on, mode, brightness, temp, rgb), plus the user's local time.

power_lightA

Turn lights on, off, or toggle them as a group (any on -> all off, else all on).

delay_seconds > 0 schedules it instead, in a background process.

set_lightA

Apply a preset/scene, or set brightness (1-100) with temp (0 warm-100 cool) OR rgb.

With a scene preset, target narrows it: target='bed', preset='focus' applies only focus's bed setting. Use either preset or manual values, not both.

get_presetsA

Return presets.json as stored (built-in defaults if you have not saved any yet).

upsert_presetA

Create or replace a preset. The config is validated before saving.

Single setting: {"temp": 20, "brightness": 50, "description": "optional"} {"rgb": [255, 0, 128], "brightness": 80} Scene: {"targets": {"ceiling": {"on": false}, "setup": {"rgb": [255, 0, 128], "brightness": 80}, "bed": {"temp": 0, "brightness": 15}}} Keys per setting: on, brightness (1-100), temp (0-100), rgb. temp and rgb are exclusive.

delete_presetC

Delete a preset from presets.json.

list_timersA

List pending timers (from delay_seconds or the CLI's sleep): id, what, when.

cancel_timerB

Cancel a pending timer by id, or every pending timer with "all".

scan_lan_ipsA

Listen for Tuya broadcasts (~6 s) and save any light IP that changed.

Commands already do this automatically when a light is unreachable.

Prompts

Interactive templates invoked by user choice

NameDescription
ambient_modeAmbient lights: let Claude set the room's mood on its own during this chat.

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.4/5.0

Scored across 10 tools

Disambiguation4/5

Most tools map to a distinct action-resource pair (power vs. set vs. status), and descriptions clarify the split between list_lights (configuration metadata) and light_status (runtime state). The one soft overlap is set_light vs. power_light, since scene presets can contain on/off values, and list_lights vs. scan_lan_ips both touch light IPs — but descriptions steer the agent adequately.

Naming Consistency4/5

Nearly everything follows verb_noun (list_lights, set_light, get_presets, upsert_preset, delete_preset, list_timers, cancel_timer, scan_lan_ips). light_status breaks the pattern as a noun_noun state read, and the plural/singular resource naming (lights vs. light) is slightly uneven, but overall the convention is predictable.

Tool Count5/5

Ten tools is well within the ideal band and each earns its place: light discovery/listing, status, power, setting, preset CRUD, and timer list/cancel. Nothing feels padded or redundant.

Completeness3/5

Presets have full CRUD and timers have list/cancel plus an inline delay parameter, covering the main control loop. However, there is no way to add/register a new light or edit its name, zone, or target words — scan_lan_ips only refreshes IPs — and timers cannot be created or inspected as a first-class operation, leaving a notable configuration gap.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues