Thanks to visit codestin.com
Credit goes to github.com

Skip to content
/ HA_MCP Public

๐Ÿ ๐Ÿค– HomeAssistant Add-on for Claude Desktop MCP integration. Control smart home devices, create automations, and manage your home with natural language through Claude.

License

Notifications You must be signed in to change notification settings

mtebusi/HA_MCP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Home Assistant Claude AI MCP Integration

Builder Lint GitHub Release License

Connect Claude Desktop to your Home Assistant instance using the Model Context Protocol (MCP).

๐Ÿš€ Features

  • Zero-Configuration Setup - Works immediately after installation
  • Natural Language Control - Control your entire smart home conversationally
  • Full Home Assistant Integration - Access all exposed entities and services
  • Secure by Default - OAuth2 authentication and SSL support
  • Real-time Communication - Server-Sent Events (SSE) transport
  • Multi-Architecture Support - ARM, x86, and more

๐Ÿ“ฆ Installation

Quick Start

  1. Add Repository to Home Assistant

    Settings โ†’ Add-ons โ†’ Add-on Store โ†’ โ‹ฎ โ†’ Repositories
    Add: https://github.com/mtebusi/ha-mcp
    
  2. Install the Add-on

    • Find "Claude AI MCP Bridge for Smart Home Control"
    • Click Install
    • Click Start
  3. Connect Claude Desktop

    • Open Claude Desktop
    • Settings โ†’ Custom Connectors โ†’ Add Remote MCP Server
    • Enter: http://homeassistant.local:8123
    • The add-on will be discovered automatically!

๐ŸŽฏ Usage

Once connected, you can control your Home Assistant with natural language:

  • "Turn on the living room lights"
  • "What's the temperature in the bedroom?"
  • "Lock all doors"
  • "Set the house to night mode"
  • "Show me energy usage for today"

๐Ÿ“š Documentation

๐Ÿ—๏ธ Repository Structure

ha-mcp/
โ”œโ”€โ”€ claude-ai-mcp/        # Main Home Assistant add-on
โ”‚   โ”œโ”€โ”€ mcp-server/       # TypeScript MCP server implementation
โ”‚   โ”œโ”€โ”€ rootfs/           # Add-on filesystem overlay
โ”‚   โ”œโ”€โ”€ config.yaml       # Add-on configuration
โ”‚   โ””โ”€โ”€ Dockerfile        # Container build instructions
โ”œโ”€โ”€ .github/              # GitHub Actions workflows
โ””โ”€โ”€ repository.yaml       # Home Assistant repository metadata

๐Ÿ› ๏ธ Development

Prerequisites

  • Node.js 20+
  • TypeScript 5+
  • Docker
  • Home Assistant development environment

Building Locally

# Clone the repository
git clone https://github.com/mtebusi/ha-mcp.git
cd ha-mcp

# Install dependencies
cd claude-ai-mcp/mcp-server
npm install

# Build TypeScript
npm run build

# Build Docker image
docker build -t claude-ai-mcp claude-ai-mcp/

Testing

# Run TypeScript tests
npm test

# Type checking
npm run type-check

# Linting
npm run lint

๐Ÿค Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

๐Ÿ“ License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

๐Ÿ™ Acknowledgments

  • Home Assistant for the amazing smart home platform
  • Anthropic for Claude and the Model Context Protocol
  • The Home Assistant community for continuous support and feedback

๐Ÿ“ง Support

๐Ÿ”— Links


Made with โค๏ธ for the Home Assistant Community