Infrastructure MCP Server is a self-hosted Model Context Protocol (MCP) server designed to provide AI agents with secure, auditable infrastructure access, avoiding the direct granting of raw SSH or shell permissions. By exposing high-level, structured tools (such as disk_usage(), docker_restart(), grafana_alerts()) instead of a generic execute(command), it enables agents to reason based on inventory, while the server itself is the only component that actually interacts with the infrastructure.
Key capabilities:
- Supports management of Linux servers, Docker containers, Kubernetes clusters, Proxmox virtualization environments, Grafana monitoring, and Cisco network devices (some features are still on the roadmap).
- Provides a rich toolset, for example: list_servers, check_inventory_health, uptime, disk_usage, memory_usage, failed_services, cpu_usage, reboot_required, running_processes, journal_errors, kernel_version, docker_ps, docker_images, docker_stats, docker_logs, docker_restart, kubectl_get_pods, kubectl_logs, kubectl_events, kubectl_describe, kubectl_nodes, grafana_alerts, grafana_dashboards, grafana_annotations, grafana_query, proxmox_nodes, proxmox_vms, proxmox_tasks, proxmox_start_vm, proxmox_stop_vm, proxmox_snapshot, cisco_backup, cisco_version, cisco_interfaces, cisco_inventory, cisco_logs, cisco_backup_diff, etc.
- CanOptional compatibility escape-hatch tools (run_command, docker_exec, kubectl_exec) are provided, but disabled by default and must be explicitly enabled via the -enable-run-command flag.
- All tool calls are manifest-driven and return structured JSON containing fields such as severity, recommendations, and timestamps, and generate structured logs (tool, user, target, duration, result, error).
- Provides an audit resource audit://recent that records recent mutating tool calls (in memory, retaining 200 entries by default).
- Supports a dry_run mode to preview commands or API calls without actually executing them.
- Host key verification is enabled by default (fail-closed), with support for legacy network devices (Telnet, older encryption algorithms).
- Supports two MCP transport modes: stdio (local subprocess) and Streamable HTTP (remote clients); HTTP mode requires a Bearer token (MCP_HTTP_TOKEN) by default to ensure security.
- Provides Docker multi-architecture images and Docker Compose configuration, with health check mode support.
- Includes CI/CD pipelines, including build, test, semantic versioning, image publishing, and Trivy scanning.
Usage:
- Can be run via prebuilt binaries (Linux/macOS, amd64/arm64) or Docker images.
- Requires preparing a manifest YAML file that defines target servers and devices, with support for environment variable expansion to protect sensitive information.
- Point an MCP client (such as Claude Code, Cursor, OpenAI Codex, Gemini CLI, Windsurf, etc.) at the server binary or HTTP endpoint to connect.
- Provides example manifest snippets and client configuration examples, as well as a free operator skill that guides agents on how to use the tools safely.
Use cases:
- Need to let AI agents assist with infrastructure operations, but require strict security boundaries and audit trails.
- Want to avoid giving agents raw shell access while still being able to perform common operational tasks (checking disks, restarting containers, viewing logs, etc.).
- Suitable for development, testing, and production environments, but authentication and network isolation must be configured according to security requirements.
Limitations:
- The project is in an early stage of active development, and some features(such as MikroTik, UniFi, Prometheus/Loki, Home Assistant, etc.) are still on the roadmap and not yet released.
- Requires Go 1.26 or later to build from source, or use prebuilt binaries/Docker images.
- HTTP transport mode requires you to configure TLS and network-layer access control yourself; the server itself does not provide transport-layer authentication.
- Enabling escape-hatch tools grants agents unrestricted command execution capability, so risks must be carefully assessed.
- Tool output (such as logs, raw queries, device configurations) may contain sensitive data, so access control must be carefully considered.