Homelab MCP Server
Manage and monitor homelab systems via SSH.
Homelab MCP Server
AI-Powered Homelab Infrastructure Management via the Model Context Protocol
A Python MCP server that enables AI assistants to manage, deploy, and monitor homelab infrastructure. Tools span SSH discovery, VM management, service installation, network topology mapping, Proxmox operations, and credential management.
Key Features
- SSH Discovery -- Gather comprehensive hardware and software information from any system
- Service Installation -- Deploy Jellyfin, Pi-hole, Ollama, Home Assistant, and more from templates
- Proxmox Integration -- Full API access plus community script discovery
- VM/Container Lifecycle -- Deploy, control, and remove Docker and LXD workloads
- Network Mapping -- Discover devices, analyze topology, and track changes
- Terraform and Ansible -- State-managed deployments with drift detection and playbooks
- Credential Management -- Register servers once, connect without re-entering credentials
Quick Start
# Install from PyPI (recommended — no clone needed)
uvx homelab-mcp
# Or clone and run from source
git clone https://github.com/washyu/homelab_mcp.git
cd homelab_mcp
uv sync && uv run python run_server.py
For the full walkthrough (environment variables, MCP client configuration, first tool call), see the Setup Guide.
Documentation
| Guide | Description |
|---|---|
| Setup Guide | From zero to first tool call |
| Tool Reference | All tools with arguments and examples |
| Configuration | Environment variables and CLI options |
| Claude Desktop Setup | Claude Desktop integration guide |
How It Works
- Setup -- The server generates an SSH key pair on first run (
~/.ssh/mcp_admin_rsa) - Onboard a host -- Use
setup_mcp_adminto create a managed user on the target system - Verify -- Use
verify_mcp_adminto confirm passwordless SSH access - Manage -- Discover hardware, install services, control VMs, and map your network
The server communicates over stdio using the MCP protocol. Connect it to any MCP-compatible client (Claude Desktop, etc.) and interact through natural language.
Credential Management
Store SSH and Proxmox credentials once so the server auto-injects them on every connection:
# Store an SSH credential
homelab-mcp credentials add 192.168.1.10 admin
# Store a Proxmox API credential
homelab-mcp credentials add 192.168.1.200 root@pam --type proxmox
# List stored credentials
homelab-mcp credentials list
homelab-mcp credentials list --type proxmox
# Remove a credential
homelab-mcp credentials remove 192.168.1.10
Credentials are stored in the OS keyring (libsecret on Linux, Keychain on macOS). When the OS keyring is unavailable (headless servers), credentials fall back to environment variables.
See Credentials CLI reference for full documentation.
MCP Client Configuration
From PyPI (uvx) — recommended:
{
"mcpServers": {
"homelab": {
"command": "uvx",
"args": ["homelab-mcp"]
}
}
}
From source clone:
{
"mcpServers": {
"homelab": {
"command": "uv",
"args": ["run", "python", "run_server.py"],
"cwd": "/path/to/homelab_mcp"
}
}
}
Development
# Install with dev dependencies
uv sync --group dev
# Run tests (unit only, no Docker required)
uv run pytest tests/ -m "not integration"
# Code quality
uv run ruff check src/ tests/
uv run mypy src/
See DEPLOYMENT.md for production deployment details.
Project Structure
src/homelab_mcp/
server.py # MCP server with JSON-RPC protocol
tool_schemas/ # Tool definitions (8 schema files)
tool_annotations.py # MCP annotation hints per tool
ssh_tools.py # SSH discovery and hardware detection
service_installer.py # Service installation framework
infrastructure_crud.py # Infrastructure lifecycle management
vm_operations.py # VM/container operations
sitemap.py # Network topology mapping
database.py # SQLite device tracking
error_handling.py # Centralized error handling
credential_store.py # OS keyring credential storage
log_filter.py # Credential redaction for log output
prompt_registry.py # MCP prompts registry
resource_readers.py # MCP resource read handlers
service_templates/ # YAML service definitions
tests/ # Unit and integration tests
docs/ # Full documentation
Acknowledgments
Proxmox community script integration powered by community-scripts/ProxmoxVE (MIT License).
Contributing
- Fork the repository
- Create a feature branch
- Write tests for new functionality
- Ensure all tests pass
- Submit a pull request
License
MIT License -- see LICENSE file for details.
เซิร์ฟเวอร์ที่เกี่ยวข้อง
MCP Documentation Service
A service for reading, writing, and managing markdown documentation with frontmatter metadata.
Productboard MCP Server
Integrates with the Productboard API, offering 49 specialized tools to manage all major Productboard functionalities.
Smartsheet
Integrate with Smartsheet for project management and data analytics, requiring an API access token.
Folderr MCP Server
Interact with the Folderr API to manage and communicate with Folderr Assistants.
early-mcp
Complete MCP server for Early (Timeular) time tracking - 46 tools for tracking, entries, activities, folders, tags, reports. Created with Claude
Agent Billy
MCP server that gives AI agents and teams secure, role-based access to Stripe billing operations — customer lookups, subscription management, refunds, invoice history — without exposing Stripe dashboard credentials. Sub-100ms reads via local Stripe sync engine. 4 permission levels with audit logging. $14.99/month.
Anki MCP
A Model Context Protocol (MCP) server that provides seamless integration with Anki, enabling AI assistants to interact with your flashcard collection. Create, read, update, and manage Anki cards programmatically through a standardized interface.
system-prompts-mcp-server
Model Context Protocol server exposing system prompt files and summaries.
Google MCP
A all-in-one Google Workspace MCP server
Todoist MCP
Interact with your Todoist tasks and projects using your LLM.