Skip to main content
Glama

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.

Related MCP server: Lutron Caseta MCP Server

Setup

  1. Install Node.js (18+) if you don't have it: nodejs.org — get the LTS installer. Verify with:

    node --version
  2. Install dependencies, from inside this folder:

    npm install
  3. 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.js

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

  4. 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's src/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.

  5. 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, since unlock_door refuses to act unless called with confirm=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
Install Server
F
license - not found
A
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    Not graded
    quality
    C
    maintenance
    Enables control of smart locks through the Seam API, allowing users to lock/unlock doors, check status, and manage access codes across 100+ supported lock brands. Supports comprehensive access code management including temporary codes and multi-lock operations.
  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables Claude Desktop to control Lutron Caseta smart lighting systems locally, including turning lights on/off, setting dimmer levels, and activating scenes.
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables Claude Desktop to read and control Home Assistant devices via natural language, with configurable safety restrictions on sensitive actions.
    2
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables Claude to control PetLibro RFID pet feeders and water fountains by checking food/battery/water status, dispensing food by the cup, and force-opening feeder lids via the PetLibro cloud API.
    GPL 3.0

View all related MCP servers

Related MCP Connectors

  • WHOOP recovery, strain, sleep and workouts in Claude via official WHOOP OAuth. Free, open source.

  • Connect Claude to Fathom meeting recordings, transcripts, and summaries

  • Garmin data in Claude & ChatGPT via the Garmin Health API. OAuth sign-in, no password sharing.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jgonzalez007/kwikset-mcp-node'

If you have feedback or need assistance with the MCP directory API, please join our Discord server