home-assistant-vibecode-agent
Home Assistant MCP server agent. Enable Cursor, VS Code, Claude Code, or any MCP-enabled IDE to help you vibe-code and manage Home Assistant: create and debug automations, design dashboards, tweak themes, modify configs, and deploy changes using natural language
claude mcp add --transport stdio coolver-home-assistant-vibecode-agent npx -y @coolver/home-assistant-mcp
How to use
HA Vibecode Agent MCP integration provides a controlled bridge between your AI IDE (Cursor, VS Code, Claude, or any MCP-enabled IDE) and your Home Assistant instance. The MCP server component runs on your computer and communicates with the Home Assistant Agent running inside Home Assistant as an add-on. This separation gives the AI access to a stable, well-defined API surface and the full REST/WebSocket capabilities of Home Assistant, enabling programmatic reading of configuration, entities, and devices, as well as automated creation of automations, scripts, helpers, and Lovelace dashboards. Tools available through the MCP server include: reading and listing entities, services, configurations, and Lovelace dashboards; creating and updating automations, scripts, helpers, and sensors; managing themes and dashboards; and performing safe file and repository operations with versioning and rollback support. In practice, you can describe your goal in natural language, and the agent will draft the necessary automations and UI changes, validate configurations, commit changes with meaningful messages, and allow one-click rollback if needed.
How to install
Prerequisites:
- A computer where you run your MCP server (outside Home Assistant) with Node.js and npm installed.
- Access to the MCP ecosystem and the ability to install npm packages globally or run via npx.
Installation steps:
- Install Node.js and npm from https://nodejs.org/.
- Install the MCP package globally (or use npx when running):
- Global install (optional): npm install -g @coolver/home-assistant-mcp
- Run the MCP server using the MCP package (via npx or a local install):
- Using npx (recommended): npx -y @coolver/home-assistant-mcp
- If installed locally: npx -y @coolver/home-assistant-mcp
- Ensure the Home Assistant Agent add-on is running in your Home Assistant instance and that the MCP server can reach it through the configured API endpoint.
- In your MCP IDE, add a new MCP server configuration pointing to the command specified by the mcp_config (see the generated JSON) and connect.
Optional: consult the repository documentation for any environment-specific tweaks or extra configuration flags, such as custom API endpoints or authentication tokens if required by your setup.
Additional notes
Notes and tips:
- The HA Vibecode Agent provides a safe on-board REST API and a rich toolset to interact with Home Assistant from external IDEs. It supports reading configurations, listing entities, calling services, validating configurations, and safe file operations within /config.
- Use Git-based versioning for all changes to allow meaningful commit messages and easy rollbacks. AI-generated messages should explain what changed and why.
- Before applying significant changes, use the validation features to catch misconfigurations and enable a one-click rollback if something goes wrong.
- If you customize environment variables, ensure they are set correctly in your MCP server configuration. Typical variables might include API endpoints, authentication tokens, or debug flags, depending on your deployment.
- Ensure network accessibility between your MCP server host and the Home Assistant instance (the add-on) to avoid connectivity issues.
- When upgrading the MCP package, review changelogs for breaking changes related to API surface or required configuration.
Related MCP Servers
Awesome -ZH
MCP 资源精选, MCP指南,Claude MCP,MCP Servers, MCP Clients
ollama
An MCP Server for Ollama
pfsense
pfSense MCP Server enables security administrators to manage their pfSense firewalls using natural language through AI assistants like Claude Desktop. Simply ask "Show me blocked IPs" or "Run a PCI compliance check" instead of navigating complex interfaces. Supports REST/XML-RPC/SSH connections, and includes built-in complian
adb
An MCP (Model Context Protocol) server for interacting with Android devices through ADB in TypeScript.
mcp-bash
A simple model context protocol (MCP) server that allows Claude Desktop or other MCP aware clients to run Bash commands on your local machine.
fast -telegram
Telegram MCP Server and HTTP-MTProto bridge | Multi-user auth, intelligent search, file sending, web setup | Docker & PyPI ready