tuyactl
This project provides a command-line interface (tuyactl) for controlling Tuya devices. It interacts with a separate Tuya Server (I’m still thinking a better way of doing that).
Requirements
- uv: A fast and modern Python package installer and runner. Install it by following the instructions on the uv documentation site.
- Tuya Local Keys: You will need the local keys for your Tuya devices. Follow the tinytuya setup wizard to obtain these.
Quick Start
Install
uv:Follow the official installation instructions on the uv documentation site. The recommended method is to use the standalone installer, which you can download and run with the following command:
curl -LsSf https://astral.sh/uv/install.sh | shObtain Tuya Local Keys:
Follow the tinytuya setup wizard to get the local keys for your Tuya devices. Place the resulting
snapshot.jsonfile in your home directory (~). You can customize the location of this file using environment variables (see below).Run the server:
nohup tuyad > tuyad.log 2>&1 &Run
tuyactl:To see the available commands and options, run:
tuyactl --helpTo execute a specific command, use the following syntax:
tuyactl <command> [options]Replace
<command>with one of the available commands:list,on,off,color,brightness,temperature,mode,music. Use the-- helpoption to see the available options for each command.For example, to list all your Tuya devices, run:
tuyactl list
Configuration
snapshot.jsonLocation: You can customize the location of thesnapshot.jsonfile (containing your Tuya device keys) using environment va riables. (Details on this to be added later).
Tuya MCP Server
Project Details
- cabra-lat/tuyactl
- MIT License
- Last Updated: 4/16/2025
Recomended MCP Servers
PromptLab transforms basic user queries into optimized prompts for AI systems --> Built using MCP
Lightweight MCP server to give your Cursor Agent access to the Neon API
A minimal posthog mcp to retrive insights and add annotations
The Simple Agent Development Kit.
Integrate the Productboard API into agentic workflows via MCP
An MCP server for deep git repository investigation and analysis. Provides detailed insights into repository history, branch relationships,...
DexPaprika MCP server allows access real-time and historical data on crypto tokens, DEX trading activity, and liquidity across...
Magic admin Python SDK makes it easy to leverage Decentralized ID tokens to protect routes and restricted resources...
Dingo: A Comprehensive Data Quality Evaluation Tool
Shell and coding agent on claude desktop app





