Tuya MCP Server

Control your Tuya smart home devices from AI assistants.

1

Get your Tuya credentials

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.

2

Add to Claude Desktop

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"
      }
    }
  }
}
3

Start using it

Ask Claude to list your devices, check status, control lights, trigger scenes, and more.

Regions: us (Western America), eu (Central Europe), cn (China), in (India). Pick the region that matches your Tuya IoT Platform data center.