Agent skill

MCP Hass

by aahl in aahl/skills

The skill for control Home Assistant smart home devices and query states using MCP protocol.

MITAuto-check passedAgent Workflows

Install MCP Hass

skills CLI
$ npx skills add aahl/skills --skill mcp-hass -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install aahl/skills mcp-hass --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/aahl/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/mcp-hass .claude/skills/mcp-hass && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
mcp-hass
GitHub stars
162
Used in
1 other repo
Token cost
~568 tokens
SKILL.md length
122 words
Files
1
Skills in repo
13
Repo updated
First seen
Licence
MIT

At a glance

The skill for control Home Assistant smart home devices and query states using MCP protocol.

  • Tasks that involve MCP servers
  • SKILL.md covers Prerequisites, Config, Usage and About mcporter
  • Calls npx; needs HASS_ACCESS_TOKEN

What it does

MCP Hass is an agent skill from aahl/skills. The skill for control Home Assistant smart home devices and query states using MCP protocol.

Its SKILL.md is about 570 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Agent Workflows, covering MCP servers. It works with Model Context Protocol and Home Assistant. The repository describes itself as: AAHL's Agent Skills. 汇集了多种实用的智能体技能,涵盖Home Assistant智能家居控制、微软Edge TTS和智谱GLM-TTS文本转语音、DuckDuckGo搜索、DeepWiki文档检索、加密货币行情、天气预报、Lark/飞书、影视搜索、商品比价等功能. The licence is MIT.

When your agent uses it

  • Tasks that involve MCP servers

Example prompts

  • “/mcp-hass”

Requirements

  • Node.js
  • A credential in HASS_ACCESS_TOKEN

What it can do on your machine

Read from SKILL.md and the folder at commit 47edd62. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npx

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • HASS_ACCESS_TOKEN

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

MCP Hass loads about 568 tokens when it runs. Until then it costs about 25 tokens; SKILL.md has 122 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~25
When it runs · the whole SKILL.md, loaded when a task matches
~568

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from aahl/skills at commit 47edd62, republished under its MIT licence (© aahl). 122 words, ~568 tokens.

