Back to Home
frkr icon

ubuntu-mcp

by frkr

Overview

Execute shell commands within a Dockerized Ubuntu environment via HTTP API or MCP stdio.

Installation

Run Command
docker run --platform linux/amd64 -v"$(pwd)":/home/mcpuser --rm -d --name ubuntu-mcp -p 9000:9000 frkr/ubuntu-mcp:22.04

Security 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

Stats

Interest Score0
Security Score2
Cost ClassLow
Avg Tokens100
Stars0
Forks0
Last Update2025-12-01

Tags

DockerUbuntuHTTP APIShell CommandsMCP