Home Assistant MCP Server avatar

Home Assistant MCP Server

Pricing

Pay per event + usage

Go to Apify Store
Home Assistant MCP Server

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

ParseForge

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

3 days ago

Last modified

Share

ParseForge Banner

๐Ÿ  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 enthusiastsControl devices through AI chat interfaces
Home automation developersBuild AI-driven automation workflows
IoT researchersPrototype voice and text-based device control
Accessibility advocatesEnable hands-free home control via AI
System integratorsConnect Home Assistant to AI-driven dashboards
Tech hobbyistsExperiment 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

FieldTypeRequiredDescription
This actor runs in standby mode. No input is required at startup. Credentials are provided in each request body.

Each request body must include:

FieldTypeRequiredDescription
homeAssistantUrlstringYesURL of your Home Assistant instance (e.g., https://homeassistant.local:8123)
homeAssistantApiKeystringYesLong-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

EmojiFieldTypeDescription
๐Ÿ†”entity_idstringUnique identifier for the device or sensor
๐Ÿ“ŠstatestringCurrent state value (on, off, temperature, etc.)
๐Ÿท๏ธattributesobjectDevice attributes (brightness, color, unit, etc.)
๐Ÿ“…last_changedstringWhen the state last changed
๐Ÿ“…last_updatedstringWhen the state was last refreshed
๐Ÿ”งdomainstringEntity domain (light, switch, sensor, etc.)
๐Ÿ“‹friendly_namestringHuman-readable device name
โš ๏ธerrorstringError message if the request failed

๐Ÿ“ฆ Sample records


โœจ Why choose this Actor

FeatureDetails
๐Ÿ”Œ Full MCP supportStandard Model Context Protocol for AI assistant integration
๐Ÿ› ๏ธ 5 toolsGet states, get state, call service, list entities, list services
๐Ÿ“š 2 resourcesEntities list and services list for discovery
โšก Standby modeAlways running, instant response with no cold start
๐Ÿ  Any deviceWorks with any device integrated into Home Assistant
๐Ÿ’ฐ Pay Per EventOnly pay for the requests you actually make
๐Ÿ”’ SecureCredentials 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

FeatureThis ActorSelf-Hosted MCPCustom API Wrapper
No server managementโœ…โŒโŒ
Standard MCP protocolโœ…โœ…โŒ
Instant response (standby)โœ…DependsDepends
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

  1. Create an Apify account - Sign up free with $5 credit
  2. Set up Home Assistant - Install Home Assistant and integrate your smart devices
  3. Create an access token - Go to Profile > Long-Lived Access Tokens in Home Assistant
  4. Start the MCP Server - Launch the actor in standby mode on Apify
  5. 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
  • Toggle lights and switches through AI chat
  • Check sensor readings with natural language
  • Adjust thermostats and climate controls remotely
  • Trigger automation scenes via AI commands
๐Ÿ”ง Development & Prototyping
  • Build AI-driven home automation prototypes
  • Test MCP protocol integrations with real devices
  • Develop custom AI assistants for smart buildings
  • Create voice-controlled device management systems
โ™ฟ Accessibility
  • Enable hands-free home control for mobility-limited users
  • Create text-based interfaces for hearing-impaired users
  • Build simplified AI interfaces for elderly care
  • Automate routine tasks with conversational triggers
๐Ÿ“Š Monitoring & Analytics
  • Collect sensor data for energy usage analysis
  • Monitor home security sensors through AI dashboards
  • Track environmental conditions across rooms
  • Build reporting systems from device state data

๐Ÿ”Œ 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 endpoint
console.log("MCP server running at:", run.defaultKeyValueStoreId);

Python:

from apify_client import ApifyClient
client = 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 endpoint
print("MCP server running")

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

ActorDescription
Markdown to PDF MCP ServerConvert markdown documents to PDF through MCP protocol
HTML to JSON Smart ParserParse HTML content into structured JSON data
Smart Apify Actor ScraperDiscover and analyze Apify actors with quality metrics
Lead Formatter ToolFormat and enrich lead data for CRM systems
MultiSite URL ShortenerGenerate 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.