Xiaomi Mi Home
by alwenxu
Control Xiaomi Mi Home devices (lights, plugs, sensors) via the miio protocol on your local network. Source: alwenxu/xiaomi-home-mcp. Single-script Python MCP run via uv.
Mi account passToken; the token file (~/.xiaomi-mcp/tokens.json) wins over this if both are present
Mi account user ID; token file wins if present
Device ID; token file wins if present
Optional KEY=VALUE pairs (one per line) set as extra environment variables on the connector's process. Lines starting with # are ignored; uncomment and edit what you need.
Default template
# Optional extra environment variables, one KEY=VALUE per line. # Lines starting with # are ignored: uncomment and edit what you need. # Documented options: https://github.com/alwenxu/xiaomi-home-mcp # Route the connector through an HTTP proxy, if your network needs one. # HTTPS_PROXY=http://proxy.example:8080 # Turn up logging for troubleshooting (read by many servers; the name varies). # LOG_LEVEL=debug
This template lands in your config when you add the connector. Edit or override anytime from My Connectors — click the connector's config action to open the same editor with your saved values.
Runtime commands — technical reference. Nothing to configure here; the desktop runs these for you.
python source https://github.com/gehaiyi/xiaomi-home-mcp#52f23d850f6078c815309cddcd0c031e3dcce74a mcp_server.py