Controls Xiaomi Mijia smart home devices: list devices, get and set properties, run actions and scenes.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add oujiafan -- python -m mijia~/.codex/config.toml
[mcp_servers.oujiafan]
command = "python"
args = ["-m", "mijia"]
# codex mcp add oujiafan -- python -m mijia~/.cursor/mcp.json
{
"mcpServers": {
"oujiafan": {
"command": "python",
"args": [
"-m",
"mijia"
]
}
}
}.vscode/mcp.json
{
"servers": {
"oujiafan": {
"type": "stdio",
"command": "python",
"args": [
"-m",
"mijia"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"oujiafan": {
"command": "python",
"args": [
"-m",
"mijia"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"oujiafan": {
"command": "python",
"args": [
"-m",
"mijia"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"oujiafan": {
"command": "python",
"args": [
"-m",
"mijia"
]
}
}
}