Memory MCP Server
Persistent memory using a knowledge graph
{
"mcpServers": {
"miot-mcp": {
"command": "<see-readme>",
"args": []
}
}
}No install config available. Check the server's README for setup instructions.
Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
基于 MijiaAPI 的米家设备智能控制代理,提供标准化的 MCP 服务,支持动态设备发现、属性读写和动作调用
Is it safe?
No package registry to scan.
No authentication — any process on your machine can connect.
MIT. View license →
Is it maintained?
Last commit 5 days ago. 43 stars.
Will it work with my client?
Transport: stdio. Works with Claude Desktop, Cursor, Claude Code, and most MCP clients.
No automated test available for this server. Check the GitHub README for setup instructions.
This server is missing a description. Tools and install config are also missing.If you've used it, help the community.
Add informationNo known vulnerabilities.
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Persistent memory using a knowledge graph
Privacy-first. MCP is the protocol for tool access. We're the virtualization layer for context.
Pre-build reality check. Scans GitHub, HN, npm, PyPI, Product Hunt — returns 0-100 signal.
Hash-verified file editing MCP server with token efficiency hook. 11 tools for AI coding agents.
MCP Security Weekly
Get CVE alerts and security updates for Miot Mcp and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
中文文档 | English
一个基于 mijiaAPI 3.x 的产品化米家 MCP 服务。它不再要求客户端先理解 did、siid/piid/aiid 这些协议细节,而是优先面向“家庭、房间、设备名、场景名”提供更自然的查询和控制能力。
get_service_statusprepare_loginreconnect_serviceclear_saved_loginrefresh_devicesget_tool_catalogpingget_home_overviewlist_homeslist_devicesget_deviceget_device_statusget_device_capabilitiescontrol_by_intentcontrol_deviceturn_on_deviceturn_off_deviceset_brightnessset_color_temperatureset_target_temperatureset_hvac_modeset_fan_speedset_cover_positionlist_scenesexecute_sceneget_consumable_itemsmijia://servicemijia://homesmijia://devicesmijia://scenesmijia://capabilitiesmijia://tooling建议使用 Python 3.10+。
poetry install
如果你不用 Poetry:
pip install -r requirements.txt
poetry run python mcp_server/mcp_server.py
测试握手:
poetry run python mcp_server/mcp_test.py
mijiaAPI 3.x 已移除账号密码登录,只支持二维码登录。
首次需要登录时,服务会:
~/.miot-mcp/qr.html~/.miot-mcp/qr.pngqr.html认证信息会保存到:
~/.miot-mcp/auth_data.json
prepare_loginget_service_statusservice.qr.page_path 或 service.qr.image_pathreconnect_service 或直接 refresh_devicesget_service_status 和 mijia://service 都会返回结构化登录状态,重点字段包括:
service.connectedservice.has_saved_loginservice.qr.open_modeservice.qr.page_pathservice.qr.image_pathservice.qr.login_urlassistant_summarynext_steps.should_scan_qrexport MIJIA_ENABLE_QR="true"
export MIJIA_QR_OPEN_MODE="browser"
export MIJIA_LOG_LEVEL="INFO"
说明:
MIJIA_ENABLE_QR:是否启用二维码登录,默认 trueMIJIA_QR_OPEN_MODE:高级配置,支持 browser / viewer / none,默认 browserMIJIA_LOG_LEVEL:日志级别,支持 DEBUG / INFO / WARNING / ERROR推荐直接使用虚拟环境里的 Python,而不是 poetry run。
{
"mcpServers": {
"mijia": {
"command": "/path/to/venv/bin/python",
"args": [
"/path/to/miot-mcp/mcp_server/mcp_server.py"
],
"env": {
"MIJIA_ENABLE_QR": "true",
"MIJIA_QR_OPEN_MODE": "browser",
"MIJIA_LOG_LEVEL": "INFO"
}
}
}
}
对于大多数 AI 客户端,建议优先这样使用:
prepare_loginget_service_statusrefresh_devicesget_home_overviewget_device_statuscontrol_by_intentlist_scenesexecute_scene如果客户端需要更稳定、更显式的路由,再补充:
list_homeslist_devicesget_deviceget_device_capabilitiescontrol_deviceprepare_login主动准备二维码登录。默认优先复用已有二维码页;如果需要重新走一轮扫码,可以传 force_reauth=true。
get_service_status返回服务连接状态、认证文件路径、日志路径、二维码页路径、下一步建议。
get_home_overview按家庭和房间输出设备总览,适合客户端先理解家庭结构。
get_device_status查看单个设备当前状态、可用操作和推荐下一步。
get_device_capabilities返回标准能力 schema 和 profile 驱动控制项,适合需要稳定路由的客户端。
control_by_intent自然语言式控制入口。适合大多数日常使用场景,例如“把卧室台灯亮度调到 30%”。
control_device统一结构化控制入口。适合客户端已经知道目标操作和参数时使用。
{
"name": "get_service_status",
"arguments": {}
}
{
"name": "prepare_login",
"arguments": {
"reopen_qr": true
}
}
{
"name": "refresh_devices",
"arguments": {}
}
{
"name": "get_home_overview",
"arguments": {}
}
{
"name": "get_device_status",
"arguments": {
"device_name": "吸顶灯",
"room": "客厅"
}
}
{
"name": "get_device_capabilities",
"arguments": {
"device_name": "台灯",
"roo
... [View full README on GitHub](https://github.com/javen-yan/miot-mcp#readme)