Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
No tool list is on record. This does not mean the server has no tools. Tools were not run.
No setup evidence yet No matching config or report on record. This does not mean the server is incompatible.
Same catalog task: Connect APIs & services.
MCP server for using Alchemy APIs
Same catalog task: Connect APIs & services.
MCP server for using the AMap Maps API
Same catalog task: Connect APIs & services.
Official MCP server for Anytype API
Fetched from the repository for this visit.
米家 API,可以使用代码、CLI、MCP 直接控制米家设备。
⚠️ v5.0.0 兼容性说明:设备规格数据源迁移至 miot-spec.org(小米官方数据源),有以下破坏性变更:
get_device_info()参数由device_model改为spec_type(设备规格类型 URN,可从get_devices_list()返回的设备信息中获取)- CLI
--get_device_info由接收 model 改为接收spec_type(可从-l输出的spec_type字段获取)- MCP 工具
get_device_spec参数由device_model改为spec_type除上述改动外,其余用法与 v4 保持兼容。
📖 完整文档请见 mijia-api.do1e.com
要求 Python >= 3.10
pip install mijiaAPI
# uv 用户可使用 `uv add mijiaAPI`
其他安装方式(源码安装、AUR)请参考文档。
from mijiaAPI import mijiaAPI, mijiaDevice
# 初始化并扫码登录(认证文件默认保存在 ~/.config/mijia-api/auth.json)
api = mijiaAPI()
api.login()
# 通过设备名称控制设备(推荐)
device = mijiaDevice(api, dev_name="我的台灯")
device.on = True # 打开设备
device.brightness = 60 # 设置亮度为 60%
# 查看设备支持的所有属性和动作
print(device)
CLI 用法:
mijiaAPI login # 扫码登录
mijiaAPI -l # 列出所有设备
mijiaAPI set --dev_name "台灯" --prop_name "brightness" --value 60
MCP 用法:
执行 uvx mijiaAPI login -p /path/to/auth.json 登录后,在 MCP 客户端配置中添加以下内容即可接入米家:
{
"mcpServers": {
"mijia-api": {
"command": "uvx",
"args": ["mijiaAPI[mcp]", "mcp", "-p", "/path/to/auth.json"]
}
}
}
更多用法(API 基础调用、MCP Server、CLI 完整参数、最佳实践等)请查阅完整文档。
本项目采用 GPL-3.0 开源许可证。
请注意:GPL-3.0 是具有“强传染性”的开源许可证。
如果您在您的项目中使用、修改或分发本项目的代码(包括作为库依赖),您的整个项目也必须以 GPL-3.0 或兼容许可证开源发布。
Loading reviews...
GitHub checked 447h ago - refresh overdue. Recently viewed repositories target hourly refresh.
Find a documented setup for your client. No sign-in, installation, or tool execution.
If this MCP is also published on mcpchannel.ai, you can subscribe from Browse and use the gateway config there instead.