ubuntu-mcp
by frkr
Overview
Execute shell commands within a Dockerized Ubuntu environment via HTTP API or MCP stdio.
Installation
docker run --platform linux/amd64 -v"$(pwd)":/home/mcpuser --rm -d --name ubuntu-mcp -p 9000:9000 frkr/ubuntu-mcp:22.04Security Notes
The `/api/exec` endpoint directly executes arbitrary shell commands using `subprocess.run` with `shell=True`, making it highly vulnerable to command injection if exposed to untrusted input or networks. While the README warns against this and suggests running in a disposable container with a non-root user, the core functionality allows any shell command sent by the client, which is a critical security risk.
Similar Servers
docker-mcp-server
A Model Context Protocol (MCP) server for containerized execution and file operations, enabling AI assistants to interact with a Docker environment via HTTP.
mcp-devcontainers
Provides a Model Context Protocol (MCP) server for integrating with and managing devcontainer environments via the devcontainers CLI.
ACMS
Provides programmatic access to Apple's container CLI tool on macOS via Model Context Protocol (MCP) for AI agents.
mcp_docker
Manages Docker containers, images, networks, and volumes for AI assistants via the Model Context Protocol (MCP).