mcp-hass

mcp-hass is a skill for Claude Code, Codex from opencue/cuecards. It costs 21 tokens per session (575 once invoked), scanned A, a copy of mcp-hass, MIT.

A skill for controlling smart-home devices and checking their current states through Home Assistant. Home Assistant is software that brings connected devices such as lights and sensors into one system.

In plain words
What is it for?
Checking device states and turning Home Assistant devices on or off, such as lights in a named room.
Why use it?
It lets the coding agent work with a configured smart home without requiring separate device controls for each request.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Checking device states and turning Home Assistant devices on or off, such as lights in a named room.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/opencue/cuecards/mcp-hass
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add opencue/cuecards --skill mcp-hass
Clone the repo
git clone --depth 1 https://github.com/opencue/cuecards

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mcp-hass

README.md
[![agentmods](https://agentmods.dev/badge/skills/opencue/cuecards/mcp-hass/github.svg)](https://agentmods.dev/skills/opencue/cuecards/mcp-hass)
Your own site
<a href="https://agentmods.dev/skills/opencue/cuecards/mcp-hass"><img src="https://agentmods.dev/badge/skills/opencue/cuecards/mcp-hass/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mcp-hass

Your own site · 80×15
<a href="https://agentmods.dev/skills/opencue/cuecards/mcp-hass"><img src="https://agentmods.dev/badge/skills/opencue/cuecards/mcp-hass.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 575 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00021 $0.00575
Opus 5.5 $0.00008 $0.00230
Sonnet 5.5 $0.00004 $0.00115
Haiku 4.5 $0.00002 $0.00057

Measured 2mo ago against content hash 4008679d7cbb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mcp-hass scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to mcp-hass — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.agents/skills/mcp-hass/SKILL.md · 56 lines

How it starts

The opening of the file, as written. The whole thing — 56 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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:

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

# 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

Read the full file on GitHub · 56 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 56 lines · 21 tokens per session scan A 4008679d7cbb

Subscribe to this mod's changes

mcp-hass is a skill published in the GitHub repository opencue/cuecards (10 stars, last pushed yesterday), licensed MIT. It adds 21 tokens to every session and 575 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to mcp-hass, differing in 0 lines, and is treated as a copy.

Related

mcp-hass compared with skills from other repositories

mcp-hass next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mcp-hassopencue/cuecardsSkill10yesterdayMITA21Claude Code, Codex
loongsuite-pilot-opsalibaba/loongsuite-pilotSkill2703d agoApache-2.0A15Claude Code, Codex
atomic-visual-optionsdamusix/atomic-claudeSkill117yesterdayMITA150Claude Code, Codex
agentloop-audit-queryalibaba/loongsuite-pilotSkill2703d agoApache-2.0A54Claude Code, Codex
atomic-tdddamusix/atomic-claudeSkill117yesterdayMITA142Claude Code, Codex
atomic-verifydamusix/atomic-claudeSkill117yesterdayMITA100Claude Code, Codex
embedded-iottravisjneuman/.claudeSkill115yesterdayMITA80Claude Code