HA_MCP
๐ ๐ค HomeAssistant Add-on for Claude Desktop MCP integration. Control smart home devices, create automations, and manage your home with natural language through Claude.
claude mcp add --transport stdio mtebusi-ha_mcp node dist/index.js \ --env STATELESS="false" \ --env HA_BASE_URL="http://homeassistant.local:8123" \ --env CLAUDE_API_KEY="your-claude-api-key" \ --env OAUTH2_CLIENT_ID="your-oauth-client-id" \ --env OAUTH2_CLIENT_SECRET="your-oauth-client-secret"
How to use
This MCP server enables Claude AI to control and query your Home Assistant instance using natural language. Once the server is running and connected to Home Assistant, Claude Desktop can discover and connect to the MCP bridge, allowing you to issue conversational commands such as turning on lights, querying sensor data, adjusting climate, and controlling scenes and automations. The integration supports real-time updates via Server-Sent Events (SSE) and secure access with OAuth2 and optional SSL. To get started, install the Home Assistant add-on that provides the Claude AI MCP bridge, then connect Claude Desktop by adding a remote MCP server with the Home Assistant instance URL. After connection, you can converse with Claude to manage devices, read statuses, and operate services across your home setup. The system exposes your Home Assistant entities and services through natural language prompts, enabling a hands-free control experience.
How to install
Prerequisites:
- Node.js 20+ (for development/building the MCP server)
- Docker (optional, for containerized deployment)
- Home Assistant environment (for add-on deployment)
Install from source (local development):
# Clone the repository
git clone https://github.com/mtebusi/ha-mcp.git
cd ha-mcp
# Install dependencies for the MCP server
cd claude-ai-mcp/mcp-server
npm install
# Build TypeScript to JavaScript (if applicable)
npm run build
# Run the MCP server locally (example)
npm start
Run with Docker (containerized):
# Build Docker image (from repository root)
docker build -t claude-ai-mcp claude-ai-mcp/
# Run container
docker run -p 8123:8123 -e HA_BASE_URL=http://localhost:8123 -e CLAUDE_API_KEY=your-key claude-ai-mcp
In Home Assistant (Add-on workflow):
- Add repository to Home Assistant: https://github.com/mtebusi/ha-mcp
- Install the add-on: "Claude AI MCP Bridge for Smart Home Control" and start it
- In Claude Desktop, go to Settings โ Custom Connectors โ Add Remote MCP Server
- Enter your Home Assistant URL (e.g., http://homeassistant.local:8123) and connect
Prerequisites alignment:
- Ensure your Claude API key and OAuth2 credentials are configured if required by the bridge
- Configure environment variables or add-on settings as documented by the add-on for secure access
- If using Docker, expose the correct ports and ensure network accessibility to Home Assistant
Additional notes
Tips and common issues:
- Ensure the MCP server can reach your Home Assistant instance on the configured base URL (use localhost or a reachable IP in your network).
- If Claude cannot discover the MCP bridge automatically, verify network visibility and that the add-on is running with correct URL exposure.
- For secure deployments, enable SSL in your add-on settings and provide OAuth2 credentials as needed by Claude integration.
- Environment variables like CLAUDE_API_KEY and OAUTH2_CLIENT_* are placeholders; replace with real credentials in a secure manner.
- When building locally, use npm run build to generate JavaScript from TypeScript prior to running the server.
- If you update the MCP server code, rebuild and restart the container or Node process to apply changes.
Related MCP Servers
mcp_server_filesystem
MCP File System Server: A secure Model Context Protocol server that provides file operations for AI assistants. Enables Claude and other assistants to safely read, write, and list files in a designated project directory with robust path validation and security controls.
fast-filesystem
A high-performance Model Context Protocol (MCP) server that provides secure filesystem access for Claude and other AI assistants.
awesome-dxt
๐ A curated list of awesome Desktop Extensions (DXT) and MCP servers for Claude Desktop. Discover, share, and contribute to the growing ecosystem of AI-powered local tools and automations.
work-memory
Never lose context again - persistent memory management system for AI-powered workflows across multiple tools
mcp-windows-automation
๐ AI-Powered Windows Automation Server using Model Context Protocol (MCP) | Control Windows apps, automate tasks, and manage systems through natural language commands with Claude, ChatGPT & other AI assistants | 80+ automation tools
substack -plus
The most advanced Substack MCP server. 12 tools, browser auth, rich text support. Not affiliated with Substack Inc.