This is an automated archive made by the Lemmit Bot.
The original was posted on /r/homeassistant by /u/mvoska on 2025-03-16 18:44:53+00:00.
Looks like I’m the second one who took this weekend to build a Home Assistant MCP server
I wanted to expose my Home Assistant instance to Claude Code / Cursor so when I was editing my home assistant config folder, it had the context of my entities, devices, etc.
Why build a new MCP server?
- I couldn’t get the built in MCP server working (via MCP Proxy or from running the inspector)
- I thought it would be more reliable by connecting directly to the HASS API instead of going through the assist flow.
- None of the existing MCP servers I could find worked.
Overview:
- Entity Management: Get states, control devices, and search for entities
- Domain Summaries: Get high-level information about entity types
- Automation Support: List and control automations
- Guided Conversations: Use prompts for common tasks like creating automations
- Smart Search: Find entities by name, type, or state
- Token Efficiency: Lean JSON responses to minimize token usage
Tools
get_version
: Get the Home Assistant versionget_entity
: Get the state of a specific entityentity_action
: Perform actions on entities (turn on, off, toggle)list_entities
: Get a list of entities with optional filteringsearch_entities_tool
: Search for entities matching a querydomain_summary_tool
: Get a summary of a domain’s entitieslist_automations
: Get a list of all automationscall_service_tool
: Call any Home Assistant servicerestart_ha
: Restart Home Assistantget_history
: Get the state history of an entityget_error_log
: Get the Home Assistant error log
Prompts
create_automation
: Guide for creating Home Assistant automationsdebug_automation
: Troubleshooting help for automations that aren’t workingtroubleshoot_entity
: Diagnose issues with entities
MIT License, so feel free to fork/improve. Happy to take feedback as well.
You must log in or register to comment.