kwikset-mcp
Enables Claude to check and control Kwikset Halo-family smart locks, including listing locks, getting status, and locking or unlocking doors.
README
kwikset-mcp
An MCP server that lets Claude check and control Kwikset Halo-family smart locks (Halo, Halo Keypad, Halo Touch, Halo Select / Select Plus).
This is a Node.js rewrite of an earlier Python version, switched to
avoid Python-specific setup friction on Windows (missing interpreter,
virtualenv activation, PATH aliasing). Node has no exact equivalent of
aiokwikset (the Python library the first version depended on), so this
version talks to Kwikset's cloud API directly: AWS Cognito for login, plus
a small REST API for homes/devices/lock/unlock.
Where the API details came from: Kwikset publishes no official API.
The Cognito pool/client IDs, API host, and REST paths this server uses
were extracted from the published, Apache-2.0-licensed source of
homebridge-kwikset-halo
(a community Homebridge plugin for these same locks), which in turn credits
aiokwikset for first documenting them. See the comments in src/const.js
and src/cognito.js for specifics. This is not officially supported by
Kwikset and could break if they change something server-side.
Testing status: every piece of logic in this server — the Cognito
login flow (including the two-step phone-verification challenge), token
refresh and persistence, the REST field-mapping, the unlock_door
confirmation guard, and every MCP tool end-to-end — was exercised against
hand-written mocks standing in for AWS Cognito, Kwikset's REST API, and the
MCP SDK, and all of it passes. What could not be tested here is calling
the real Kwikset service, since that needs an actual account and a
physical lock. Treat your first list_locks call as the real smoke test —
if it fails outright (not just one field showing null), the pool/host
constants may be stale; if a tool returns nulls, run debug_raw_devices
to see the real field names and compare against src/kwikset-client.js.
Why login is a separate step
Your Kwikset password should never pass through an LLM conversation. So
authentication happens once, in a plain terminal, via auth-setup.js,
which saves only the resulting session tokens locally (never the
password). The MCP server reads and silently refreshes those tokens on
every connection — it never asks Claude, or you via Claude, for your
password.
Setup
-
Install Node.js (18+) if you don't have it: nodejs.org — get the LTS installer. Verify with:
node --version -
Install dependencies, from inside this folder:
npm install -
Log in once. Credentials can be given three ways, checked in this order:
# 1. CLI flags (any OS/shell) node auth-setup.js --email you@example.com --password "hunter2"# 2. Environment variables (preferred over the flag above - a # command-line password is visible to other processes/users on the # machine and lands in shell history) # macOS / Linux KWIKSET_EMAIL=you@example.com KWIKSET_PASSWORD='hunter2' node auth-setup.js# Windows PowerShell $env:KWIKSET_EMAIL = "you@example.com" $env:KWIKSET_PASSWORD = "hunter2" node auth-setup.js# 3. Interactive prompt (any OS/shell; default if nothing else is given) node auth-setup.jsIf your account requires phone verification you'll be prompted for the code Kwikset texts you (or pass one up front with
--mfa-code/$KWIKSET_MFA_CODE). This writes~/.kwikset-mcp/tokens.json(owner-read/write only) and never touches your password again after this step. -
Point Claude at the server.
For Claude Code, from this project directory:
# macOS / Linux claude mcp add kwikset -- node "$(pwd)/src/server.js"# Windows PowerShell claude mcp add kwikset -- node "$PWD\src\server.js"For Claude Desktop, add this to your
claude_desktop_config.json(Settings → Developer → Edit Config), substituting the absolute path to this folder'ssrc/server.js:{ "mcpServers": { "kwikset": { "command": "node", "args": ["/absolute/path/to/kwikset-mcp/src/server.js"] } } }On Windows, use double backslashes in the JSON path, e.g.
"C:\\Users\\you\\kwikset-mcp\\src\\server.js".Then restart the Claude client so it picks up the new server.
-
Try it. Ask Claude something like "list my Kwikset locks" or "is the front door locked?" — it should call
list_locks/get_lock_status. Unlocking requires an explicit ask, sinceunlock_doorrefuses to act unless called withconfirm=true, which Claude will only do when you've clearly asked it to unlock that door.
Tools exposed
| Tool | Description |
|---|---|
list_locks |
All locks on the account, with status, battery %, home |
get_lock_status(device_id) |
Status/battery/model/serial for one lock |
lock_door(device_id) |
Lock a door |
unlock_door(device_id, confirm) |
Unlock a door (confirm=true required) |
debug_raw_devices |
Diagnostic: raw, unprocessed home/device JSON from Kwikset's API |
Re-authenticating
If tokens expire and can't silently refresh (e.g. the Kwikset password was
changed, or 2FA was reset), tool calls will return an auth_required
error with instructions — just re-run node auth-setup.js.
Files
kwikset-mcp/
├── auth-setup.js # run once, by hand, to log in
├── src/
│ ├── const.js # Cognito pool/client IDs, API host (see caveats above)
│ ├── auth.js # local token file read/write
│ ├── cognito.js # AWS Cognito login/refresh (amazon-cognito-identity-js)
│ ├── kwikset-client.js # REST calls: homes, devices, lock/unlock
│ └── server.js # MCP server + tool definitions
├── package.json
└── .gitignore
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。