Back to Home
bshandley icon

homelab-mcp

by bshandley

Overview

Provides AI models with remote control capabilities for monitoring and managing homelab infrastructure, including Docker, OPNsense, TrueNAS, Proxmox, and Home Assistant.

Installation

Run Command
docker compose up -d

Environment Variables

  • CAPABILITY_LEVEL
  • API_KEY
  • PORT
  • SERVER_DOMAIN
  • OAUTH_CLIENT_ID
  • OAUTH_CLIENT_SECRET
  • DOCKER_SOCKET
  • DOCKGE_STACKS_PATH
  • OPNSENSE_HOST
  • OPNSENSE_API_KEY
  • OPNSENSE_API_SECRET
  • TRUENAS_HOST
  • TRUENAS_API_KEY
  • PROXMOX_HOST
  • PROXMOX_TOKEN_ID
  • PROXMOX_TOKEN_SECRET
  • HOME_ASSISTANT_HOST
  • HOME_ASSISTANT_PORT
  • HOME_ASSISTANT_TOKEN
  • HOME_ASSISTANT_USE_HTTPS

Security Notes

The server grants AI models direct, high-privilege control over critical infrastructure components (Docker, Proxmox, TrueNAS, OPNsense). The `docker_exec` tool (Level 4) allows arbitrary command execution within containers, a severe security risk. API integrations for Proxmox, TrueNAS, and OPNsense explicitly disable SSL certificate validation (`rejectUnauthorized: false`), making them vulnerable to Man-in-the-Middle attacks if the network is not trusted. While authentication (API Key, OAuth) and capability levels are implemented, the potential for destructive actions or privilege escalation from a compromised AI or misconfigured server is extremely high, as explicitly warned in the README. Hardcoded secrets are not present; environmental variables are used for configuration. No code obfuscation or `eval` usage detected.

Similar Servers

Stats

Interest Score26
Security Score3
Cost ClassMedium
Avg Tokens500
Stars1
Forks0
Last Update2026-01-07

Tags

HomelabAI AgentInfrastructure-as-CodeDockerAutomation