Mijiaapi MCP
A Mi Home smart home control server based on the Model Context Protocol, supporting functions such as device management, status monitoring, and scene linkage. It realizes seamless integration with the Mi Home account through QR code login.
rating : 2 points
downloads : 6.7K
What is the Mi Home Intelligent Control MCP Server?
This is a smart home control server specifically designed for AI assistants. It enables your AI assistants (such as Claude, ChatGPT, etc.) to directly interact with your Mi Home smart devices. Through simple QR code scanning and logging in, the AI assistant can help you control lights, check device status, execute scenarios like 'going home' or 'leaving home', etc.How to use the Mi Home Intelligent Control?
The usage is divided into three simple steps: 1) Install the server and scan the QR code to log in to your Mi Home account; 2) Configure the MCP connection in the AI assistant; 3) Control your smart home through natural language instructions. The whole process does not require programming knowledge, just follow the instructions.Applicable Scenarios
Suitable for all users of Mi Home smart home devices, especially in scenarios where users hope to control devices through voice or text using an AI assistant. For example, asking the AI to turn off the lights before going to bed, checking device status when leaving home, querying the remaining life of the filter, and automatically adjusting the home mode according to the weather, etc.Main Functions
Device Control
Supports basic controls such as on/off, brightness adjustment, and mode switching, covering common devices like bulbs, sockets, air conditioners, and purifiers.
Status Monitoring
View device attributes in real - time, such as temperature, humidity, battery level, and online status, and support batch queries.
Scene Linkage
Trigger preset Mi Home scenarios, such as 'Going Home Mode', 'Cinema Mode', 'Sleep Mode', etc., with one - click operation.
Consumable Management
Monitor the remaining life of consumables such as filters and batteries, and remind you to replace them in time.
Energy Consumption Statistics
View the power consumption statistics of devices, supporting different dimensions such as hourly, daily, weekly, and monthly.
Simulation Debugging
Provide a simulation data mode to test functions without real devices, which is convenient for development and demonstration.
Advantages
No additional hardware required: Realize intelligent control by using existing Mi Home devices and AI assistants.
Safe and convenient QR code login: No need to enter account passwords, authorize through scanning the QR code in the Mi Home APP.
Comprehensive functions: Cover common functions such as device control, status query, scenario execution, and consumable management.
Friendly for development: Provide a simulation mode and detailed documentation for easy integration and testing.
Cross - platform support: Support Windows, macOS, and Linux systems.
Limitations
Network - dependent: Requires a stable network connection to control devices.
Limited to the Mi Home ecosystem: Only support Mi Home/Xiaomi smart devices, not other brands.
Requires AI assistant support: Must use an AI assistant that supports the MCP protocol (such as Claude Desktop).
Open - source license restrictions: Adopt the GPL - 3.0 license, and pay attention to the open - source requirements for commercial use.
How to Use
Environment Preparation
Ensure that the Node.js (v16+) and Python (3.8+) environments are installed. It is recommended to use a Python virtual environment.
Install Dependencies
Clone the project and install the necessary Node.js and Python dependency packages.
Scan QR Code to Log in to Mi Home
Use the terminal command to generate a QR code, and scan it with the Mi Home APP to complete the authorization login.
Configure the AI Assistant
Add the server configuration in the MCP settings of the AI assistant (such as Claude Desktop).
Start Using
Restart the AI assistant. Now you can control your Mi Home devices through natural language.
Usage Cases
Preparation for Bedtime
When getting ready to go to bed at night, let the AI assistant help you turn off all the lights, adjust the air - conditioner temperature, and turn on the air purifier.
Check Before Leaving Home
Check the status of home devices before going out to ensure that no device is running abnormally.
Consumable Reminder
Regularly check the remaining situation of consumables in smart devices and remind you to replace them in time.
Energy Consumption Analysis
View the power consumption of smart devices to optimize usage habits.
Frequently Asked Questions
Is QR code login safe?
Which Mi Home devices are supported?
Do I need to keep the computer on all the time?
Will the login information expire?
Can multiple people use it?
What should I do if there is a connection problem?
Related Resources
Project GitHub Repository
Get the latest source code, submit issues, and participate in development
mijiaAPI Project
The Mi Home API library that this project depends on. Learn more about the underlying implementation.
Model Context Protocol Official Documentation
Learn about the technical specifications and design concepts of the MCP protocol
Mi Home Smart Home Official Website
Learn about the Mi Home smart home product line and ecosystem
GPL - 3.0 License Description
Learn in detail about the open - source license terms adopted by this project

Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
20.2K
4.3 points

Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
17.3K
4.5 points

Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
30.1K
5 points

Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
59.5K
4.3 points

Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
26.8K
5 points

Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
56.4K
4.5 points

Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
19.3K
4.5 points

Context7
Context7 MCP is a service that provides real-time, version-specific documentation and code examples for AI programming assistants. It is directly integrated into prompts through the Model Context Protocol to solve the problem of LLMs using outdated information.
TypeScript
82.6K
4.7 points