<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/my-home-lab-finally-has-an-ai-brain-and-it-s-claude-code-through-mcp-1xv4ifhkl" -->

---
title: My home lab finally has an AI brain, and it's Claude...
description: Connecting Claude Code to Home Assistant via its built-in Model Context Protocol (MCP) Server integration lets the AI agent check device states and trigger...
canonical: https://daily.dev/posts/my-home-lab-finally-has-an-ai-brain-and-it-s-claude-code-through-mcp-1xv4ifhkl
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: My home lab finally has an AI brain, and it's Claude Code through MCP | daily.dev
og:description: Connecting Claude Code to Home Assistant via its built-in Model Context Protocol (MCP) Server integration lets the AI agent check device states and trigger...
og:url: https://daily.dev/posts/my-home-lab-finally-has-an-ai-brain-and-it-s-claude-code-through-mcp-1xv4ifhkl
og:image: https://api.daily.dev/og/posts/1XV4IfHKl.png
og:image:alt: My home lab finally has an AI brain, and it's Claude Code through MCP
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# My home lab finally has an AI brain, and it's Claude Code through MCP

**[XDA Developers](https://daily.dev/sources/xda-developers)** · 3 min read · 0 upvotes · 0 comments

## Summary

Connecting Claude Code to Home Assistant via its built-in Model Context Protocol (MCP) Server integration lets the AI agent check device states and trigger existing automations from within a coding conversation. The built-in Assist API only allows running pre-existing scripts and entities exposed through Home Assistant's voice assistant settings; it does not grant administrative access to create integrations or edit automation YAML. Setup involves enabling the MCP Server integration, exposing specific entities, and adding an HTTP MCP connection in Claude Code with an authorization token. For other home server applications, a custom MCP service or an SSH-launched stdio MCP process is needed instead.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.xda-developers.com/home-lab-ai-brain-claude-code-mcp>

## Questions this post answers

### How do I connect Claude Code to Home Assistant using MCP?

Enable the Model Context Protocol Server integration in Home Assistant under Settings > Devices & services, then expose specific entities under Settings > Voice assistants > Expose. In Claude Code, run 'claude mcp add --transport http --scope user home-assistant http://HOME_ASSISTANT_IP:8123/api/mcp --header "Authorization: Bearer YOUR_TOKEN"', then verify with the /mcp command.

_daily.dev surfaces practical MCP integration walkthroughs for developers wiring agents into their own tools._

### Can Claude Code create or edit Home Assistant automations through the built-in MCP integration?

No, the built-in Home Assistant MCP Server integration only exposes the Assist API, which lets an agent run existing scripts and check entity states but does not grant administrative access. Creating new integrations or editing automation YAML requires a separate connection, since running a script and rewriting one are different capabilities not covered by the default setup.

_Developers scoping agent permissions in home automation projects track these capability boundaries on daily.dev._

## Similar posts on daily.dev

- [I gave Claude Cowork access to my Home Assistant config, and it unlocked automations I didn't know were possible](https://daily.dev/posts/i-gave-claude-cowork-access-to-my-home-assistant-config-and-it-unlocked-automations-i-didn-t-know-w-t16yakx3r) · XDA Developers · 0 upvotes · 0 comments
- [Give Claude AI Full Access to Your Local Filesystem With MCP](https://daily.dev/posts/give-claude-ai-full-access-to-your-local-filesystem-with-mcp-s4qnn8j4o) · The New Stack · 0 upvotes · 0 comments

---

Tags: [#ai-agents](https://daily.dev/tags/ai-agents), [#mcp](https://daily.dev/tags/mcp), [#claude-code](https://daily.dev/tags/claude-code)

[View this post on daily.dev](https://daily.dev/posts/my-home-lab-finally-has-an-ai-brain-and-it-s-claude-code-through-mcp-1xv4ifhkl)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"My home lab finally has an AI brain, and it's Claude Code through MCP","url":"https://daily.dev/posts/my-home-lab-finally-has-an-ai-brain-and-it-s-claude-code-through-mcp-1xv4ifhkl","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/my-home-lab-finally-has-an-ai-brain-and-it-s-claude-code-through-mcp-1xv4ifhkl"},"datePublished":"2026-10-04T10:02:16.124Z","dateModified":"2026-10-04T10:06:33.581Z","description":"Connecting Claude Code to Home Assistant via its built-in Model Context Protocol (MCP) Server integration lets the AI agent check device states and trigger...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/6af2e1eab491ce97234eadd81b4e250a?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/6af2e1eab491ce97234eadd81b4e250a?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"XDA Developers","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"XDA Developers","logo":"https://media.daily.dev/image/upload/s--kCg6yyAP--/f_auto,q_auto/v1774964407/logos/xda-developers?_a=BAMAMiWQ0","url":"https://daily.dev/sources/xda-developers"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/my-home-lab-finally-has-an-ai-brain-and-it-s-claude-code-through-mcp-1xv4ifhkl","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ai-agents,mcp,claude-code","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"XDA Developers","item":"https://daily.dev/sources/xda-developers"},{"@type":"ListItem","position":3,"name":"My home lab finally has an AI brain, and it's Claude Code through MCP"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/my-home-lab-finally-has-an-ai-brain-and-it-s-claude-code-through-mcp-1xv4ifhkl#faq","mainEntity":[{"@type":"Question","name":"How do I connect Claude Code to Home Assistant using MCP?","acceptedAnswer":{"@type":"Answer","text":"Enable the Model Context Protocol Server integration in Home Assistant under Settings > Devices & services, then expose specific entities under Settings > Voice assistants > Expose. In Claude Code, run 'claude mcp add --transport http --scope user home-assistant http://HOME_ASSISTANT_IP:8123/api/mcp --header \"Authorization: Bearer YOUR_TOKEN\"', then verify with the /mcp command. daily.dev surfaces practical MCP integration walkthroughs for developers wiring agents into their own tools."}},{"@type":"Question","name":"Can Claude Code create or edit Home Assistant automations through the built-in MCP integration?","acceptedAnswer":{"@type":"Answer","text":"No, the built-in Home Assistant MCP Server integration only exposes the Assist API, which lets an agent run existing scripts and check entity states but does not grant administrative access. Creating new integrations or editing automation YAML requires a separate connection, since running a script and rewriting one are different capabilities not covered by the default setup. Developers scoping agent permissions in home automation projects track these capability boundaries on daily.dev."}}]}
```

