Engineer Builds Allowlist-Only MCP Server to Give AI Safe VPS Access Without a Shell
A developer has built a production-minded MCP (Model Context Protocol) server that allows an AI assistant to inspect a VPS without exposing an unrestricted shell. The server sits between the AI client and the VPS, permitting only a fixed set of read-oriented operations such as checking disk usage, container logs, SSL expiry, and service status. Each permitted operation maps to a pre-approved script on the server, and all requests must pass structured JSON validation before any SSH connection is made. Access is further restricted through a dedicated Linux user with limited sudo privileges and root-owned allowlisted scripts acting as a command gateway. The project, built in Python using the official MCP SDK, AsyncSSH, and Pydantic, prioritises operational visibility for AI tools while keeping arbitrary command execution entirely out of reach.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in