infra-mcp
List containers, fetch bounded container logs, and restart named containers.
Monitor system status including uptime, CPU load, memory, and root filesystem usage, and inspect failed systemd services.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@infra-mcpcheck the host system status"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
infra-mcp
Secure MCP gateway for observing and controlling self-hosted infrastructure from ChatGPT. The project is designed to provide narrowly scoped, auditable access to Linux system diagnostics, Docker workloads, Dokploy deployments, and Oracle Cloud Infrastructure (OCI) without exposing an unrestricted shell or the Docker socket directly to the public MCP service.
Status: Initial scaffold. Start with read-only diagnostics and container logs, then add carefully scoped write operations after the deployment and authentication path is verified.
Architecture
ChatGPT Web
|
| MCP over HTTPS / Secure MCP Tunnel
v
MCP Gateway (unprivileged container)
|
| authenticated Unix socket
v
Host Agent (systemd service, allowlisted operations)
|
+-- Docker / container logs
+-- systemd / journal
+-- host health and diagnostics
|
+----------------------+
|
MCP Gateway ---------------+-- Dokploy API
+-- OCI APIsThe MCP gateway never receives arbitrary shell access and does not mount /var/run/docker.sock. Privileged host operations are isolated behind a small host agent with explicit allowlists and strict input validation.
Related MCP server: sshops
Initial capabilities
System status: uptime, CPU load, memory, and root filesystem usage.
Docker: list containers and fetch bounded container logs.
Docker actions: restart a named container as an explicit write operation.
systemd: inspect failed services.
Health endpoints for the MCP gateway and host agent.
Planned integrations include Dokploy deployments, OCI instance lifecycle controls, OCI Vulnerability Scanning/Cloud Guard findings, package/security update workflows, and emergency recovery through OCI Run Command.
Repository layout
infra-mcp/
├── apps/
│ ├── mcp-server/ # ChatGPT-facing MCP gateway
│ └── host-agent/ # Privileged host-side allowlisted agent
├── deploy/
│ └── systemd/ # Host-agent service unit
├── docs/
│ ├── ARCHITECTURE.md
│ └── DEPLOYMENT.md
├── .env.example
├── docker-compose.yml
├── package.json
└── tsconfig.base.jsonSecurity model
No arbitrary shell tool. MCP tools map to explicit operations only.
No Docker socket in the MCP container. Docker access stays in the host agent.
Unix-socket boundary. The MCP gateway talks to the host agent through
/run/infra-mcp/agent.sock.Shared agent token. Requests over the local socket still require an internal bearer token for defense in depth.
Bounded inputs. Container names are validated and log output is capped.
Read vs. write annotations. MCP tools advertise read-only/destructive intent so ChatGPT can apply confirmation policies appropriately.
Secrets stay outside Git. Runtime secrets belong in Dokploy/environment configuration.
See docs/ARCHITECTURE.md for trust boundaries and docs/DEPLOYMENT.md for the Oracle VM + Dokploy setup and ChatGPT connection steps.
Development
Requirements:
Node.js 22+
npm 10+
Docker for the MCP gateway image
Linux + systemd for the host agent deployment
npm install
npm run buildRun the host agent locally:
cp .env.example .env
npm run dev:agentRun the MCP server in another terminal:
npm run dev:mcpThe MCP endpoint is exposed at:
http://localhost:3000/mcpFor ChatGPT, deploy behind HTTPS or use OpenAI Secure MCP Tunnel. Do not expose a no-auth development endpoint directly to the public Internet.
ChatGPT app metadata
Suggested app name:
Infra MCPSuggested app description:
Securely inspect and operate my self-hosted infrastructure, including Linux host health, Docker containers and logs, Dokploy deployments, and OCI resources. Use read-only diagnostics first and request confirmation before consequential operations.Deployment direction
The intended production layout for the current Oracle VM + Dokploy setup is:
mcp-server: deployed as a normal Dokploy application/container.host-agent: installed as a systemd service on the VM host./run/infra-mcp: bind-mounted into the MCP container.ChatGPT: connected to the
/mcpendpoint as a developer-mode app.Authentication: add standards-compliant OAuth before exposing the MCP endpoint publicly; alternatively use a private Secure MCP Tunnel where appropriate.
Why not OCI Run Command for everything?
OCI Run Command is useful as an emergency/fallback path, but everyday diagnostics such as container logs are better served by the low-latency host agent. The long-term design keeps OCI APIs for VM lifecycle/recovery and uses the local agent for interactive host operations.
License
No license has been selected yet. Add one before encouraging third-party reuse or contributions.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Phloraxx/infra-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server