Download SKILL.mdSave it as .claude/skills/mcp-hass/SKILL.md (or your agent's skills folder).
name
mcp-hass
description
The skill for control Home Assistant smart home devices and query states using MCP protocol.

Home Assistant

Control Home Assistant smart home and query states using MCP protocol.

Prerequisites

Enable MCP server in Home Assistant:

  • Browse to your Home Assistant instance.
  • Go to Settings > Devices & services.
  • In the bottom right corner, select the + Add Integration button.
  • From the list, select Model Context Protocol.
  • Follow the instructions on screen to complete the setup.

Config

When prompted that the MCP server does not exist, remind the user to configure the HASS_BASE_URL and HASS_ACCESS_TOKEN environment variables by executing the following command to add the configuration:

shell
npx -y mcporter config add home-assistant \
  --transport http \
  --url "${HASS_BASE_URL:-http://homeassistant.local:8123}/api/mcp" \
  --header "Authorization=Bearer \${HASS_ACCESS_TOKEN}"

Usage

shell
# Get states
npx -y mcporter call home-assistant.GetLiveContext

# Turn on the device
npx -y mcporter call home-assistant.HassTurnOn(name: "Bedroom Light")
npx -y mcporter call home-assistant.HassTurnOn(name: "Light", area: "Bedroom")

# Turn off the device
npx -y mcporter call home-assistant.HassTurnOff(name: "Bedroom Light")
npx -y mcporter call home-assistant.HassTurnOff(area: "Bedroom", domain: ["light"])

# Control light
# brightness: The percentage of the light, where 0 is off and 100 is fully lit.
# color: Name of color
npx -y mcporter call home-assistant.HassLightSet(name: "Bedroom Light", brightness: 50)

# Control fan
# percentage: The percentage of the fan, where 0 is off and 100 is full speed.
npx -y mcporter call home-assistant.HassFanSetSpeed(name: "Fan", area: "Bedroom", percentage: 80)

Execute the following command to learn about specific usage methods:

  • npx -y mcporter list home-assistant --schema --all-parameters

About mcporter

© aahl, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/mcp-hass of aahl/skills.

Open the folder on GitHubat commit 47edd62

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in aahl/skills, which our catalogue first saw on October 7, 2026.

Compare with similar skills

MCP Hass next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

MCP Hass compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
MCP Hass this skillaahl/skills1621 repos~568Automated safety check: PassMIT
MCP Server Builderanthropics/skills180k63 repos~2.3kAutomated safety check: PassApache-2.0
MCP Server BuildershareAI-lab/learn-claude-code78k4 repos~1.2kAutomated safety check: PassMIT
MCP Integration for Pluginsanthropics/claude-plugins-official38k11 repos~3.1kAutomated safety check: PassApache-2.0
Crush Configurationcharmbracelet/crush29k—~3.7kAutomated safety check: PassCustom licence
Context Mode Output Sandboxmksglu/context-mode26k—~4.1kAutomated safety check: PassCustom licence

Similar skills

  • MCP Server Builder

    anthropics/skills

    Official

    Guides the design and implementation of Model Context Protocol servers in TypeScript or Python, from tool naming and error messages to evaluation.

    180k GitHub starsUsed in 63 repos~2.3k tokens
    Agent WorkflowsAuto-check passed
  • MCP Server Builder

    shareAI-lab/learn-claude-code

    Walks through building MCP servers in Python or TypeScript that expose tools, resources and prompts to Claude, with templates, registration and testing.

    78k GitHub starsUsed in 4 repos~1.2k tokens
    Agent WorkflowsAuto-check passed
  • MCP Integration for Plugins

    anthropics/claude-plugins-official

    Official

    Explains how to bundle Model Context Protocol servers in a Claude Code plugin, covering config files, stdio, SSE, HTTP and WebSocket server types, and authentication.

    38k GitHub starsUsed in 11 repos~3.1k tokens
    Agent WorkflowsAuto-check passed
  • Crush Configuration

    charmbracelet/crush

    Explains how to configure the Crush coding agent with crushrc or crush.json, covering providers, models, LSPs, MCP servers, hooks, permissions and config precedence.

    29k GitHub stars~3.7k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Context Mode Output Sandbox

    mksglu/context-mode

    Routes large command, file, API and browser output through context-mode tools so only the needed result enters the agent's context, instead of dumping it via Bash.

    26k GitHub stars~4.1k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Migrates the compatible subset of settings and global file-based MCP servers from the Warp desktop app into Warp Agent CLI without exposing credentials or state.

    65k GitHub starsUsed in 1 repo~2.1k tokens
    Agent WorkflowsAuto-check passed

More from aahl/skills

All 13 skills in this repo
  • Hass Builder

    aahl/skills

    A skill to build and manage Home Assistant configurations. An agent skill from aahl/skills.

    162 GitHub starsUsed in 1 repo~1.4k tokens
    Auto-check passed
  • Edge Tts

    aahl/skills

    Text-to-speech conversion using uvx edge-tts for generating audio from text.

    162 GitHub starsUsed in 1 repo~1.1k tokens
    Auto-check passed
  • Maishou

    aahl/skills

    商品价格全网对比技能,获取商品在淘宝(Taobao)、天猫(TMall)、京东(JD.com)、拼多多(PinDuoDuo)、抖音(Douyin)、快手(KaiShou)的最优价格、优惠券,当用户想购物或者获取优惠信息时使用。Get the best price, coupons for goods on Chinese e-commerce platforms, compare…

    162 GitHub starsUsed in 1 repo~175 tokens
    Auto-check passed
  • MCP Deepwiki

    aahl/skills

    Skills for accessing and searching docs in DeepWiki/GitHub’s public code repositories can help users understand open-source project source codes, and users can also ask questions directly about the…

    162 GitHub starsUsed in 2 repos~607 tokens
    Auto-check passed
  • Zai Tts

    aahl/skills

    Text-to-speech conversion using GLM-TTS service via the uvx zai-tts command for generating audio from text.

    162 GitHub starsUsed in 1 repo~385 tokens
    Auto-check passed
  • MCP Lark

    aahl/skills

    Based on FeiShu(飞书) / Lark's OpenAPI MCP server, manage user information, chats, emails, cloud documents, multidimensional tables, tasks, calendars, etc.

    162 GitHub starsUsed in 1 repo~387 tokens
    Auto-check: notes

Categories

Questions about MCP Hass

What does MCP Hass do?

The skill for control Home Assistant smart home devices and query states using MCP protocol. MCP Hass is an agent skill from aahl/skills. The skill for control Home Assistant smart home devices and query states using MCP protocol.

When should I use MCP Hass?

MCP Hass fits situations like: tasks that involve MCP servers.

How do I install MCP Hass in Claude Code?

Run `npx skills add aahl/skills --skill mcp-hass -a claude-code`. Or copy the skill folder (skills/mcp-hass in aahl/skills) into .claude/skills/mcp-hass in your project. Claude Code loads it when a task matches its description.

How do I install MCP Hass in Codex?

Run `npx skills add aahl/skills --skill mcp-hass -a codex`. Or copy the skill folder (skills/mcp-hass in aahl/skills) into .agents/skills/mcp-hass in your project. Codex loads it when a task matches its description.

Can I use MCP Hass in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add aahl/skills --skill mcp-hass -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/mcp-hass, .gemini/skills/mcp-hass, .github/skills/mcp-hass and .opencode/skills/mcp-hass in your project.

What does MCP Hass need to run?

Going by SKILL.md and its folder, MCP Hass needs the command-line tools its instructions call (npx) and credentials named HASS_ACCESS_TOKEN. Our summary lists: Node.js; A credential in HASS_ACCESS_TOKEN.

Does MCP Hass access the network?

SKILL.md names 1 domain. As links in the text: github.com. This is read from the text; nothing was executed.

Is MCP Hass safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does MCP Hass use?

MCP Hass is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does MCP Hass use?

About 568 tokens (SKILL.md is roughly 2.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to MCP Hass?

Skills that share tags, products or a category with MCP Hass: MCP Server Builder (anthropics/skills, 180k stars), MCP Server Builder (shareAI-lab/learn-claude-code, 78k stars), MCP Integration for Plugins (anthropics/claude-plugins-official, 38k stars) and Crush Configuration (charmbracelet/crush, 29k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains MCP Hass?

aahl (a GitHub organization) maintains it in aahl/skills, which has 162 GitHub stars. The repository holds 13 skills in this directory. The repository was last updated on September 15, 2026.

Source: aahl/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.