Mcp Server Tuya — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Mcp Server Tuya (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
A Model Context Protocol (MCP) server that lets AI assistants (Claude, ChatGPT, Copilot, Cursor, and more) control your Tuya / Smart Life smart home devices.
<p align="center"> <img src="https://img.shields.io/badge/MCP-Compatible-green?style=for-the-badge" alt="MCP Compatible" /> <img src="https://img.shields.io/badge/Tuya-Smart%20Home-orange?style=for-the-badge" alt="Tuya Smart Home" /> </p>
<details> <summary><b>Claude Desktop</b></summary>
Add this to your config file:
%APPDATA%\Claude\claude_desktop_config.json~/Library/Application Support/Claude/claude_desktop_config.json{
"mcpServers": {
"tuya": {
"command": "uvx",
"args": ["mcp-server-tuya"],
"env": {
"TUYA_ACCESS_ID": "your_access_id",
"TUYA_ACCESS_KEY": "your_access_key",
"TUYA_API_ENDPOINT": "https://openapi.tuyaeu.com"
}
}
}
}</details>
<details> <summary><b>Claude Code</b></summary>
claude mcp add tuya -- uvx mcp-server-tuyaThen set your environment variables:
export TUYA_ACCESS_ID="your_access_id"
export TUYA_ACCESS_KEY="your_access_key"
export TUYA_API_ENDPOINT="https://openapi.tuyaeu.com"</details>
<details> <summary><b>Cursor</b></summary>
Add this to .cursor/mcp.json in your project:
{
"mcpServers": {
"tuya": {
"command": "uvx",
"args": ["mcp-server-tuya"],
"env": {
"TUYA_ACCESS_ID": "your_access_id",
"TUYA_ACCESS_KEY": "your_access_key",
"TUYA_API_ENDPOINT": "https://openapi.tuyaeu.com"
}
}
}
}</details>
<details> <summary><b>VS Code (GitHub Copilot)</b></summary>
Add this to your .vscode/settings.json:
{
"mcp": {
"servers": {
"tuya": {
"command": "uvx",
"args": ["mcp-server-tuya"],
"env": {
"TUYA_ACCESS_ID": "your_access_id",
"TUYA_ACCESS_KEY": "your_access_key",
"TUYA_API_ENDPOINT": "https://openapi.tuyaeu.com"
}
}
}
}
}</details>
<details> <summary><b>ChatGPT / Other MCP clients</b></summary>
Any MCP-compatible client can use this server. The general pattern is:
uvx["mcp-server-tuya"]TUYA_ACCESS_ID, TUYA_ACCESS_KEY, TUYA_API_ENDPOINTRefer to your client's documentation for how to configure MCP servers. </details>
That's it! Ask your AI assistant things like:
No installation needed — uvx runs it directly:
uvx mcp-server-tuyapip install mcp-server-tuyapip install git+https://github.com/juanmartinsantos/mcp-server-tuya.git| Tool | Description |
|---|---|
tuya_list_devices | List all devices with IDs, names, categories, and online status |
tuya_get_device_status | Get current device state (power, brightness, temperature, etc.) |
tuya_get_device_info | Get detailed device info (model, firmware, capabilities) |
tuya_turn_on_device | Turn on a device (supports multi-switch devices) |
tuya_turn_off_device | Turn off a device (supports multi-switch devices) |
tuya_toggle_device | Toggle device on/off |
tuya_set_brightness | Set light brightness (0-1000) |
tuya_set_color_temperature | Set color temperature: warm (0) to cool (1000) |
tuya_set_color | Set RGB color using HSV values |
tuya_send_command | Send any custom command to a device |
All tools accept either a device ID or a device name (e.g., "Living Room Light").
| Variable | Required | Default | Description |
|---|---|---|---|
TUYA_ACCESS_ID | Yes | — | Tuya Cloud API Access ID |
TUYA_ACCESS_KEY | Yes | — | Tuya Cloud API Access Secret |
TUYA_API_ENDPOINT | No | https://openapi.tuyaeu.com | API endpoint (see regions below) |
TUYA_CACHE_TTL | No | 60 | Device list cache duration (seconds) |
TUYA_REQUEST_TIMEOUT | No | 10 | API request timeout (seconds) |
| Region | Endpoint |
|---|---|
| Europe | https://openapi.tuyaeu.com |
| Americas | https://openapi.tuyaus.com |
| China | https://openapi.tuyacn.com |
| India | https://openapi.tuyain.com |
# Clone the repository
git clone https://github.com/juanmartinsantos/mcp-server-tuya.git
cd mcp-server-tuya
# Create virtual environment
python -m venv .venv
.venv\Scripts\activate # Windows
# source .venv/bin/activate # macOS/Linux
# Install in editable mode
pip install -e ".[dev]"
# Copy and configure environment
cp .env.example .env
# Edit .env with your credentials
# Run the server
mcp-server-tuya
# or: python -m mcp_server_tuyaYour credentials are not set. Make sure you've added the env section to your MCP client config.
Your Tuya Cloud project doesn't have the right permissions. Go to Tuya IoT Platform > your project > Service API and enable IoT Core and Smart Home APIs.
The device name doesn't match. Use tuya_list_devices first to see the exact names of your devices.
Make sure you have uv installed. Install it with:
# Windows
winget install --id=astral-sh.uv
# macOS
brew install uvMIT License - see LICENSE for details.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.