homemcp
Provides tools for managing Cloudflare Tunnel ingress and DNS CNAMEs, including exposure drift audits and reversible expose/unexpose plans; also uses S3-compatible Cloudflare R2 for encrypted Restic backups.
Provides tools for inspecting and managing Docker containers, including logs, stats, update checks, auto-rollback digest updates, and prune plans via a read-only Docker socket proxy.
Provides tools for Jellyfin libraries, sessions, search, scans, scheduled tasks, and activity logs.
Provides typed host verbs for inspecting and managing a Linux home server, including system health, systemd control, files, backups, and other allowlisted host operations without raw shell execution.
Sends alerts and notifications through ntfy, with an offline SQLite queue for alert delivery.
Provides tools for qBittorrent search, sorting, inspection, categories, magnet/URL enqueue, pause/resume/recheck, and plan-first removal.
Provides health and lockdown audit tools plus dedicated Vaultwarden backup management: status, snapshots, run, integrity test, prune plan/apply, and staging restore.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
homemcp
A security-first, authenticated MCP (Model Context Protocol) server for inspecting and safely managing a Linux home server from Claude, ChatGPT, Gemini CLI, or custom agents.
Designed from the ground up around least privilege, typed host verbs, plan-confirm mutations, WebAuthn step-up authentication, and centralized secret redaction — never raw shell execution over MCP.
Architecture
flowchart LR
Client["MCP Client (Claude / ChatGPT / CLI)"] -->|"OAuth 2.1 + PKCE / PAT (HTTPS)"| Gateway["homemcp Gateway (Unprivileged Container)"]
Gateway -->|"HTTP / API"| Proxy["Docker Socket Proxy (Read-Only + Minimal)"]
Gateway -->|"HMAC + Timestamp Unix Socket"| Agent["homemcpd Host Agent (Systemd Service)"]
Agent -->|"Typed Verbs & Allowlisted Sudo"| Host["Linux Host / Restic / Systemd / Compose"]
Gateway -->|"SQLite + Audit Log"| DB[("homemcp.sqlite")]Layer | Security Boundary |
Gateway Container | Non-root uid |
Host Agent ( | Runs outside container over a |
Access Tiers ( | Read-only ( |
Redaction & Trust | Single centralized |
Related MCP server: MCP Control Plane
Capabilities Overview
134 tools across 15 toolsets, 9 MCP resources, and 8 workflow prompts (full generated reference · detailed feature catalog):
Toolset | Tools | Tiers | Summary |
| 6 | T0, T1 | Unified server overview, capabilities, async job status/cancel, audit logs |
| 13 | T0, T2, T3 | CPU/RAM/thermal/battery health, sysstat trends, SMART disks, journald logs, security audit, systemd control, passkey-gated reboot |
| 12 | T0, T2 | Container inspection/logs/stats, update checks, auto-rollback digest updates, prune plans |
| 11 | T0–T3 | Scan & validate Compose YAML against security policy, deploy curated templates, soft-trash removal |
| 14 | T0, T2, T3 | NPM proxy hosts, Cloudflare Tunnel ingress, DNS CNAMEs, exposure drift audit, reversible |
| 6 | T0, T1, T3 | Restic S3/R2 freshness vs RPO, snapshot listing, manual runs, |
| 8 | T0–T3 | Health & lockdown audit + dedicated Vaultwarden backup status, snapshots, run, integrity test, prune plan/apply, & T3 staging restore |
| 1 | T0 | Configurable HTTP/HTTPS health probes across self-hosted apps |
| 14 | T0, T1, T2 | Navidrome/Subsonic library search, stats, rescan, fuzzy track matcher, playlist CRUD |
| 10 | T0, T1 | Search and download tracks/albums/batches via NaviLoad and sync Navidrome |
| 12 | T0, T1, T2 | Jellyfin libraries, sessions, search, scans, scheduled tasks, activity logs |
| 5 | T0, T1, T2 | qBittorrent search/sort/inspect, categories, magnet/URL enqueue, pause/resume/recheck, plan-first removal |
| 6 | T0, T1, T2 | Built-in metric/health rule watcher, ack/snooze, threshold tuning, |
| 10 | T0, T1, T2 | Root-allowlisted file browse/read/write/move, |
| 6 | T0, T2, T3 | OAuth client listing/revocation and passkey-revealed Personal Access Tokens (PATs) |
Encrypted Backups & Vaultwarden Backup Management
Backups use Restic (client-side AES-256 encryption) stored in an S3-compatible bucket (such as Cloudflare R2), keeping all encryption keys and bucket secrets isolated in 0600 root:root files outside the MCP gateway:
7 targeted backup sets (
vaultwarden,configs,npm,navidrome,system,jellyfin,userdata) archive consistent SQLite.backupcopies and critical configuration while excluding huge regenerable media/cache directories.Dedicated Vaultwarden backup management (
vaultwarden_backup_*): inspect RPO freshness (vaultwarden_backup_status), browse snapshots (vaultwarden_backup_snapshots), trigger backups (vaultwarden_backup_run), run automated SQLitePRAGMA integrity_check+ cipher count parity tests (vaultwarden_backup_test), plan & apply retention pruning (vaultwarden_backup_prune_plan/vaultwarden_backup_prune_apply), and stage manual recoveries safely without touching live data (vaultwarden_backup_restore_staging).
Read docs/backups.md and docs/runbooks/restore-vaultwarden.md for details.
Quick Start (60 Seconds in Mock Mode)
Run everything locally against realistic stateful fixtures without touching any server:
pnpm install
pnpm build
# Verify unit/integration tests, deterministic evals, and secret scanner
pnpm test
pnpm eval
pnpm check:secrets
# Start gateway in mock stdio mode (for Claude Desktop / MCP Inspector)
node packages/gateway/dist/cli.js serve --transport stdio --mockOr run over local HTTP with /mcp or focused toolsets (e.g. /mcp/vaultwarden,backup):
node packages/gateway/dist/cli.js serve --transport http --mockProduction Deployment Summary
Host Agent (
homemcpd): Build the agent release (deploy/agent/build-release.sh) and install step-by-step scripts underdeploy/agent/(install-p1.shread-only baseline ->install-p4.shbackup ->install-p5.shdocker/systemd ->install-p6.shstacks/files).Gateway Container (
deploy/gateway/): Copyexamples/homemcp.config.example.yamlanddeploy/gateway/.env.example, setHOMEMCP_SECRET_KEYandHOMEMCPD_HMAC_SECRET, and launch viadeploy/gateway/deploy.sh.Bootstrap Owner Identity: Run
docker exec -it homemcp node /app/dist/cli.js auth bootstrap --config /config/homemcp.config.yamlto enroll a WebAuthn passkey, TOTP backup, and offline recovery codes.
Full step-by-step instructions are in docs/deployment.md, docs/auth.md, and docs/clients.md.
Repository Structure
Path | Description |
Shared types, error model ( | |
Typed HTTP/API clients for Docker, NPM, Cloudflare, Subsonic/Navidrome, NaviLoad, Jellyfin, qBittorrent, Vaultwarden, | |
Privileged Linux host daemon ( | |
MCP server ( | |
Stateful in-memory fixtures, | |
Curated Compose service templates ( | |
Systemd units, sudoers rules, staged host installer scripts, and hardened gateway Dockerfile/Compose | |
Deterministic 40-task functional, security, safety, and prompt-injection evaluation suite | |
Architecture, threat model, auth, backup guide, feature catalog, client setup, runbooks, and auto-generated tool docs |
Documentation Index
Authentication (OAuth 2.1, Passkeys, PATs) · Connecting MCP Clients
Encrypted Backups & Vaultwarden Backups · Full Feature Catalog · Auto-Generated Tool Reference
Operational Runbooks: Restore Vaultwarden · Rotate Tunnel Token · Add Service · Disk Full · Break-Glass Recovery
License
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Linux server administration over OAuth MCP: shell, Docker, systemd, files and monitoring.
MCP server for mandates, delegation, policy-gated execution, credential grants, and audit.
SSH client, server management and one remote MCP URL for your machines, with human approvals.
Remote MCP server for notes, tasks, kanban boards and docs - the Slates agentic workspace
Related MCP Servers
- AlicenseBqualityAmaintenanceAll-in-one homelab management MCP server. Docker monitoring, volume backup/restore (with compose and env files), Wake-on-LAN, network scanning, and multi-server SSH management.44380MIT
- AlicenseNot gradedqualityCmaintenanceOpen-source, Windows-first control plane for operating local and homelab services through typed MCP servers, featuring 13 servers and 290 tools with infrastructure adapters for Windows, Ubuntu, Docker, and more.2MIT
- AlicenseNot gradedqualityCmaintenanceMCP server and CLI for host and container operations, enabling Docker and Compose control, SSH, host inspection, logs, ZFS, and safe file transfer. It exposes flux and scout MCP tools with parity from the original TypeScript server.2AGPL 3.0
- AlicenseAqualityAmaintenanceA unified MCP server for your self-hosted media stack (Radarr, Sonarr, Jellyfin, etc.). It correlates across services to answer questions no single service can, with safety features like untrusted-output fencing and safe-by-default deletions.244149MIT