Skip to main content
Selora Homes Selora Homes

MCP & Agent Skills

Connect Claude, ChatGPT, Claude Code, Cursor and other AI agents to Selora AI using the Model Context Protocol (MCP).

Selora AI MCP Agent-Skills

Selora AI includes an MCP server, so an AI agent such as Claude or ChatGPT can read your home and, if you allow it, control it. You only need this to use Selora AI from an outside agent: the Selora AI chat panel and HA Assist work without it.

1. Find Your MCP Server URL

In Selora AI, open the menu in the upper right corner and choose Settings.

Selora AI menu in the upper right corner, with Settings at the top

Copy the URL in the MCP Server section with the copy button next to it.

MCP Server section of the Selora AI settings, with the server URL and MCP tokens

  • Selora Hub: a remote HTTPS URL, such as https://mcp-xxx-xxx.selorabox.com/api/selora_ai/mcp. It works from anywhere, including cloud agents like Claude and ChatGPT.
  • Other Home Assistant installations: a local URL, such as http://homeassistant.local/api/selora_ai/mcp. It only works from your home network.

2. Authentication

MethodBest for
Selora Connect (recommended)Everyone with a Selora Homes account. You sign in through your browser, with no token to manage.
Selora AI TokenAgents that need a token. Scoped to the MCP server, with per-tool permissions.
Home Assistant Long-Lived Token (avoid)Last resort only: it grants full access to Home Assistant, not only the MCP server.

Selora Connect

The first time your agent connects, your browser opens an Authorize Access screen. Sign in with your Selora Homes account and approve.

Access is read-only by default: the agent can read your devices, states and history, and list your scenes, automations and scripts. Tick Allow control actions to also let it turn devices on and off, change settings and trigger automations.

Selora Connect authorization screen with the Allow control actions opt-in

Selora Hub users have Selora Connect set up already. On other installations, turn on Connect via Selora account in the MCP Server section of the Selora AI settings and follow the steps. You can revoke an agent’s access at any time from the same settings.

Installers can connect their agent to a customer’s hub during a remote support session the homeowner approved. See Connect Your AI Agent (MCP).

Selora AI Token

In the MCP Server section of the Selora AI settings, click Add token under MCP Tokens. Pick the Read-only or Admin preset, or Custom to choose exactly which tools the token may call, and an optional expiration. See MCP Tokens for details.

Create MCP Token dialog with custom per-tool selection

The token is only shown once: copy it right away.

3. Add the Server to Your Agent Client

Pick your agent and how it signs in.

Your agent

Sign-in

Works in Claude on the web and in the desktop app. Claude connects from the internet, so it needs a remote HTTPS URL, such as the Selora Hub one, and Selora Connect.

  1. Open Settings → Customize → Connectors.

    Claude’s Connectors list under Settings, Customize, with a Selora Homes custom connector

  2. Click + Add, then Add custom connector.

  3. Name it, for example Selora Homes, paste your MCP Server URL and click Add.

  4. Click Connect next to the new connector, then sign in and approve on the Authorize Access screen.

ChatGPT connects from the internet, so it needs a remote HTTPS URL, such as the Selora Hub one, and Selora Connect. Set it up on chatgpt.com in your browser: custom MCP servers need developer mode, which is available on paid plans. On a Business or Enterprise workspace, an owner must allow developer mode first.

  1. Open Settings → Security and login and turn on Developer mode.
  2. Open Settings → Plugins, click Create and choose to add an MCP server.
  3. Name it, for example Selora Homes, paste your MCP Server URL and choose OAuth as the authentication.
  4. Click Create, then sign in and approve on the Authorize Access screen.

To use it, open the + menu in a new chat, choose Developer mode and select the server.

claude mcp add --transport http selora-ai https://mcp-xxx-xxx.selorabox.com/api/selora_ai/mcp

Replace the URL with your MCP Server URL. Then run /mcp in Claude Code, choose selora-ai and sign in.

claude mcp add --transport http selora-ai http://homeassistant.local/api/selora_ai/mcp \
  --header "Authorization: Bearer $SELORA_TOKEN"

Set SELORA_TOKEN to your token first, and replace the URL with your MCP Server URL. Run /mcp in Claude Code to check that selora-ai is connected.

Add Selora AI to ~/.cursor/mcp.json, or to .cursor/mcp.json in a project. Create the file if it doesn’t exist.

{
  "mcpServers": {
    "selora-ai": {
      "url": "https://mcp-xxx-xxx.selorabox.com/api/selora_ai/mcp"
    }
  }
}

Replace the URL with your MCP Server URL. In Cursor Settings → MCP, click Login next to selora-ai, then sign in and approve.

Add Selora AI to ~/.cursor/mcp.json, or to .cursor/mcp.json in a project. Create the file if it doesn’t exist.

{
  "mcpServers": {
    "selora-ai": {
      "url": "http://homeassistant.local/api/selora_ai/mcp",
      "headers": {
        "Authorization": "Bearer ${env:SELORA_TOKEN}"
      }
    }
  }
}

Replace the URL with your MCP Server URL, and set the SELORA_TOKEN environment variable to your token so it stays out of the file. Check Cursor Settings → MCP that selora-ai is connected.

Most MCP clients accept a JSON config like the one below. It uses mcp-remote, which needs Node.js 18 or later, and opens your browser to sign in on first use.

{
  "mcpServers": {
    "selora-ai": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://mcp-xxx-xxx.selorabox.com/api/selora_ai/mcp"
      ]
    }
  }
}

Replace the URL with your MCP Server URL. If your client takes a remote server URL directly, paste your MCP Server URL instead and pick OAuth as the authentication.

Using Hermes or OpenClaw? Follow the Hermes Agent or OpenClaw guide.

Most MCP clients accept a JSON config like the one below. It uses mcp-remote, which needs Node.js 18 or later.

{
  "mcpServers": {
    "selora-ai": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "http://homeassistant.local/api/selora_ai/mcp",
        "--transport",
        "http-only",
        "--header",
        "Authorization: Bearer ${SELORA_TOKEN}"
      ],
      "env": {
        "SELORA_TOKEN": "<your-token>"
      }
    }
  }
}

Replace the URL with your MCP Server URL and <your-token> with your token. Don’t commit a file with a real token to version control.

If your client takes a remote server URL and headers directly, such as the n8n MCP Client Tool node, use your MCP Server URL and the header Authorization: Bearer <your-token>.

4. Try It

Ask your agent “analyze my home”. If it describes your home, the connection works.

From there, ask it to propose an automation. Review it before you confirm: new automations are created disabled, and suggestions wait for you to accept or dismiss them.

Troubleshooting

401 Unauthorized with a token: check that the token is complete and the header is exactly Authorization: Bearer <token>. Tokens are only shown once: if you lost it, create a new one.

401 Unauthorized with Selora Connect: turn Connect via Selora account off and on in the Selora AI settings, then connect again.

OAuth redirect error or Access Denied: sign in to the Selora Homes account that owns the installation, in the browser that opens during sign-in.

403 Admin required: your token doesn’t allow this tool. Read-only Selora AI tokens can’t call write tools, and a Home Assistant token must come from an admin account.

Connection errors or timeouts: make sure the agent can reach the URL. Common causes are the wrong port (80 or 8123), a firewall, homeassistant.local used from Docker or another network, or a cloud agent (Claude, ChatGPT) pointed at a local URL.

Wrong automation targeted: ask the agent to list automations first and use the returned automation_id, not a name from memory.

No patterns or suggestions: run selora_trigger_scan, wait for it to finish, then ask for suggestions again.

Type to search across

↑↓ navigate ↵ open
⌘K search