
infrastructure-mcp
Self-hosted MCP server giving AI agents named, audited access to servers, containers
The repository was last updated 47 days ago and is published under MIT.
infrastructure-mcp is an open-source MCP server for cloud and infrastructure. It is available on CLI, Self-hosted, Linux and API.
- Pricing
- Open source
- Platforms
- CLI, Self-hosted, Linux
- What it can do
- Can change data (2 tools)
- GitHub stars
- 6
- Last commit
Similar MCP servers
About infrastructure-mcp
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.
Tools this server provides (37)
Taken from the project documentation; the running server may differ.
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_serversName suggests: reads
- List inventory targets, optionally filtered by tag
- check_inventory_healthName 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_podsName suggests: reads
- List pods
- kubectl_logs
- Fetch pod container logs
- kubectl_events
- Recent cluster events
- kubectl_describeName 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_queryName 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_vmName suggests: changes
- Start a VM or container, requires confirm
- proxmox_stop_vmName 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
What it does
- 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
Pricing
Open source
Free, self-hosted under MIT
infrastructure-mcp 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.

