# infrastructure-mcp

> infrastructure-mcp is an open-source MCP server for cloud and infrastructure. Self-hosted MCP server giving AI agents named, audited access to servers, containers. It is available on CLI, Self-hosted, Linux and API.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted, Linux, API
- **Repository:** https://github.com/radumalica/infrastructure-mcp
- **GitHub stars:** 6
- **License:** MIT
- **Categories:** [cloud and infrastructure](https://ai-powered.com/categories/cloud-and-infrastructure), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

Rather than handing an assistant a shell, this server exposes a fixed set of named tools such as disk usage checks, container restarts and Grafana alert lookups. Each call resolves its target from a YAML inventory by name or tag, so the agent never chooses a host or sees a credential.

The server covers Linux hosts, Docker, Kubernetes, Proxmox, Grafana and Cisco devices, with Telnet and legacy SSH crypto available for older equipment. Mutating actions such as restarts, VM start/stop and snapshots require an explicit confirm flag, and a dry-run option previews the command without executing it. Every call produces a structured log line and returns JSON.

It suits sysadmins and homelab operators who want an assistant to investigate incidents across their own infrastructure while keeping an audit trail. The project is early and self-hosted, and roadmap items such as MikroTik, UniFi and Home Assistant are not yet implemented.

## Features

- **Inventory-driven targets:** Hosts, routers and clusters are defined once in YAML and referenced by name or tag.
- **Confirm-gated mutations:** Restarts, VM power actions and snapshots need an explicit confirm flag and support dry runs.
- **Structured JSON output:** Every tool returns JSON with severity levels and a timestamp, plus a consistent error shape.
- **Audit logging:** Each execution is logged with tool, user, target, duration and result, and recent mutations are exposed as a resource.
- **Multi-platform adapters:** Covers Linux, Docker, Kubernetes, Proxmox, Grafana and Cisco through separate integrations.
- **Stdio and HTTP transports:** Runs as a local subprocess or a remote Streamable HTTP server that requires a bearer token by default.

## Good for

- Investigate a slow server by checking CPU, containers and logs in one conversation
- Check disk and memory pressure across several Linux hosts
- Restart a crash-looping container after confirming the action
- Pull firing Grafana alerts and related datasource queries during an incident
- Back up and diff Cisco running configurations to spot drift

## Tools

From the tool list in its README, going by the names, 2 of 37 tools change data; 30 names don't say. From the server's own tool labels and tool names; not verified by us.

- `list_servers` (name suggests: reads): List inventory targets, optionally filtered by tag
- `check_inventory_health` (name suggests: reads): Validate the inventory file and its referenced keys and kubeconfigs
- `uptime`: Uptime and load averages
- `disk_usage`: Per-filesystem usage with warning and critical severity
- `memory_usage`: Memory utilization with warning and critical severity
- `failed_services`: List systemd units in the failed state
- `cpu_usage`: Aggregate CPU utilization
- `reboot_required`: Detect pending reboots
- `running_processes`: Top processes by CPU usage
- `journal_errors`: Recent systemd journal entries at error priority or higher
- `kernel_version`: Running kernel release
- `docker_ps`: List containers
- `docker_images`: List local images
- `docker_stats`: Point-in-time container resource usage
- `docker_logs`: Recent container log lines
- `docker_restart`: Restart a container, requires confirm
- `kubectl_get_pods` (name suggests: reads): List pods
- `kubectl_logs`: Fetch pod container logs
- `kubectl_events`: Recent cluster events
- `kubectl_describe` (name suggests: reads): Structured pod summary
- `kubectl_nodes`: Node list with readiness and capacity
- `grafana_alerts`: Firing and resolved alert instances
- `grafana_dashboards`: Search dashboards by title or tag
- `grafana_annotations`: Annotations by time range or tag
- `grafana_query` (name suggests: reads): Raw query against one datasource
- `proxmox_nodes`: List cluster nodes with status and usage
- `proxmox_vms`: List QEMU VMs and LXC containers on a node
- `proxmox_tasks`: Recent tasks on a node
- `proxmox_start_vm` (name suggests: changes): Start a VM or container, requires confirm
- `proxmox_stop_vm` (name suggests: changes): Force-stop a VM or container, requires confirm
- `proxmox_snapshot`: Take a VM or container snapshot, requires confirm
- `cisco_backup`: Fetch the running configuration
- `cisco_version`: Software version, hostname and uptime
- `cisco_interfaces`: Interface list with IP and status
- `cisco_inventory`: Hardware components with PID, VID and serial
- `cisco_logs`: Buffered syslog messages
- `cisco_backup_diff`: Diff running config against the last snapshot

## FAQ

### Does infrastructure-mcp give the agent raw shell access?

No. The shell-style escape hatches run_command, docker_exec and kubectl_exec are disabled unless the server is started with -enable-run-command.

### Which clients can connect to infrastructure-mcp?

Any MCP-compliant client. The listing names Claude Code, Cursor, OpenAI Codex, Gemini CLI, Windsurf and Hermes.

### How are credentials handled?

Credentials live inside the adapter layer and are resolved from environment variables, so the agent does not see them.

### What license is infrastructure-mcp under?

The project is released under the MIT License.

### Is infrastructure-mcp free?

Yes. infrastructure-mcp is open source, so you can use and self-host it for free.

### What are the best alternatives to infrastructure-mcp?

The closest alternatives to infrastructure-mcp are MCP Ssh Manager, SSH MCP Server, awslabs, VPS MCP & Digital Secretary and MCP Console Automation.

## Where this comes from

- Description: written from the project's README.

## Alternatives

- [MCP Ssh Manager](https://ai-powered.com/mcp/mcp-ssh-manager): MCP Ssh Manager is an open-source MCP server for developer tools.
- [SSH MCP Server](https://ai-powered.com/mcp/ssh-mcp-server): SSH MCP Server is an open-source MCP server for developer tools.
- [awslabs](https://ai-powered.com/mcp/awslabs): awslabs is an open-source MCP server for cloud and infrastructure.
- [VPS MCP & Digital Secretary](https://ai-powered.com/mcp/vps-mcp-and-digital-secretary): VPS MCP & Digital Secretary is an open-source MCP server for cloud and infrastructure.
- [MCP Console Automation](https://ai-powered.com/mcp/mcp-console-automation): MCP Console Automation is an open-source MCP server for browser automation.
- [Linux MCP daemon (mcpd)](https://ai-powered.com/mcp/linux-mcp-daemon-mcpd): Linux MCP daemon (mcpd) is an open-source MCP server for cloud and infrastructure.
- [ssh-mcp](https://ai-powered.com/mcp/ssh-mcp): ssh-mcp is an open-source MCP server for cloud and infrastructure.
- [Runner MCP](https://ai-powered.com/mcp/runner-mcp): Runner MCP is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/infrastructure-mcp
