jango_blockchained/advanced-homeassistant-mcp
Built by Metorial, the integration platform for agentic AI.
jango_blockchained/advanced-homeassistant-mcp
Server Summary
Execute commands on Home Assistant devices
Retrieve information about the smart home
Stream responses for long-running operations
Validate parameters and inputs
Provide consistent error handling
Bridge the gap between AI assistants and your smart home ๐
A powerful, secure, and extensible Model Context Protocol (MCP) server that enables AI assistants like Claude, GPT, and Cursor to seamlessly interact with Home Assistant. Control your lights, climate, automations, and more through natural language commands.
Get up and running in minutes:
# Clone and install
git clone https://github.com/jango-blockchained/homeassistant-mcp.git
cd homeassistant-mcp
bun install
# Configure environment
cp .env.example .env
# Edit .env with your Home Assistant details
# Start the server
bun run start:stdio
That's it! Your AI assistant can now control your smart home. ๐คโจ
npx @jango-blockchained/homeassistant-mcp@latest
If you can't login to npm, use Bunx to run directly from GitHub:
# Install Bun first if you don't have it
curl -fsSL https://bun.sh/install | bash
# Then run from GitHub
bunx github:jango-blockchained/homeassistant-mcp
Alternatively, install directly from Git:
bun add git+https://github.com/jango-blockchained/homeassistant-mcp.git
homeassistant-mcp
# Install globally
bun add -g @jango-blockchained/homeassistant-mcp
# Or locally
bun add homeassistant-mcp
# Run
homeassistant-mcp
git clone https://github.com/jango-blockchained/homeassistant-mcp.git
cd homeassistant-mcp
bun install
bun run build
bun run start:stdio
Add to your claude_desktop_config.json:
{
"mcpServers": {
"homeassistant-mcp": {
"command": "npx",
"args": ["@jango-blockchained/homeassistant-mcp@latest"]
}
}
}
Or if you can't login to npm, use bunx:
{
"mcpServers": {
"homeassistant-mcp": {
"command": "bunx",
"args": ["github:jango-blockchained/homeassistant-mcp"]
}
}
}
The .vscode/settings.json is pre-configured for immediate use.
Add to .cursor/config/config.json:
{
"mcpServers": {
"homeassistant-mcp": {
"command": "npx",
"args": ["@jango-blockchained/homeassistant-mcp@latest"]
}
}
}
Or with bunx:
{
"mcpServers": {
"homeassistant-mcp": {
"command": "bunx",
"args": ["github:jango-blockchained/homeassistant-mcp"]
}
}
}
Start the HTTP server:
bun run start -- --http
Available endpoints:
POST /api/tools/call - Execute toolsGET /api/resources/list - List resourcesGET /api/health - Health checkWebSocket /api/ws - Real-time updatesCreate a .env file:
# Home Assistant
HASS_HOST=http://your-ha-instance:8123
HASS_TOKEN=your_long_lived_access_token
# Server
PORT=3000
NODE_ENV=production
# Security
JWT_SECRET=your-secret-key
RATE_LIMIT_WINDOW=15
RATE_LIMIT_MAX=50
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ
โ AI Assistant โโโโโบโ MCP Server โโโโโบโ Home Assistant โ
โ (Claude/GPT) โ โ โ โ โ
โโโโโโโโโโโโโโโโโโโ โ โโโโโโโโโโโโโโโ โ โโโโโโโโโโโโโโโโโโโ
โ โ Transport โ โ
โ โ Layer โ โ
โ โโโโโโโโโโโโโโโ โ
โ โโโโโโโโโโโโโโโ โ
โ โ Middleware โ โ
โ โ Layer โ โ
โ โโโโโโโโโโโโโโโ โ
โ โโโโโโโโโโโโโโโ โ
โ โ Tools โ โ
โ โ Layer โ โ
โโโโโโโโโโโโโโโโโโโ
Once integrated, your AI assistant can understand commands like:
"Turn off all lights in the bedroom" "Set the thermostat to 72ยฐF" "Activate the movie scene" "What's the current temperature in the living room?" "Notify everyone that dinner is ready"
We welcome contributions! Here's how to get involved:
bun install
bun run build
bun test
MIT License - see LICENSE for details.
Built with โค๏ธ using:
Transform your smart home into an AI-powered experience