
Smartrent Mcp
io.github.Evin009由 GitHub 帳號 Evin009 發布v0.1.2更新於 Nov 10, 2026
Control SmartRent smart home devices (locks, thermostat, switches, sensors) via Claude
概覽
讓助理透過自然對話查看並控制 SmartRent 智慧家庭裝置,包括門鎖、恆溫器、燈光開關與感測器。
- 可以做什麼
- 測試伺服器是否仍在運作
- 讀取所有裝置狀態:門鎖、恆溫器、開關與感測器
- 依裝置名稱開啟或關閉燈光開關
- 上鎖或解鎖大門
- 設定恆溫器的溫度、模式(冷氣、暖氣、自動、關閉)與單位
- 適用情境
- 如果你的住家或大樓使用 SmartRent 硬體,並想在 Claude Desktop 中詢問裝置狀態、開關燈、鎖門或調整恆溫器,可以考慮安裝。
- 執行需求
- 以本機 Python 套件方式執行(需 Python 3.10+,可用 uv/uvx 或 pip 安裝),並在 Claude Desktop 設定檔中加入項目。需要一個已在 SmartRent 應用程式中設定好裝置的帳號,以及環境變數 SMARTRENT_EMAIL 與 SMARTRENT_PASSWORD。Claude Web 需自行以 SSE 模式部署,設定 TRANSPORT 及選用的 PORT。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Smartrent Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
SmartRent MCP
[PyPI version] [Python versions] [License: MIT]
An MCP (Model Context Protocol) server that lets Claude control your SmartRent smart home devices — locks, thermostat, light switches, and sensors — through natural conversation.
Table of Contents
- Requirements
- Installation
- Setup — Claude Desktop
- Setup — Claude Web
- Available Tools
- Self-Hosting (Remote / SSE mode)
- Troubleshooting
- Security
- Built With
- License
Requirements
- A SmartRent account with devices already set up in the SmartRent app (this only works if your building/home uses SmartRent hardware — front door locks, thermostats, switches, or sensors)
- Python 3.10+
- Either
uvorpip— you likely already have one of these
Installation
Option A — using uv (recommended, no separate install step)
If you don't have uv yet, install it once:
That's it — uvx will download and run the package automatically the first time Claude needs it. No manual install command required.
Option B — using plain pip
Setup — Claude Desktop
1. Open your Claude Desktop config file
- Mac:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
2. Add the server entry
If you installed via uv (Option A):
If you installed via pip (Option B):
If you already have other servers under "mcpServers", just add "smartrent-mcp" as another entry — don't replace the existing ones.
3. Restart Claude Desktop
Fully quit the app (Cmd+Q on Mac, or right-click the tray icon and Quit on Windows) and reopen it. Closing the window alone is not enough.
4. Try it
Ask Claude:
- "What's the status of my home?"
- "Turn on the kitchen lights"
- "Lock the front door"
- "Set temperature to 72 cool mode"
Setup — Claude Web
Claude Web only connects to remote MCP servers over a URL — it cannot run local commands like uvx. To use this server with Claude Web, you need to self-host a remote instance. See Self-Hosting below, then add your deployed URL in Claude Web → Settings → MCP Servers.
Available Tools
Device matching is partial and case-insensitive — "dining" will match a switch named "Dining Room".
Self-Hosting (Remote / SSE mode)
By default this package runs in stdio mode for local use with Claude Desktop. To run it as a remote, always-on server (for Claude Web or shared use), set the TRANSPORT environment variable:
This starts an HTTP/SSE server (default port 8000, override with PORT). Deploy it anywhere that runs Python — Railway, Render, Fly.io, etc. — with these environment variables set:
Once deployed, connect to it at https://your-deployment-url/sse.
Troubleshooting
"Invalid Host header" or connection refused on a remote deployment
The server disables DNS rebinding protection by default to support remote access. If you've changed this, make sure TransportSecuritySettings(enable_dns_rebinding_protection=False) is set in server.py.
Claude Desktop doesn't show any tools Make sure you fully quit and restarted the app (not just closed the window). Check the MCP logs:
- Mac:
~/Library/Logs/Claude/mcp-server-smartrent-mcp.log - Windows:
%APPDATA%\Claude\logs\mcp-server-smartrent-mcp.log
"Username or password was wrong" Verify your SmartRent credentials work by logging into the SmartRent mobile app with the same email/password.
"No switch/lock/thermostat found on this account" Your SmartRent account needs the corresponding device type already set up in the SmartRent app.
Security
Your SmartRent credentials are passed as environment variables directly to the server process and are never sent anywhere except SmartRent's own login API. They are not logged or stored by this package.
If you're self-hosting in sse mode, anyone with your server's URL can control your home — there is currently no authentication layer on remote mode. Keep your deployment URL private, or restrict network access to it.
Built With
License
MIT
來源:README.md,提交 d35b63b
工具
0版本歷史
1- v0.1.2最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分