Hubitat MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Hubitat MCP Serverturn off the bedroom light"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Hubitat MCP Server
A TypeScript MCP server that lets Claude control your Hubitat Elevation smart home hub. Works with Claude Code (CLI + mobile), Claude Desktop, and Claude.ai.
Features
12 MCP tools — Control devices, modes, HSM, and hub variables
Remote access — Built-in ngrok tunnel for access from anywhere
Dual transport — stdio (local) + Streamable HTTP (remote)
Auto-generated home context — Claude knows your devices by name
Device aliasing — Say "kitchen light" instead of device ID 42
Health endpoint — Monitor hub connectivity and tunnel status
Cross-platform — macOS, Raspberry Pi, Docker
Related MCP server: CrestronMCP client
Quick Start
macOS:
brew install node@22 git
git clone https://github.com/rfhayn/hubitat-mcp-server.git
cd hubitat-mcp-server
./setup.shRaspberry Pi / Linux:
sudo apt update && sudo apt install -y git
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
sudo apt install -y nodejs
git clone https://github.com/rfhayn/hubitat-mcp-server.git
cd hubitat-mcp-server
./setup.shThe setup script walks you through everything: Hubitat credentials, ngrok configuration, and Claude integration.
Prerequisites
1. Node.js 20+ and Git
macOS:
brew install node@22 gitRaspberry Pi / Linux:
sudo apt update && sudo apt install -y git
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
sudo apt install -y nodejs2. Hubitat Maker API
You need to enable the Maker API on your Hubitat hub:
Open your Hubitat admin interface at
http://<hub-ip>Go to Apps → Add Built-in App → Maker API
Select the devices you want Claude to control
Check "Allow control of modes"
Check "Allow control of HSM" (if you use Hubitat Safety Monitor)
Optionally add hub variables under "Allow endpoint to control these hub variables"
Click Done and note the App ID and Access Token displayed on the app page
3. ngrok Account (for remote access)
If you want to use Claude from your phone or claude.ai (not just local CLI):
Sign up free at ngrok.com
Copy your authtoken from dashboard
Claim a free static domain from domains (e.g.,
your-name.ngrok-free.app)
Manual Setup
If you prefer not to use the setup script:
# Install and build
npm install
npm run build
# Configure
cp .env.example .env
# Edit .env with your Hubitat and ngrok credentials
# Run
npm startConfiguration
All configuration is in .env:
# Hubitat Connection
HUBITAT_HOST=192.168.1.100 # Your hub's IP address
HUBITAT_APP_ID=42 # Maker API app ID
HUBITAT_ACCESS_TOKEN=xxx # Maker API access token
# MCP Server
MCP_TRANSPORT=http # "stdio" or "http"
MCP_HTTP_PORT=3000 # Port for HTTP transport
MCP_AUTH_TOKEN=xxx # Bearer token (auto-generated by setup)
# ngrok (optional)
NGROK_AUTHTOKEN=xxx # From ngrok dashboard
NGROK_DOMAIN=you.ngrok-free.app # Free static domainConnecting Claude
After starting the server, connect Claude using one of these methods:
Claude Code (CLI)
claude mcp add hubitat --transport http https://you.ngrok-free.app/mcp \
--header "Authorization: Bearer YOUR_AUTH_TOKEN"Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"hubitat": {
"type": "url",
"url": "https://you.ngrok-free.app/mcp",
"headers": {
"Authorization": "Bearer YOUR_AUTH_TOKEN"
}
}
}
}Claude.ai (Web)
Go to Settings → Connectors → Add MCP Server and paste your MCP URL.
Local stdio (no remote access needed)
claude mcp add hubitat --transport stdio -- node /path/to/hubitat-mcp-server/dist/index.jsAvailable Tools
Tool | Description |
| List all authorized devices |
| Get device details (attributes, capabilities, commands) |
| Send a command to a device (on, off, setLevel, lock, etc.) |
| Get recent event history for a device |
| List available hub modes |
| Get the currently active mode |
| Change the hub mode |
| Get HSM arm/disarm status |
| Arm or disarm HSM |
| Get a hub variable value |
| Set a hub variable value |
Available Resources
Resource | Description |
| All devices with current state |
| Hub mode and HSM status |
| Human-readable summary of your home (devices grouped by type) |
CLI Commands
hubitat-mcp setup # Interactive setup
hubitat-mcp start # Start server (default)
hubitat-mcp status # Check connectivity
hubitat-mcp update # Pull latest + rebuild
hubitat-mcp help # Show helpDeployment
Raspberry Pi (alongside Homebridge)
# Clone and set up
cd /opt
git clone https://github.com/rfhayn/hubitat-mcp-server.git
cd hubitat-mcp-server
./setup.sh # select "yes" for systemd serviceThe setup script installs a systemd service that auto-starts on boot and restarts on crash.
Docker
cp .env.example .env
# Edit .env with your credentials
docker compose up -dmacOS (launchd)
The setup script can install a launchd service for auto-start on login.
Architecture
Claude (mobile/web/desktop)
│ HTTPS
▼
ngrok (embedded in server)
│ localhost
▼
MCP Server (Node.js)
│ HTTP REST
▼
Hubitat Hub (Maker API)
│
▼
Your DevicesDevice Aliasing
After setup, a devices.json file is generated with aliases for each device:
{
"aliases": {
"12": ["kitchen light"],
"15": ["living room lamp", "living room light"],
"22": ["front door lock", "front door"]
}
}Edit this file to add custom aliases. Claude can then use natural names like "turn on the kitchen light."
Health Check
curl http://localhost:3000/healthReturns hub connectivity, tunnel status, and uptime.
License
MIT
This server cannot be installed
Maintenance
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
- Flicense-qualityDmaintenanceEnables natural language command and control of remote systems across multiple platforms through Claude AI using the Model Context Protocol.8
- AlicenseAqualityBmaintenanceEnables natural language control of Crestron 4-Series AV systems via MCP tools, connecting Claude to a processor over TCP with TLS authentication.149MIT
- Alicense-qualityDmaintenanceEnables Claude AI to control and manage Homey Pro smart home devices, flows, and analytics through natural language.12MIT
- AlicenseAqualityDmaintenanceEnables Claude to interact with Jira, Salesforce, and n8n through MCP tools, allowing automated reading of Jira stories, deploying Salesforce metadata, and triggering n8n workflows.1271MIT
Related MCP Connectors
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
Uptime, SSL, DNS and domain monitoring you can talk to from Claude or any MCP client.
MCP connector that lets ChatGPT list, search, and run your Apple Shortcuts via a local Mac agent
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/rfhayn/hubitat-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server