mijia-api

Level ALocal

使用代码、CLI、MCP 直接控制米家设备。

Overview

⚠️ **v5.0.0 兼容性说明**:设备规格数据源迁移至 miot-spec.org(小米官方数据源),有以下破坏性变更:

⭐ 956Development ToolsPythonRepo ↗Updated 2026-10-10

Installation

MCP client config (paste into mcp.json)

{
  "mcpServers": {
    "do1e-mijia-api": {
      "command": "uvx",
      "args": [
        "mijiaAPI"
      ]
    }
  }
}

Agent install prompt

Copy and paste into Cursor / Claude / other agents to install this MCP for you

Please read this MCP repository and install it into my current environment:
https://github.com/Do1e/mijia-api

Known working client config (can write into mcp.json):
{
  "mcpServers": {
    "do1e-mijia-api": {
      "command": "uvx",
      "args": [
        "mijiaAPI"
      ]
    }
  }
}

Please: 1) check README for deps and env vars; 2) write config for my client; 3) if secrets are missing, tell me what to fill — do not invent values.

Related servers