HomeMCPBridge
Native macOS HomeKit integration for AI assistants via Model Context Protocol
HomeMCPBridge
Native macOS HomeKit integration for AI assistants via the Model Context Protocol (MCP).
Control your entire smart home with natural language - no Homebridge, no Home Assistant, no cloud services. Just direct HomeKit access.
What is this?
HomeMCPBridge is a macOS app that lets AI assistants (Claude, and others that support MCP) control your HomeKit devices directly. Ask your AI to "turn off the living room lights" or "set the bedroom to 50% brightness" and it just works.
Features
- Native HomeKit - Direct access to Apple's HomeKit framework, no bridges or hacks
- MCP Protocol - Works with Claude Code, Claude Desktop, and any MCP-compatible AI
- All Device Types - Lights, switches, outlets, fans, locks, garage doors, thermostats
- Full Control - On/off, brightness, color (hue/saturation), lock/unlock, open/close
- Menu Bar App - Runs quietly in the background with a status window
- Plugin System - Extend with Govee, Scrypted NVR, and more
- Device Linking - Link HomeKit devices with plugin counterparts to avoid duplicates
- MCPPost - Broadcast real-time sensor events to your AI system
- Camera Snapshots - Capture images from HomeKit and Scrypted cameras
- Motion Events - Monitor motion sensors, doorbells, and contact sensors
Requirements
- macOS 14.0 (Sonoma) or later
- HomeKit-enabled devices configured in the Apple Home app
- An MCP-compatible AI assistant (Claude Code, Claude Desktop, etc.)
Installation
Option 1: Download Release
Download the latest .dmg from the Releases page.
Option 2: Build from Source
-
Clone this repo:
git clone https://github.com/rodaddy/HomeMCPBridge.git cd HomeMCPBridge -
Open in Xcode:
open HomeMCPBridge.xcodeproj -
Configure signing for your environment:
- Go to the HomeMCPBridge target > Signing & Capabilities
- Select your Development Team from the dropdown
- Optionally change the Bundle Identifier to your own (e.g.,
com.yourname.HomeMCPBridge) - These values are intentionally left blank in the repo so contributors can set their own
-
Build and run (Cmd+R) -- select "My Mac (Mac Catalyst)"
-
Grant HomeKit access when prompted
Configuration
Add this to your MCP configuration file:
For Claude Code (.mcp.json in your project or ~/.claude/mcp.json):
{
"mcpServers": {
"homekit": {
"command": "/Applications/HomeMCPBridge.app/Contents/MacOS/HomeMCPBridge",
"args": []
}
}
}
For Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"homekit": {
"command": "/Applications/HomeMCPBridge.app/Contents/MacOS/HomeMCPBridge",
"args": []
}
}
}
Usage
Once configured, you can ask your AI things like:
- "List all my HomeKit devices"
- "Turn on the kitchen lights"
- "Set the living room lamp to 50% brightness"
- "What's the temperature in the garage?"
- "Turn off all the backyard lights"
- "Lock the front door"
- "Is the garage door open?"
- "Capture a snapshot from the front door camera"
- "Is there motion in the backyard?"
Available MCP Tools
Device Control
| Tool | Description |
|---|---|
list_devices | List all devices from HomeKit and plugins |
list_rooms | List all rooms in all homes |
list_homes | List all configured HomeKit homes |
get_device_state | Get current state of a device |
control_device | Control a device (on, off, toggle, brightness, color, lock, unlock, open, close) |
Cameras
| Tool | Description |
|---|---|
list_cameras | List all HomeKit cameras |
capture_snapshot | Capture image from camera (returns base64) |
Motion & Events
| Tool | Description |
|---|---|
list_motion_sensors | List motion sensors, occupancy sensors, doorbells |
get_motion_state | Get current motion detection state |
subscribe_events | Enable motion and contact event buffering |
get_pending_events | Poll for buffered motion/doorbell/contact events |
Scrypted NVR (requires configuration)
| Tool | Description |
|---|---|
scrypted_list_cameras | List all Scrypted cameras with capabilities |
scrypted_capture_snapshot | Capture snapshot from Scrypted camera |
scrypted_get_camera_state | Get camera state including motion detection |
scrypted_set_webhook_token | Configure webhook token for a camera |
Supported Device Types
- Lights - On/off, brightness, color (hue/saturation)
- Switches - On/off
- Outlets - On/off
- Fans - On/off
- Locks - Lock/unlock
- Garage Doors - Open/close
- Thermostats - Read temperature (control coming soon)
- Sensors - Read values
- Cameras - Capture snapshots
- Motion Sensors - Detect motion/occupancy
- Contact Sensors - Door/window open/close
App Tabs
Status
Overview of your smart home setup:
- Apple HomeKit device count
- Plugin status and device counts
- Device link count
- App settings (menu bar, dock icon)
Devices
Browse all devices organized by room:
- Tap (i) to link/unlink devices
- Shows device source (HomeKit, Govee, etc.)
- Indicates linked devices
Plugins
Configure third-party integrations:
- Govee - Smart lights and appliances
- Scrypted NVR - Network video recorder cameras
MCPPost
Broadcast real-time sensor events to your AI:
- Configure webhook endpoint URL
- Enable/disable event broadcasting
- View recent events and their status
- Test endpoint connectivity
Setup
Complete setup guide with:
- MCP configuration snippets
- Plugin setup instructions (Govee, Scrypted)
- MCPPost configuration
- Device linking guide
Log
Full activity log for debugging:
- All MCP tool calls
- Plugin activity
- Event notifications
- Clear and scroll controls
Device Linking
When you have the same device in both HomeKit and a plugin (like Govee), you can link them so they're treated as one device:
- Go to the Devices tab
- Tap the (i) button on any device
- Select "Link Device..."
- Choose the corresponding device from another source
Linked devices use the most capable source automatically (plugins usually have more features than HomeKit).
MCPPost (Event Broadcasting)
MCPPost broadcasts real-time sensor events to a custom HTTP endpoint, enabling your AI system (like Jarvis) to receive push notifications.
Configuration
- Open HomeMCPBridge
- Go to the MCPPost tab
- Enter your endpoint URL (e.g.,
http://localhost:8000/api/events) - Enable broadcasting with the toggle
- Click "Test Endpoint" to verify
Supported Events
- Motion sensors - Motion detected/cleared
- Occupancy sensors - Room occupancy changes
- Doorbells - Ring events
- Contact sensors - Door/window open/close
Event Payload
{
"event_id": "uuid",
"event_type": "motion|occupancy|doorbell|contact",
"source": "HomeKit",
"timestamp": "2024-01-18T21:00:00Z",
"sensor": {
"name": "Front Door Motion",
"id": "sensor-uuid",
"room": "Hallway",
"home": "Home"
},
"data": {
"detected": true,
"state": "open",
"isOpen": true
}
}
Plugin System
Built-in Plugins
| Plugin | Authentication | Description |
|---|---|---|
| Apple HomeKit | Native (always enabled) | Direct access to HomeKit devices |
| Govee | API Key | Control Govee smart lights and appliances |
| Scrypted NVR | Username/Password | Access Scrypted cameras and motion detection |
Govee Setup
- Open the Govee Home app on your phone
- Go to Settings > About Us > Apply for API Key
- Wait for approval (usually within a few days)
- Copy your API key from the email
- In HomeMCPBridge, go to Plugins > Govee and enter your API key
- Enable the Govee plugin
Scrypted NVR Setup
- Install and configure Scrypted on your network
- Note your Scrypted server URL (e.g.,
https://mac-mini.local:10443) - Install the
@scrypted/webhookplugin in Scrypted - For each camera, create a Camera webhook and note the token
- In HomeMCPBridge, go to Plugins > Scrypted and enter credentials
- Use
scrypted_set_webhook_tokentool to configure each camera's token
Plugin Development Guide
Want to add support for another smart home platform? Here's how to create a custom plugin.
Plugin Protocol
protocol DevicePlugin: AnyObject {
var identifier: String { get }
var displayName: String { get }
var isEnabled: Bool { get set }
var isConfigured: Bool { get }
var configurationFields: [PluginConfigField] { get }
func initialize() async throws
func shutdown() async
func listDevices() async throws -> [UnifiedDevice]
func getDeviceState(deviceId: String) async throws -> [String: Any]
func controlDevice(deviceId: String, action: String, value: Any?) async throws -> ControlResult
func configure(with credentials: [String: String]) async throws
func clearCredentials()
}
Registering Your Plugin
func application(_ application: UIApplication, didFinishLaunchingWithOptions...) {
PluginManager.shared.register(MyPlatformPlugin())
}
Privacy
HomeMCPBridge:
- Runs entirely on your Mac
- Communicates directly with your HomeKit devices via Apple's framework
- Does not send any data to external servers (except MCPPost, which you configure)
- Does not require an internet connection for local device control
Troubleshooting
"No devices found"
- Make sure you have devices set up in the Apple Home app
- Grant HomeKit permission when the app first launches
- Try restarting the app
"Device not reachable"
- Check that the device is powered on and connected to your network
- Verify it shows as reachable in the Apple Home app
MCP not connecting
- Ensure the app is running (check the menu bar)
- Verify the path in your MCP config matches where you installed the app
- Restart your AI assistant after changing the config
Scrypted snapshots not working
- Ensure the @scrypted/webhook plugin is installed
- Create a Camera webhook for each camera in Scrypted
- Use
scrypted_set_webhook_tokento configure the tokens
Contributing
Contributions welcome! Feel free to open issues or submit PRs.
License
MIT License - see LICENSE for details.
Acknowledgments
- Built with Apple's HomeKit framework
- Uses the Model Context Protocol by Anthropic
Máy chủ liên quan
Taiwan-Health-MCP
A Model Context Protocol (MCP) server exposing Taiwan healthcare datasets such as ICD-10 and drug information for AI agents.
ShapeBridge
MCP Agent to understand 3D models
Upstox MCP Server
A Model Context Protocol (MCP) server that integrates with the Upstox Trading API, enabling AI agents like Claude to securely access Indian stock market data, perform technical analysis, and view account information in read-only mode.
TwelveLabs
The TwelveLabs MCP Server provides seamless integration with the TwelveLabs platform. This server enables AI assistants and applications to interact with TwelveLabs powerful video analysis capabilities through a standardized MCP interface.
drain-mcp
Open marketplace for AI services — LLMs, image/video generation, web scraping, model hosting, data extraction, and more. Agents pay per use with USDC micropayments on Polygon.
Text-to-Speech (TTS)
A Text-to-Speech server supporting multiple backends like macOS say, ElevenLabs, Google Gemini, and OpenAI TTS.
Volume Wall Detector
Provides real-time stock trading volume analysis, detects significant price levels (volume walls), and tracks trading imbalances.
Sweeppea MCP
Manage sweepstakes, participants, and winner drawings with legal compliance in the US and Canada directly from your AI agent. Access requires an active Sweeppea subscription and API Key.
FAIM Time-Series forecasting
Zero-shot Time-Series forecasting with foundation time-series models
Zo
Zo is your personal vibe server in the cloud with 50+ tools and integrations. Add texting, email, calendar, research and more to your harness easily.