mikeaorlando.com Michael Orlando
  • Home
  • Start Here
  • About
  • Work & Ventures
  • Ideas & Writing
  • Collaborate
  • Search

◉MCP Servers for the Homelab

MCP Servers for the Homelab

How I give Claude Code and my Hermes agent read access to my homelab through MCP servers, starting read-only and scoped to what each agent needs.

Routing Notes

  • Parent Projects for Fun
  • Signal Working Systems

Overview

An AI agent working on infrastructure is only as useful as what it can see. I use Model Context Protocol servers to give Claude Code and my Hermes agent direct, mostly read-only access to the live state of Praxis, my homelab: the cluster, logs, metrics, the network, home automation and LLM traces. The rule I follow is to start read-only and scope each tool to what the agent needs for the work.

Context

Without these servers, an agent working in the homelab repository could read configuration but not the system it describes. Checking whether a service was up, why a container restarted, or whether a host was shipping logs meant I ran the command and pasted the output back. The other option was to grant broad shell access, which is more than the task needs and harder to review.

The System

If terms like MCP server, agent or tool call are new to you, How my AI stack fits together explains how the parts relate.

A custom Proxmox server. I wrote a small Python MCP server that gives read-only access to the Proxmox cluster: cluster and node status, VMs and containers, storage, and recent tasks. It reads the Ansible inventory, so an agent can ask about an inventory group and get the live state of the hosts in it. It authenticates with a dedicated token that has an auditor role. Changes to the cluster go through Ansible with a separate token, so the token an agent uses to look cannot change anything.

Existing servers for the rest. For logs, metrics and dashboards I use MCP servers for Loki, Grafana and Prometheus. For the network, the UniFi Network server. For the house, the Home Assistant server. For LLM traces, the server built into Langfuse. With Loki access in place, an agent can cross-check the inventory against what is actually arriving in the logs and find the hosts that are not reporting.

The same tools on every machine and agent. I run Claude Code on several machines, and their MCP configuration had drifted: one machine pointed at a stale path, another was missing a server. The fix was to commit the project’s .mcp.json with no secrets in it. Every value is a variable reference, non-secret values carry working defaults, and credentials live in user-scope settings on each machine. A fresh clone gets the full tool set with no manual copying. The Hermes agent registers the Grafana, Loki and Langfuse servers the same way, which also solved a problem there: MCP tools are available on every Hermes surface, while some of its built-in tools were limited to the command line.

Components and Why I Chose Them

Component What it does here Why I chose it
Model Context Protocol (tool page) The standard way each agent discovers and calls a tool One server works with every client that speaks the protocol, so Claude Code and Hermes share the same tools instead of each needing its own integration.
Claude Code (tool page) The agent I use in the homelab repository It reads a committed project .mcp.json, so the tool set travels with the repository.
Hermes Agent (tool page) The homelab agent that also uses these servers MCP tools are offered on every Hermes surface (command line, web interface and chat gateway), while some of its built-in tools are limited to the command line.
Custom Proxmox MCP server, in Python (Proxmox, Python) Read-only cluster, node, guest, storage and task status I wanted answers grouped by Ansible inventory group, and a server that could only read. Writing it myself kept both properties under my control, and it uses a token with an auditor role.
Grafana, Loki and Prometheus servers (Grafana, Loki, Prometheus) Dashboards, logs and metrics These are the homelab’s existing observability stack, so the agent reads the same data I do.
Langfuse built-in MCP endpoint (tool page) Read access to LLM traces It ships with Langfuse, so no separate server is needed.
UniFi Network and Home Assistant servers Network clients and devices; home automation state Existing servers for systems I already run; I started each with read-only checks before allowing any change.

Outcomes

Agents now answer questions about the homelab from live data instead of from my description of it. Troubleshooting starts with the agent reading logs, metrics and cluster state, and I spend my attention on the decision rather than on collecting output. Every machine and agent sees the same tools, and the configuration that defines them is reviewed in the repository like any other change.

Example Configuration

This is a simplified .mcp.json excerpt with placeholder values. Every value is a variable reference. Non-secret values carry a default with ${VAR:-default}; secrets have no default and must be set on each machine.

{
  "mcpServers": {
    "proxmox": {
      "command": "uv",
      "args": ["run", "--directory", "${REPO_ROOT}/MCP/proxmox", "server.py"],
      "env": {
        "PROXMOX_HOST": "${PROXMOX_HOST:-proxmox.example.internal}",
        "PROXMOX_TOKEN_ID": "${PROXMOX_TOKEN_ID:-agent@pve!mcp}",
        "PROXMOX_TOKEN_SECRET": "${PROXMOX_TOKEN_SECRET}"
      }
    },
    "loki": {
      "command": "loki-mcp-server",
      "env": {
        "LOKI_URL": "${LOKI_URL:-http://loki.example.internal:3100}"
      }
    },
    "langfuse": {
      "type": "http",
      "url": "${LANGFUSE_HOST:-https://langfuse.example.internal}/api/public/mcp",
      "headers": {
        "Authorization": "Basic ${LANGFUSE_AUTH}"
      }
    }
  }
}

The secrets go in the env block of the user-scope ~/.claude/settings.json, which is not in any repository. In my testing, Claude Code resolved these references only from the real process environment or from that user-scope file. An env block in the project’s settings files did not reach the MCP configuration.

{
  "env": {
    "REPO_ROOT": "/path/to/repo",
    "PROXMOX_TOKEN_SECRET": "<set on each machine>",
    "LANGFUSE_AUTH": "<set on each machine>"
  }
}

The custom Proxmox server exposes only read tools:

get_cluster_status   quorum and node online state
list_nodes           CPU, memory and disk per node
list_vms             VMs, optionally for one node
list_containers      containers, optionally for one node
list_storage         storage pool usage
get_group_status     live state for an Ansible inventory group
get_node_tasks       recent task history per node

Patterns Worth Reusing

Start read-only. Most of the value comes from an agent being able to look. Write access can come later, per tool, when there is a specific task that needs it.

Give the agent its own credential with the narrowest role that works, separate from the one automation uses to make changes.

Keep MCP configuration in version control and secrets out of it. A committed file with variable references is shareable; a gitignored file with inline credentials drifts on every machine.

Check what a tool actually does before enabling it. A package’s name or an agent’s description of it is not the same as reading its documentation, and a tool that runs commands needs an allowlist that you have confirmed exists.

Explore

  • ✎Posts
  • ○Categories
  • ◉Projects for Fun
  • ▶Projects for Work
  • ◎Systems Across Domains
  • ▪Technical Tools
  • ◆Transferable Skills
  • ✕Value Multipliers
  • ◇Ventures

Michael Orlando

Systems, ventures, writing, and public proof arranged so the right people can find the right next step.

© 2026 Michael Orlando

Privacy & Data Handling

about.me Substack Credly Polywork