HA MCP Bridge
Provides tools for interacting with Home Assistant: retrieving entities, calling services, and controlling lights, switches, automations, scripts, scenes, climate devices, media players, and covers.
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.
π HA MCP Bridge
Multi-tenant Home Assistant MCP Bridge - Connect your Home Assistant smart home to Claude and ChatGPT via the Model Context Protocol (MCP).
β¨ Features
π Multi-tenant Support - Multiple users can connect their own Home Assistant
π‘οΈ Secure Authentication - Individual API keys for each user
ποΈ User Dashboard - Web interface for account management
π Easy Deployment - Docker support with Traefik integration
π Usage Analytics - Track requests and monitor usage
π Real-time Updates - Live configuration changes
π Production Ready - SSL, rate limiting, monitoring
Related MCP server: Home Assistant MCP Server
π Quick Start
1. Clone and Install
git clone https://github.com/shaike1/ha-mcp-bridge.git
cd ha-mcp-bridge
npm install2. Setup Configuration
npm run setup3. Start the Server
npm start4. Access Dashboard
Visit http://localhost:3001/dashboard to register and manage your account.
π Prerequisites
Node.js 16.0.0 or higher
Home Assistant with Long-Lived Access Token
Claude Desktop or ChatGPT Desktop
π§ User Registration
Via Dashboard
Visit
/dashboardClick "Register"
Enter email, HA URL, and token
Get your API key
Copy Claude Desktop configuration
Via API
curl -X POST http://localhost:3001/register \
-H "Content-Type: application/json" \
-d '{
"email": "user@example.com",
"haUrl": "http://homeassistant.local:8123",
"haToken": "your_token_here"
}'π³ Docker Deployment
Simple Docker
docker-compose up -dProduction with Traefik
# Create network
docker network create traefik-network
# Update domain in docker-compose.traefik.yml
# Deploy
docker-compose -f docker-compose.traefik.yml up -dποΈ User Dashboard Features
Account Management - View and update settings
API Key Management - Regenerate keys securely
HA Configuration - Update Home Assistant settings
Connection Testing - Verify HA connectivity
Usage Statistics - Monitor API usage
Claude & ChatGPT Integration - Ready-to-use configurations
π€ ChatGPT Desktop Integration
ChatGPT Desktop supports MCP remote servers. Use either the dashboard snippet or the example config below.
Steps:
Start the server and register via
/dashboardto get your API key.In ChatGPT Desktop, open
Settings β Integrations β Model Context Protocol.Click
Add serverand paste this JSON (replace the URL if needed):
{
"mcpServers": {
"homeassistant": {
"type": "remote",
"url": "https://your-server-url.com",
"headers": { "Authorization": "Bearer YOUR_API_KEY" }
}
}
}You can also find a ready-made example at examples/chatgpt-desktop-config.json and a copyable config in the dashboard after login.
π‘οΈ Security Features
Individual API keys per user
Encrypted data storage
Rate limiting and CORS protection
Admin interface for management
Audit logging for all requests
π¨βπΌ Admin Features
# View all users
curl -H "Authorization: Bearer $ADMIN_API_KEY" \
http://localhost:3001/admin/users
# Delete user
curl -X DELETE \
-H "Authorization: Bearer $ADMIN_API_KEY" \
http://localhost:3001/admin/users/USER_API_KEYπ§ Available Tools
Core
get_entities β Get all entities or filter by domain
call_service β Call any HA service (domain/service)
Lights & Switches
get_lights β List all light entities
get_switches β List all switch entities
Automations & Scripts
get_automations β List automations
get_scripts β List scripts
run_script β Run a script (entity_id)
Scenes
get_scenes β List scenes
activate_scene β Activate a scene (entity_id)
Climate
get_climate β List climate entities
set_climate β Set temperature/hvac/preset/fan (entity_id, temperature, hvac_mode, preset_mode, fan_mode)
Media Player
get_media_players β List media players
media_play, media_pause, media_next, media_previous β Control playback (entity_id)
set_volume β Set volume (entity_id, volume_level 0.0β1.0)
Covers
get_covers β List covers (blinds, shades, garage doors)
open_cover, close_cover, stop_cover β Control movement (entity_id)
set_cover_position β Set position 0β100 (entity_id, position)
π Monitoring
Health endpoint:
/healthUser dashboard:
/dashboardAdmin interface:
/admin/usersDocker health checks included
π€ Contributing
Fork the repository
Create a feature branch
Make your changes
Add tests if applicable
Submit a pull request
π License
This project is licensed under the MIT License - see the LICENSE file for details.
π Support
π Documentation
π Report Issues
π¬ Discussions
β Acknowledgments
Home Assistant for the amazing platform
Anthropic for Claude and MCP
The open-source community for inspiration
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
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/
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yoβ¦
Zero-setup MCP gateway securely connecting AI to your tools with authentication and workflows
Remote streamable-HTTP MCP server running on a single Cloudflare Worker. Your assistant gets live Airbnb, Amazon, Booking.com, Google Flights, Maps and Reddit data, social search on X, Instagram and TikTok, the Meta Ad Library, and image/video generation without any keys. Connect your own accounts to let it send WhatsApp or Telegram messages, work an IMAP inbox, manage Meta Ads campaigns and publish to X and LinkedIn. OAuth 2.1 with PKCE; stored credentials are AES-256-GCM encrypted.
Related MCP Servers
- AlicenseAqualityBmaintenanceA Model Context Protocol server that enables AI assistants like Claude to interact directly with Home Assistant, allowing them to query device states, control smart home entities, and perform automation tasks.29353MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to control and monitor Home Assistant smart home devices through natural language interactions. Supports device control, entity state monitoring, history access, and automation generation with both MCP protocol and standalone HTTP REST API modes.1MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to control Home Assistant devices and services through the Model Context Protocol.91 PyPI106MIT
- AlicenseNot gradedqualityDmaintenanceConnects AI assistants to Home Assistant, enabling them to discover and control smart home entities, services, areas, devices, and cameras via the Model Context Protocol.4BSD 3-Clause