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
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.