Control your Tuya smart home devices from AI assistants.
Go to the Tuya IoT Platform, create a Cloud Development project, and link your Tuya / Smart Life app account. Copy your Access ID and Access Secret.
Open your claude_desktop_config.json and paste:
{
"mcpServers": {
"tuya": {
"command": "npx",
"args": [
"mcp-remote",
"https://your-server.herokuapp.com/mcp",
"--header",
"X-Tuya-Access-Id:${TUYA_ACCESS_ID}",
"--header",
"X-Tuya-Access-Secret:${TUYA_ACCESS_SECRET}",
"--header",
"X-Tuya-Region:${TUYA_REGION}"
],
"env": {
"TUYA_ACCESS_ID": "your_access_id",
"TUYA_ACCESS_SECRET": "your_access_secret",
"TUYA_REGION": "us"
}
}
}
}
Ask Claude to list your devices, check status, control lights, trigger scenes, and more.
us (Western America), eu (Central Europe), cn (China), in (India).
Pick the region that matches your Tuya IoT Platform data center.