Home Assistant MCP Server
Pricing
Pay per event + usage
Home Assistant MCP Server
Control your Home Assistant smart home devices through AI agents using Model Context Protocol (MCP). Get states, call services, list entities, and manage lights, switches, sensors, climate controls, and more. Perfect for AI-powered home automation and voice assistants.
Pricing
Pay per event + usage
Rating
5.0
(2)
Developer
ParseForge
Actor stats
0
Bookmarked
1
Total users
0
Monthly active users
3 days ago
Last modified
Categories
Share

๐ Home Assistant MCP Server
๐ Control your smart home through AI assistants in seconds. Manage lights, switches, sensors, climate, and media players. No coding, no custom server setup required.
๐ Last updated: 2026-04-16 ยท ๐ ๏ธ 5 tools ยท ๐ 2 resources ยท ๐ Full MCP Protocol support ยท ๐ฐ Pay Per Event pricing
Home Assistant is the most popular open-source home automation platform, connecting hundreds of smart device brands into one unified system. This MCP (Model Context Protocol) server lets AI assistants interact with your Home Assistant instance directly. It provides 5 tools (get_states, get_state, call_service, get_entities, get_services) and 2 resources (entities list, services list) so your AI can read sensor data, toggle lights, adjust thermostats, play media, and call any Home Assistant service.
The server runs in standby mode on Apify's infrastructure, meaning it stays active and responds instantly to requests. You provide your Home Assistant URL and a long-lived access token in each request body. There is no startup delay, no Docker containers to manage, and no port forwarding required. Just connect your AI assistant to this MCP endpoint and start controlling your smart home with natural language commands.
| ๐ฏ Target Audience | ๐ก Use Cases |
|---|---|
| Smart home enthusiasts | Control devices through AI chat interfaces |
| Home automation developers | Build AI-driven automation workflows |
| IoT researchers | Prototype voice and text-based device control |
| Accessibility advocates | Enable hands-free home control via AI |
| System integrators | Connect Home Assistant to AI-driven dashboards |
| Tech hobbyists | Experiment with MCP protocol and smart devices |
๐ What the Home Assistant MCP Server does
- ๐ Get all entity states to see every device, sensor, and switch in your Home Assistant
- ๐ฏ Get specific entity state to check the current value of any sensor, light, or switch
- ๐ ๏ธ Call any service to toggle lights, set temperatures, play media, or trigger automations
- ๐ List all entities to discover available devices and their entity IDs
- ๐ List all services to see every action your Home Assistant supports
- ๐ฐ Pay Per Event pricing so you only pay for the requests you make
The MCP server acts as a bridge between AI assistants and your Home Assistant instance. When your AI needs to check a temperature sensor, it calls the get_state tool with the entity ID. When it needs to turn on a light, it calls call_service with the appropriate domain, service, and entity. The server forwards these requests to your Home Assistant's REST API and returns the results to the AI.
๐ก Why it matters: Without an MCP server, connecting an AI assistant to Home Assistant requires custom code, API wrappers, and server management. This actor handles all of that, giving your AI direct access to your smart home through a standard protocol.
๐ฌ Full Demo
๐ง Coming soon...
โ๏ธ Input
| Field | Type | Required | Description |
|---|---|---|---|
| This actor runs in standby mode. No input is required at startup. Credentials are provided in each request body. | |||
Each request body must include:
| Field | Type | Required | Description |
|---|---|---|---|
| homeAssistantUrl | string | Yes | URL of your Home Assistant instance (e.g., https://homeassistant.local:8123) |
| homeAssistantApiKey | string | Yes | Long-lived access token from Home Assistant |
Example 1: Get all entity states
{"tool": "get_states","homeAssistantUrl": "https://homeassistant.local:8123","homeAssistantApiKey": "your_long_lived_access_token"}
Example 2: Call a service to toggle a light
{"tool": "call_service","domain": "light","service": "toggle","entity_id": "light.living_room","homeAssistantUrl": "https://homeassistant.local:8123","homeAssistantApiKey": "your_long_lived_access_token"}
โ ๏ธ Good to Know: You need a running Home Assistant instance and a long-lived access token. Create the token at Profile > Long-Lived Access Tokens in your Home Assistant dashboard. Your Home Assistant must be accessible from the internet (or use a tunnel like Nabu Casa).
๐ Output
๐งพ Schema
| Emoji | Field | Type | Description |
|---|---|---|---|
| ๐ | entity_id | string | Unique identifier for the device or sensor |
| ๐ | state | string | Current state value (on, off, temperature, etc.) |
| ๐ท๏ธ | attributes | object | Device attributes (brightness, color, unit, etc.) |
| ๐ | last_changed | string | When the state last changed |
| ๐ | last_updated | string | When the state was last refreshed |
| ๐ง | domain | string | Entity domain (light, switch, sensor, etc.) |
| ๐ | friendly_name | string | Human-readable device name |
| โ ๏ธ | error | string | Error message if the request failed |
๐ฆ Sample records
โจ Why choose this Actor
| Feature | Details |
|---|---|
| ๐ Full MCP support | Standard Model Context Protocol for AI assistant integration |
| ๐ ๏ธ 5 tools | Get states, get state, call service, list entities, list services |
| ๐ 2 resources | Entities list and services list for discovery |
| โก Standby mode | Always running, instant response with no cold start |
| ๐ Any device | Works with any device integrated into Home Assistant |
| ๐ฐ Pay Per Event | Only pay for the requests you actually make |
| ๐ Secure | Credentials sent per-request, never stored |
๐ Control any of the 2,000+ device integrations supported by Home Assistant through a single MCP endpoint.
๐ How it compares to alternatives
| Feature | This Actor | Self-Hosted MCP | Custom API Wrapper |
|---|---|---|---|
| No server management | โ | โ | โ |
| Standard MCP protocol | โ | โ | โ |
| Instant response (standby) | โ | Depends | Depends |
| Pay Per Event pricing | โ | โ | โ |
| Works with any AI assistant | โ | โ | Custom |
| No coding required | โ | โ | โ |
| Automatic scaling | โ | โ | โ |
Connect your AI to Home Assistant in minutes instead of building and maintaining custom infrastructure.
๐ How to use
- Create an Apify account - Sign up free with $5 credit
- Set up Home Assistant - Install Home Assistant and integrate your smart devices
- Create an access token - Go to Profile > Long-Lived Access Tokens in Home Assistant
- Start the MCP Server - Launch the actor in standby mode on Apify
- Connect your AI assistant - Point your MCP-compatible AI to the actor's endpoint with your credentials
โฑ๏ธ Setup takes under 5 minutes. The server stays running and responds to requests instantly.
๐ผ Business use cases
๐ Smart Home Control
| ๐ง Development & Prototyping
|
โฟ Accessibility
| ๐ Monitoring & Analytics
|
๐ Automating Home Assistant MCP Server
Integrate the Home Assistant MCP Server into your workflow using the Apify API or client libraries.
Node.js:
import { ApifyClient } from 'apify-client';const client = new ApifyClient({ token: 'YOUR_API_TOKEN' });const run = await client.actor("parseforge/home-assistant-mcp-server").call({});// The actor runs in standby mode - connect to it via the MCP endpointconsole.log("MCP server running at:", run.defaultKeyValueStoreId);
Python:
from apify_client import ApifyClientclient = ApifyClient("YOUR_API_TOKEN")run = client.actor("parseforge/home-assistant-mcp-server").call(run_input={})# The actor runs in standby mode - connect to it via the MCP endpointprint("MCP server running")
- ๐ Apify API reference
- ๐ Python client docs
- ๐ฆ Node.js client docs
Schedules: The MCP server runs in standby mode, so it stays active continuously. No scheduling is needed. It responds to requests as they come in, with no cold start delay.
โ Frequently Asked Questions
๐ Integrate with any app
- ๐ Make (Integromat) - Connect Home Assistant events to 1,500+ apps and services
- ๐ Zapier - Trigger workflows based on Home Assistant state changes
- ๐ Slack - Get notified about smart home events in your channel
- ๐ Airbyte - Stream sensor data into your data warehouse for analytics
- ๐ GitHub - Store device configuration and automation scripts
- ๐ Google Drive - Log sensor readings to spreadsheets automatically
๐ Recommended Actors
| Actor | Description |
|---|---|
| Markdown to PDF MCP Server | Convert markdown documents to PDF through MCP protocol |
| HTML to JSON Smart Parser | Parse HTML content into structured JSON data |
| Smart Apify Actor Scraper | Discover and analyze Apify actors with quality metrics |
| Lead Formatter Tool | Format and enrich lead data for CRM systems |
| MultiSite URL Shortener | Generate shortened URLs across multiple services |
๐ก Pro Tip: Combine the Home Assistant MCP Server with Make or Zapier to create automated workflows that respond to smart home events with external actions.
๐ Need Help? Open our contact form and we will get back to you within 24 hours. We are happy to help with custom setups, integrations, or feature requests.
Disclaimer: This actor is not affiliated with, endorsed by, or connected to Home Assistant or Nabu Casa. It integrates with Home Assistant through its published REST API. Use responsibly and in accordance with applicable terms of service.
