Mijiaapi MCP
M

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.
2 points
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

Installation

Copy the following command to your Client for configuration
{
  "mcpServers": {
    "mijia-mcp-server": {
      "command": "node",
      "args": ["c:/Users/chenz/CodeBuddy/20251216173558/dist/index.js"],
      "type": "stdio",
      "env": {
        "PYTHON_PATH": "c:/Users/chenz/CodeBuddy/20251216173558/.venv/Scripts/python.exe",
        "PYTHON_SCRIPT_DIR": "c:/Users/chenz/CodeBuddy/20251216173558/python_scripts",
        "MIJIA_AUTH_PATH": "c:/Users/chenz/.config/mijia-api/auth.json"
      }
    }
  }
}
Note: Your key is sensitive information, do not share it with anyone.

Alternatives

N
Next Devtools MCP
The Next.js development tools MCP server provides Next.js development tools and utilities for AI programming assistants such as Claude and Cursor, including runtime diagnostics, development automation, and document access functions.
TypeScript
7.6K
5 points
P
Praisonai
PraisonAI is a production-ready multi-AI agent framework with self-reflection capabilities, designed to create AI agents to automate the solution of various problems from simple tasks to complex challenges. It simplifies the construction and management of multi-agent LLM systems by integrating PraisonAI agents, AG2, and CrewAI into a low-code solution, emphasizing simplicity, customization, and effective human-machine collaboration.
Python
6.6K
5 points
B
Blueprint MCP
Blueprint MCP is a chart generation tool based on the Arcade ecosystem. It uses technologies such as Nano Banana Pro to automatically generate visual charts such as architecture diagrams and flowcharts by analyzing codebases and system architectures, helping developers understand complex systems.
Python
9.7K
4 points
K
Klavis
Klavis AI is an open-source project that provides a simple and easy-to-use MCP (Model Context Protocol) service on Slack, Discord, and Web platforms. It includes various functions such as report generation, YouTube tools, and document conversion, supporting non-technical users and developers to use AI workflows.
TypeScript
16.6K
5 points
D
Devtools Debugger MCP
The Node.js Debugger MCP server provides complete debugging capabilities based on the Chrome DevTools protocol, including breakpoint setting, stepping execution, variable inspection, and expression evaluation.
TypeScript
10.5K
4 points
M
Mcpjungle
MCPJungle is a self-hosted MCP gateway used to centrally manage and proxy multiple MCP servers, providing a unified tool access interface for AI agents.
Go
0
4.5 points
N
Nexus
Nexus is an AI tool aggregation gateway that supports connecting multiple MCP servers and LLM providers, providing tool search, execution, and model routing functions through a unified endpoint, and supporting security authentication and rate limiting.
Rust
0
4 points
Z
Zen MCP Server
Zen MCP is a multi-model AI collaborative development server that provides enhanced workflow tools and cross-model context management for AI coding assistants such as Claude and Gemini CLI. It supports seamless collaboration of multiple AI models to complete development tasks such as code review, debugging, and refactoring, and can maintain the continuation of conversation context between different workflows.
Python
17.9K
5 points
G
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
N
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
M
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
D
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
U
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
F
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
G
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
C
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
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2026AIBase