IoT development platform for smart devices.
## Tuya MCP Server: Smart Home Platform The **Tuya MCP Server** integrates Tuya IoT platform into Google Antigravity, enabling AI-assisted control of thousands of Tuya-compatible smart home devices from various manufacturers. ### Why Tuya MCP? - **Device Ecosystem**: Access thousands of compatible smart devices - **Cloud API**: Direct integration with Tuya Cloud services - **Local Control**: Optional local network control for faster response - **Automation**: Create device automation and scenes - **Multi-Brand**: Control devices from different manufacturers ### Key Features #### 1. Device Discovery ```python from anthropic import Anthropic client = Anthropic() response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "List all Tuya devices and their current status" }] ) ``` #### 2. Device Control ```python # Control devices response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Turn on smart bulb and set brightness to 75%" }] ) ``` #### 3. Scenes ```python # Activate scenes response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "List available Tuya scenes and activate goodnight scene" }] ) ``` #### 4. Automation ```python # Create automation response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Create automation to turn on lights when motion detected" }] ) ``` ### Configuration ```json { "mcpServers": { "tuya": { "command": "npx", "args": ["-y", "@anthropic/mcp-server-tuya"], "env": { "TUYA_ACCESS_ID": "your-access-id", "TUYA_ACCESS_SECRET": "your-access-secret", "TUYA_REGION": "us" } } } } ``` ### Use Cases **Smart Home**: Control Tuya-based smart home devices. **Lighting**: Manage smart bulbs and light strips. **Energy**: Monitor smart plugs and energy usage. **Climate**: Control smart thermostats and AC units. The Tuya MCP Server brings smart home control into your workflow.
{
"mcpServers": {
"tuya": {}
}
}