Skip to main content
Glama

home-mcp

Home MCP server for the familIA voice assistant. One process, five optional modules; each is enabled only when its settings are present.

The Python package and the installed command are still named familia-mcp (familia_mcp): the deployed host (/opt/familia-mcp, the familia-mcp service user) and the familIA proxy's forced SSH command rely on that name.

Module

Tools

Access

Prometheus

prom_devices_overview, prom_device_status, prom_metric_history, prom_active_alerts

read-only

Home Assistant

ha_list_devices, ha_device_state, ha_device_history, ha_control

lights and plugs in an allowlist

Plex

plex_search, plex_recently_added, plex_continue_watching, plex_watch_history, plex_now_playing

read-only

Photos (PhotoPrism)

photos_search, photos_albums, photos_people, photos_on_this_day

read-only

Nextcloud

nc_calendars, nc_agenda, nc_tasks, nc_add_task, nc_complete_task, nc_create_event, nc_find_contact, nc_add_contact

read + create; events and contacts after a spoken "yes"

How it runs

The server speaks MCP over stdio. It is not a network service: the familIA proxy starts it through SSH with a restricted key whose forced command is the server (restrict,command="/opt/familia-mcp/venv/bin/familia-mcp"). Nothing listens on the LAN.

voice (OVOS) -> familIA proxy -- SSH, forced command --> familia-mcp (this repo) -> Prometheus / HA / Plex / PhotoPrism

The tool calls themselves come from the familIA Lambda as "return of control": the model never reaches the home services directly; the proxy runs the tool here and sends back the result.

Related MCP server: HomeLab MCP

Safety model

  • Home Assistant: only light and switch domains exist in the module. /etc/familia/ha_allowlist.json decides which entities are visible and which actions each may take (missing or invalid file -> nothing exposed). Devices with "confirm": true are only parked: the proxy asks the user and runs the internal ha_confirm_action tool itself after a spoken "yes"; that tool is never declared to the model. See deploy/ha_allowlist.example.json.

  • Plex: the owner token can do anything on the server, so the client only issues GET requests to a fixed list of paths. "Continue watching" for Plex Home users uses each user's own token and never falls back to the owner's.

  • Photos: a thin client of PhotoPrism's built-in read-only MCP endpoint (/api/v1/mcp). Use an app password with scope mcp read photos albums people labels; without places no coordinates are ever returned.

  • Nextcloud: CalDAV/CardDAV with a dedicated app password (Nextcloud cannot scope those, so the client is the boundary): only PROPFIND, REPORT and PUT, only below the user's calendar and address book homes, and every PUT is conditional: If-None-Match: * to create, If-Match: <etag> to mark a task done, so a change made meanwhile on a phone is never overwritten. Nothing is ever deleted. Tasks are written directly; appointments and contacts are parked and written by the internal nc_confirm_action after a spoken "yes" (the read-back catches speech-recognition mistakes in times and phone numbers). Events never get attendees, so no invitation emails. A self-signed server certificate is pinned (NEXTCLOUD_CERT_FILE) instead of disabling TLS verification.

  • Tokens live only in /etc/familia/mcp.env on the MCP host (mode 600, owned by the service user).

Install / upgrade (Raspberry Pi OS, Python 3.11+)

On a dev machine:

uv run pytest -q
uv build --wheel
scp dist/familia_mcp-*.whl requirements.lock.txt deploy/install.sh deploy/mcp.env.example <mcp-host>:/tmp/familia-mcp/
# optional: your allowlist and a secrets.env (KEY=VALUE, merged into mcp.env and then deleted)

On the MCP host:

sudo bash /tmp/familia-mcp/install.sh

install.sh is idempotent: service user, venv with hash-verified dependencies (requirements.lock.txt), config files that are never overwritten except by an explicit ha_allowlist.json / secrets.env next to it, and a final check that calls one read tool per enabled module. Then authorize the proxy's key with deploy/authorize_proxy_key.sh and restart the proxy so it re-reads the tool list.

Helpers: deploy/ha_token.sh (store the HA token without echoing it), deploy/ha_notify_services.sh (list HA notify services).

Configuration

All settings are KEY=VALUE lines in /etc/familia/mcp.env (override the path with FAMILIA_MCP_ENV_FILE); see deploy/mcp.env.example.

Module

Required

Optional

Prometheus

PROMETHEUS_URL

PROMETHEUS_DEVICE_LABEL, PROMETHEUS_TIMEOUT_S, bearer / basic auth

Home Assistant

HA_URL, HA_TOKEN

HA_ALLOWLIST_FILE, HA_TIMEOUT_S

Plex

PLEX_URL, PLEX_TOKEN

PLEX_USER_TOKENS=Kids=<token>;..., PLEX_TIMEOUT_S

Photos

PHOTOPRISM_URL, PHOTOPRISM_TOKEN

PHOTOPRISM_TIMEOUT_S

Nextcloud

NEXTCLOUD_URL, NEXTCLOUD_USER, NEXTCLOUD_APP_PASSWORD

NEXTCLOUD_CERT_FILE, NEXTCLOUD_CALENDARS, NEXTCLOUD_DEFAULT_CALENDAR, NEXTCLOUD_DEFAULT_TASKLIST, NEXTCLOUD_ADDRESSBOOK, NEXTCLOUD_TIMEZONE

Development

uv sync
uv run pytest -q          # fake HTTP backends and an in-process fake PhotoPrism MCP server

mcp is pinned (mcp==2.3.0): the 2.x API differs from 1.x, and the familIA proxy must use the same version. Tool descriptions are in English; the assistant answers in the user's language.

License

GPL-3.0-only. See LICENSE.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      A self-hosted MCP server for Home Assistant that exposes full control over entity states, service calls, history, templates, and areas via local stdio, enabling AI assistants to manage your smart home.
      9
      MIT
    • F
      license
      C
      quality
      D
      maintenance
      MCP server that integrates Home Assistant, Frigate, Docker, and Proxmox via STDIO, enabling secure read and write operations with configurable confirmation.
      26
      -
    • A
      license
      Not graded
      quality
      B
      maintenance
      Read-only MCP adapter for Homelab Core that lets AI assistants inspect health, services, redacted logs, nodes, and jobs via a local Unix socket. Optionally enables job queuing when changes are explicitly allowed.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      MCP server for Home Assistant that lets you control and query your smart home through natural language via MCP clients. Provides tools for entities, devices, services, automations, scripts, history, add-ons, and system info, with read-only access by default and optional configurable write support.
      1
      MIT