Homelab MCP Server
Provides tools for interacting with Home Assistant to manage entities, automations, scenes, service calls, and history.
Provides a REST API designed for n8n workflow automation, enabling n8n workflows to call homelab service endpoints and integrate actions.
Provides tools for inspecting and managing OPNsense firewall interfaces, DHCP, gateways, firmware, and services.
Provides tools for interacting with Plex Media Server to monitor playback activity, search libraries, trigger scans, and control streams.
Provides tools for managing Docker environments through Portainer, including containers, stacks, volumes, and logs.
Provides tools for managing Proxmox VE virtual machines, containers, snapshots, storage, and power operations.
Provides tools for managing movies through Radarr, including searching, adding content, viewing the calendar, and monitoring the download queue.
Provides tools for managing TV content through Sonarr, including searching, adding content, viewing the calendar, and monitoring the download queue.
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.
Expose 9 homelab services through a single MCP endpoint for AI assistants (Claude, Gemini, ChatGPT, Cursor, etc.) and a full REST API for automation tools like n8n.
✨ Features
30 consolidated MCP tools – action-based compound tools that keep context windows efficient
MCP Resources – real-time data feeds (clients, devices, queues, health) that agents can subscribe to
MCP Prompts – pre-built prompt templates for common tasks (troubleshooting, security audits, health checks)
Full REST API – every tool is also exposed as a REST endpoint with Swagger docs
Conditional registration – only enabled services register their tools, keeping the tool list clean
Docker-first deployment – single
docker compose upto run everythingStructured error handling – consistent JSON errors with proper HTTP status codes
Audit logging – every tool call is traced and logged
Related MCP server: mcp-homelab
📦 Supported Services
Service | Category | MCP Tools | Capabilities |
Unifi | Networking | 9 | Clients, devices, firewall, VLANs, security, guest access, backups |
Proxmox | Virtualization | 3 | VMs, containers, snapshots, storage, power management |
Plex | Media Server | 2 | Playback activity, library search, scans, stream control |
Radarr / Sonarr | Media Management | 4 | Movie & TV search, add content, calendar, download queue |
SABnzbd | Downloads | 2 | Queue management, speed limits, history |
Portainer | Docker | 4 | Containers, stacks, volumes, logs across environments |
OPNsense | Firewall | 2 | Interfaces, DHCP, gateway, firmware, service management |
Home Assistant | IoT / Smart Home | 3 | Entities, automations, scenes, service calls, history |
Traefik | Reverse Proxy | 1 | Router inspection, service backends, health overview |
🚀 Quick Start
Prerequisites
Docker and Docker Compose (recommended)
or Python 3.11+ for local development
1. Clone the repository
git clone https://github.com/theonlytruebigmac/homelab-mcp.git
cd homelab-mcp2. Configure your environment
cp .env.example .envEdit .env and configure the services you want to use. Each service has an *_ENABLED flag — set any service to false to disable it entirely (its tools and routes won't be registered):
# ---- MCP Server ----
MCP_HOST=0.0.0.0
MCP_PORT=3333
# ---- Logging ----
LOG_LEVEL=INFO # DEBUG, INFO, WARNING, ERROR
LOG_JSON_FORMAT=false # true for structured JSON logs
# ---- Unifi Controller ----
UNIFI_ENABLED=true
UNIFI_URL=https://192.168.1.1:8443
UNIFI_USERNAME=admin
UNIFI_PASSWORD=your_password_here
UNIFI_SITE=default
UNIFI_VERIFY_SSL=false
# ---- Radarr (Movies) ----
RADARR_ENABLED=true
RADARR_URL=http://your-radarr-ip:7878
RADARR_API_KEY=your_radarr_api_key_here
# ---- Sonarr (TV) ----
SONARR_ENABLED=true
SONARR_URL=http://your-sonarr-ip:8989
SONARR_API_KEY=your_sonarr_api_key_here
# ---- Plex ----
PLEX_ENABLED=true
PLEX_URL=http://your-plex-ip:32400
PLEX_TOKEN=your_plex_token_here
# ---- Proxmox ----
PROXMOX_ENABLED=true
PROXMOX_URL=https://your-proxmox-ip:8006
PROXMOX_USER=root@pam
PROXMOX_PASSWORD=your_password_here
# ---- Portainer ----
PORTAINER_ENABLED=true
PORTAINER_URL=http://your-portainer-ip:9000
PORTAINER_ACCESS_TOKEN=your_access_token_here
# ---- OPNsense ----
OPNSENSE_ENABLED=true
OPNSENSE_URL=https://your-opnsense-ip
OPNSENSE_API_KEY=your_api_key
OPNSENSE_API_SECRET=your_api_secret
# ---- Home Assistant ----
HASS_ENABLED=true
HASS_URL=http://homeassistant.local:8123
HASS_TOKEN=your_long_lived_access_token
# ---- SABnzbd ----
SABNZBD_ENABLED=true
SABNZBD_URL=http://localhost:8080
SABNZBD_API_KEY=your_api_key
# ---- Traefik ----
TRAEFIK_ENABLED=true
TRAEFIK_URL=http://localhost:8080
TRAEFIK_USERNAME= # optional basic auth
TRAEFIK_PASSWORD=Tip: You only need to configure the services you actually use. Set
*_ENABLED=falsefor everything else — those tools won't even appear in the MCP tool list.
3. Deploy with Docker Compose
docker compose up -d --buildThe server will be available at:
Endpoint | URL | Description |
MCP |
| Connect your AI agent here |
REST API Docs |
| Interactive Swagger UI |
Health Check |
| Server status + version |
Unified Status |
| Health of all services |
4. Connect your AI agent
Claude Desktop / Cursor / Gemini CLI — add to your MCP config:
{
"mcpServers": {
"homelab-mcp": {
"url": "http://<your-server-ip>:3333/mcp"
}
}
}🛠️ Local Development (without Docker)
# Create a virtual environment
python3 -m venv .venv
source .venv/bin/activate
# Install the package in development mode
pip install -e ".[dev]"
# Configure environment
cp .env.example .env
# Edit .env with your service credentials
# Run the server
homelab-mcpThe homelab-mcp entry point is defined in pyproject.toml and runs src/homelab_mcp/server.py:main().
🏗️ Architecture
src/homelab_mcp/
├── server.py # FastMCP + FastAPI app, tool/router registration, lifespan
├── config.py # Pydantic Settings for all services
├── services/
│ ├── unifi/ # Unifi Controller integration
│ │ ├── client.py # API client (aiohttp)
│ │ └── tools.py # MCP tools + impl functions
│ ├── proxmox/ # Proxmox VE integration
│ ├── plex/ # Plex Media Server
│ ├── media/ # Radarr + Sonarr
│ ├── portainer/ # Docker via Portainer
│ ├── opnsense/ # OPNsense firewall
│ ├── hass/ # Home Assistant
│ ├── sabnzbd/ # SABnzbd Usenet
│ └── traefik/ # Traefik reverse proxy
├── routers/ # FastAPI REST routers (one per service)
└── utils/
├── logging.py # @traced decorator, audit trail
└── exceptions.py # Structured error hierarchyEach service follows the same pattern:
client.py— async API client usingaiohttpwith lazy initializationtools.py—_implfunctions shared by both MCP tools and REST routers, plusregister_*_tools()to register consolidated MCP tools, resources, and prompts
📡 n8n Integration
This server provides a REST API designed for n8n workflow automation:
AI Agent Node — Use the built-in MCP tool support or the "Call Workflow" pattern
HTTP Request Node — Call any REST endpoint directly (see Swagger at
/docs)Subworkflow — Route tool calls to REST endpoints for complex automation chains
📚 Documentation
Document | Description |
All tools available to AI agents | |
Full endpoint listing for automation | |
Interactive API explorer (when running) |
📄 License
This project is licensed under the MIT 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
Connect any AI agent to 1,000+ apps and 27,000+ actions through one remote MCP server (OAuth).
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
MCP server connecting AI agents to 100+ apps (Gmail, Slack, Notion, GitHub) via one-click OAuth.
Zero-setup MCP gateway securely connecting AI to your tools with authentication and workflows
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceSelf-hosted AI orchestrator that monitors and manages homelab services, exposing them as MCP tools for LLMs to drive.5MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that gives AI assistants real-time access to your homelab infrastructure. It enables querying node status, managing Docker containers, controlling Proxmox VMs, and inspecting OPNsense firewall state through natural conversation.26 PyPI2MIT
- AlicenseAqualityDmaintenanceAn MCP server exposing 72 tools across 26 homelab services, enabling LLMs to monitor and manage infrastructure, media, storage, and networking with a single endpoint.16MIT
- AlicenseNot gradedqualityCmaintenanceA single MCP server that gives an AI assistant comprehensive access to manage a homelab, including SSH, Docker, Proxmox, Synology, Cloudflare, and more, with 85 tools and a centralized configuration.MIT