# Home Assistant YAML MCP

> Home Assistant YAML MCP is a paid API for AI agents from api.m2mcent.com, paid per call via x402, $0.08/call, status unknown (last checked 2026-10-20).

Processes natural language or structured input to generate, validate, or transform Home Assistant YAML configuration files via an agentic MCP endpoint.

## Facts

- Endpoint: POST https://api.m2mcent.com/home-assistant-yaml-mcp/api/process?utm_source=zero.xyz
- Price: $0.08/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/home-assistant-yaml-mcp-6d300045
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GUct2gD_9YZTHt9iDLShr

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability home-assistant-yaml-mcp-6d300045 -d '<json body>'
```

Example prompt: Can you generate a Home Assistant YAML automation that turns on my living room lights at sunset and turns them off at 11pm?

## When to prefer this

Use this endpoint when you need to quickly generate, transform, or validate Home Assistant YAML configurations from natural language descriptions or structured input, especially in an agentic pipeline where a human describes their smart home automation goal and needs ready-to-use YAML output without manually writing config files.

## Known failure modes

- Empty or malformed 'data' string returns an error or empty YAML output
- Overly ambiguous input may produce generic or incorrect YAML that doesn't match the user's intent
- Payment failure (402) if USDC balance is insufficient for the $0.08 per-call fee
- Timeout or service unavailability returns a 5xx error

## How this service works

The premier global index of 1,069 monetized MCP nodes across 205 specialized subdomains. Gasless USDC runtime settlements via x402 V2 Spec on Base L2. Save 95% token context.

## Output

Returns processed Home Assistant YAML configuration or automation code based on the provided input data string, ready to paste into a Home Assistant configuration file or automation editor.

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "success": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/home-assistant-yaml-mcp-6d300045/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.m2mcent.com](https://www.zero.xyz/host/api.m2mcent.com/llms.txt)
