Hubitat MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Hubitat MCP Server
Model Context Protocol server for Hubitat Elevation home automation via Maker API
Integrate your Hubitat Elevation smart home hub with Claude and other MCP-compatible applications. Control devices, monitor status, manage modes, and automate your home through natural language.
π Features
π± Device Control - Turn devices on/off, set levels, adjust colors, and execute any supported command
π Real-time Monitoring - Query device status, attributes, and recent events
π Mode Management - View and change hub modes (Home, Away, Night, etc.)
π‘οΈ HSM Integration - Control Hubitat Safety Monitor (arm/disarm/status)
π’ Hub Variables - Read and write hub variables for automation logic
β‘ Full Maker API Support - Complete implementation of all Maker API endpoints
π Secure - Uses access tokens, validates all inputs, never stores credentials
π TypeScript - Fully typed for excellent IDE support and fewer errors
Related MCP server: Home Assistant MCP Server
π¦ Installation
Prerequisites
Hubitat Elevation hub on your local network
Maker API app installed and configured on your Hubitat hub
Node.js 18 or higher (optional - only if you want to build/test locally)
Quick Start
# Clone the repository
git clone https://github.com/MvdMunnik26/Hubitat-MCP.git
cd Hubitat-MCP
# That's it! No build required when using npx tsx method
# Configure Claude Desktop (see Step 3 below) and you're readyOptional: Local Testing
If you want to test the server locally:
# Install dependencies
npm install
# Create configuration file
cp .env.example .env
# Edit .env with your Hubitat details
# HUBITAT_HOST=10.10.1.250
# HUBITAT_APP_ID=688
# HUBITAT_ACCESS_TOKEN=your_token_here
# Option 1: Run with tsx (no build needed)
npx tsx src/index.ts
# Option 2: Build and run
npm run build
npm startβοΈ Configuration
Step 1: Enable Maker API on Hubitat
Open your Hubitat hub web interface
Navigate to Apps β Add Built-In App
Select Maker API
Choose which devices to authorize
Note the App ID and Access Token shown in the app
Step 2: Configure Environment Variables
Create a .env file in the project root:
HUBITAT_HOST=192.168.1.100 # Your hub's IP address
HUBITAT_APP_ID=123 # From Maker API app
HUBITAT_ACCESS_TOKEN=abc123... # From Maker API appStep 3: Add to Claude Desktop
Add this to your Claude Desktop configuration file:
Location:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
Recommended Configuration (runs TypeScript directly, no build needed):
{
"mcpServers": {
"hubitat": {
"command": "npx",
"args": [
"-y",
"tsx",
"/absolute/path/to/Hubitat-MCP/src/index.ts"
],
"env": {
"HUBITAT_HOST": "192.168.1.100",
"HUBITAT_APP_ID": "123",
"HUBITAT_ACCESS_TOKEN": "your_access_token_here"
}
}
}
}Example (Windows):
{
"mcpServers": {
"hubitat": {
"command": "npx",
"args": [
"-y",
"tsx",
"C:\\AI-projects\\Hubitat-MCP\\src\\index.ts"
],
"env": {
"HUBITAT_HOST": "192.168.1.100",
"HUBITAT_APP_ID": "123",
"HUBITAT_ACCESS_TOKEN": "your_access_token_here"
}
}
}
}Alternative: Run compiled version (requires build):
{
"mcpServers": {
"hubitat": {
"command": "node",
"args": ["/absolute/path/to/Hubitat-MCP/dist/index.js"],
"env": {
"HUBITAT_HOST": "192.168.1.100",
"HUBITAT_APP_ID": "123",
"HUBITAT_ACCESS_TOKEN": "your_access_token_here"
}
}
}
}Step 4: Restart Claude Desktop
Completely quit and restart Claude Desktop for the MCP server to connect.
π― Usage Examples
List All Devices
User: "List all my Hubitat devices"
Claude: Uses hubitat_list_devices toolControl a Device
User: "Turn on the living room light"
Claude: Uses hubitat_send_command with device ID and "on" command
User: "Set the bedroom light to 50%"
Claude: Uses hubitat_send_command with "setLevel" and parameter "50"Check Device Status
User: "Is the front door locked?"
Claude: Uses hubitat_get_attribute to check "lock" attribute
User: "What's the temperature in the bedroom?"
Claude: Uses hubitat_get_attribute to check "temperature" attributeChange Modes
User: "Set the house to away mode"
Claude: Uses hubitat_get_modes to find mode ID, then hubitat_set_modeSafety Monitor
User: "Arm the security system for away"
Claude: Uses hubitat_set_hsm with "armAway"π§ Available Tools
The MCP server provides these tools to Claude:
Device Management
hubitat_list_devices- List all authorized deviceshubitat_get_device- Get detailed device informationhubitat_send_command- Send command to a device with automatic retry logichubitat_get_attribute- Get current attribute valuehubitat_get_events- Get recent device events
β‘ Automatic Retry Logic
Battery-Powered Device Support: The server automatically retries commands for battery-powered Z-Wave devices (thermostats, locks, etc.) that may be in sleep mode.
Supported Commands:
Thermostat setpoints (
setHeatingSetpoint,setCoolingSetpoint)Dimmer levels (
setLevel)Switches (
on,off)Locks (
lock,unlock)
Retry Strategy:
Initial command sent immediately
If not verified: Wait 2 seconds, retry
If still not verified: Wait 5 more seconds, retry
If still not verified: Wait 10 more seconds, final retry
Reports success/failure with detailed verification info
Example Response:
{
"success": true,
"device": { /* device details */ },
"verification": {
"attribute": "heatingSetpoint",
"expectedValue": "20.0",
"attempts": 2,
"message": "Command verified after 1 retry(s) (2s wait)"
}
}Hub Variables
hubitat_list_variables- List all hub variableshubitat_get_variable- Get variable valuehubitat_set_variable- Set variable value
Modes & Safety
hubitat_get_modes- Get available modeshubitat_set_mode- Change hub modehubitat_get_hsm_status- Get HSM statushubitat_set_hsm- Set HSM status
π API Documentation
Device Commands
Common commands supported by most devices:
Switches:
on,off,toggleDimmers:
setLevel(0-100)Color Bulbs:
setColor(hue, saturation, level),setHue,setSaturationLocks:
lock,unlockThermostats:
setHeatingSetpoint,setCoolingSetpoint,setThermostatModeGeneric:
refresh
Device Attributes
Common attributes you can query:
switch: on/off
level: 0-100 (dimmer level)
temperature: Current temperature
humidity: Current humidity
lock: locked/unlocked
contact: open/closed (doors/windows)
motion: active/inactive
presence: present/not present
HSM Status Values
armAway- Arm AwayarmHome- Arm HomearmNight- Arm Nightdisarm- Disarm alldisarmAll- Disarm allarmRules- Arm custom rulesdisarmRules- Disarm custom rulescancelAlerts- Cancel alerts
π Security
Access Token Security: Your Maker API access token provides full control over authorized devices. Keep it secure.
Local Network: This MCP server communicates directly with your Hubitat hub on your local network (no cloud).
No Credential Storage: Credentials are passed as environment variables, never stored in code.
Input Validation: All inputs are validated using Zod schemas.
HTTPS Support: Use
https://inHUBITAT_HOSTif your hub has HTTPS enabled.
Security Best Practices
Never commit
.envfile - It contains your access tokenUse
.env.exampleas a templateRotate tokens periodically - Generate new access token in Maker API if compromised
Limit device access - Only authorize necessary devices in Maker API
Network security - Keep Hubitat hub on secure local network
π οΈ Development
Build
npm run buildDevelopment Mode (watch)
npm run devRun Tests
npm testLint
npm run lintπ Further Reading
π€ Contributing
Contributions welcome! Please:
Fork the repository
Create a feature branch (
git checkout -b feature/amazing-feature)Commit your changes (
git commit -m 'feat: add amazing feature')Push to the branch (
git push origin feature/amazing-feature)Open a Pull Request
Please follow conventional commits format.
π License
This project is licensed under the MIT License - see the LICENSE file for details.
π Acknowledgments
Built for the Model Context Protocol
Powered by Hubitat Elevation
Uses the MCP TypeScript SDK
π Troubleshooting
Server Won't Start
Check Node version:
node --version(must be β₯18)Verify
.envfile: Ensure all required variables are setTest hub connectivity:
ping <HUBITAT_HOST>Check Maker API: Ensure app is installed and devices are authorized
Devices Not Responding
Verify device authorization: Check Maker API app settings
Test endpoint manually: Try accessing
http://<host>/apps/api/<app_id>/devices?access_token=<token>in a browserCheck device ID: Use
hubitat_list_devicesto see correct IDs
Claude Can't See the Server
Restart Claude Desktop: Completely quit and reopen
Check configuration: Verify
claude_desktop_config.jsonis correctCheck logs: Look in Claude Desktop logs folder for errors
Verify path: Ensure absolute path to
index.jsis correct
π Support
Issues: GitHub Issues
Discussions: GitHub Discussions
Hubitat Community: Hubitat Community Forums
Made with β€οΈ for the smart home community
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP connector that lets ChatGPT list, search, and run your Apple Shortcuts via a local Mac agent
Automate 1,000+ services from any MCP-compatible AI agent: build Applets, run actions and queries.
Control your existing Philips lights, Sonos speakers, Roborock vacuums and other supported devices through Port OS cloud. Give ChatGPT, Claude and other MCP-compatible assistants access to the devices you connect. Turn off the living room lights, play music on your speakers, adjust the thermostat, run a vacuum in a room, check a camera snapshot or find a connected tracker. Available actions depend on your linked provider accounts and each deviceβs supported capabilities. Port OS runs in the cloud; no local server is required. You choose the account, device and capability permissions each assistant receives. Device operations require user OAuth; public tool discovery does not grant device access. Port OS is in alpha. Setup: https://portoperatingsystem.com/docs/getting-started/ Support: https://portoperatingsystem.com/contact/
Build and run AI workflows, agents, data tables and 1000+ API integrations from any MCP client.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables Claude AI to control and manage Homey Pro smart home devices, flows, and analytics through natural language.12MIT
- AlicenseNot gradedqualityDmaintenanceEnables Claude Desktop to read and control Home Assistant devices via natural language, with configurable safety restrictions on sensitive actions.3MIT
- AlicenseNot gradedqualityDmaintenanceEnables Claude to control Hubitat smart home hub devices, modes, HSM, and variables via MCP tools, with remote access via ngrok and device aliasing.2MIT
- AlicenseAqualityDmaintenanceMCP server for Hubitat Elevation hubs that controls devices via the Maker API, with optional gated access to undocumented admin routes, supporting device listing, command sending, virtual device and hub variable automation for Rule Machine, and hub management features.8MIT