Smartrent Mcp

io.github.Evin009由 GitHub 账号 Evin009 发布v0.1.2更新于 Nov 10, 2026

Control SmartRent smart home devices (locks, thermostat, switches, sensors) via Claude

已验证STDIO仅桌面位置与生活

概览

AI 生成的概览

让助手通过自然对话查看并控制 SmartRent 智能家居设备,包括门锁、恒温器、灯光开关和传感器。

可以做什么
  • 检测服务器是否在线
  • 读取所有设备状态:门锁、恒温器、开关和传感器
  • 按设备名称打开或关闭灯光开关
  • 锁定或解锁前门
  • 设置恒温器的温度、模式(制冷、制热、自动、关闭)和单位
适用场景
如果你的住宅或楼宇使用 SmartRent 硬件,并希望在 Claude Desktop 中询问设备状态、开关灯、锁门或调节恒温器,可以考虑安装。
运行要求
以本地 Python 包方式运行(需 Python 3.10+,可用 uv/uvx 或 pip 安装),并在 Claude Desktop 配置文件中添加条目。需要一个已在 SmartRent 应用中配置好设备的账号,以及环境变量 SMARTRENT_EMAIL 和 SMARTRENT_PASSWORD。Claude Web 需自行以 SSE 模式部署,设置 TRANSPORT 及可选的 PORT。
安装前请注意
服务器会持有你的 SmartRent 账号凭据(SMARTRENT_EMAIL、SMARTRENT_PASSWORD)并代为登录。它可锁定或解锁门锁、更改灯光和恒温器设置,误操作会影响真实住宅。远程 SSE 模式目前没有身份验证层,任何拿到 URL 的人都能控制你的家,且默认关闭了 DNS 重绑定保护。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Smartrent Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

SmartRent MCP

[SmartRent MCP server]

[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.

You: "Turn off the kitchen lights and lock the front door"Claude: "Kitchen turned off. Front Door - Lock is now locked."

Table of Contents


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 uv or pip — 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:

bash
# Mac/Linuxcurl -LsSf https://astral.sh/uv/install.sh | sh
# Windows (PowerShell)powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

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

bash
pip install smartrent-mcp

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):

json
{  "mcpServers": {    "smartrent-mcp": {      "command": "uvx",      "args": ["smartrent-mcp"],      "env": {        "SMARTRENT_EMAIL": "your_smartrent_email",        "SMARTRENT_PASSWORD": "your_smartrent_password"      }    }  }}

If you installed via pip (Option B):

json
{  "mcpServers": {    "smartrent-mcp": {      "command": "smartrent-mcp",      "env": {        "SMARTRENT_EMAIL": "your_smartrent_email",        "SMARTRENT_PASSWORD": "your_smartrent_password"      }    }  }}

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

ToolDescriptionParameters
pingTest that the server is alivenone
get_device_statusRead the status of all devices — locks, thermostat, switches, sensorsnone
switch_controlTurn a light switch on or offname (e.g. "kitchen"), action ("on" / "off")
lock_doorLock or unlock the front dooraction ("lock" / "unlock")
set_temperatureSet thermostat temperature, mode, and unittemperature (int), mode ("cool" / "heat" / "auto" / "off", default "cool"), unit ("F" / "C", default "F")

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:

bash
TRANSPORT=sse [email protected] SMARTRENT_PASSWORD=yourpassword smartrent-mcp

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:

VariableRequiredDescription
SMARTRENT_EMAILYesYour SmartRent account email
SMARTRENT_PASSWORDYesYour SmartRent account password
TRANSPORTNostdio (default) or sse
PORTNoPort to listen on in sse mode (default 8000)

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
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.2最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分