mijia-api
An open source tool that enables direct control of Xiaomi MiJia smart devices via code, CLI and MCP

Suggested prompts
How do I configure this MiJia API as an MCP service to let AI Agent control the on/off status and brightness of my MiJia table lamp.
How to install and log in to this MiJia API, and control my MiJia devices via Python code
How to use the CLI tool provided by this project to list and control my MiJia smart devices
This is an open source MiJia API tool that supports direct control of Xiaomi MiJia smart devices via multiple methods including Python code, command line interface (CLI) and MCP protocol, with Agent skill support since v4. You can quickly find devices by name, directly adjust switches, brightness and other device attributes to meet the needs of developing custom smart control. This project comes with complete documentation and multiple installation options, suitable for developers to integrate into their own automation workflows or AI Agent systems.