An MCP server to create secure code sandbox environment for executing code within Docker containers. This MCP server provides AI applications with a safe and isolated environment for running code while maintaining security through containerization.
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"code-sandbox-mcp": {
"command": "<see-readme>",
"args": []
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
A secure sandbox environment for executing code within Docker containers. This MCP server provides AI applications with a safe and isolated environment for running code while maintaining security through containerization.
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Click any tool to inspect its schema.
Container LogsReturns all container logs from the specified container as a single text resource
containers://{id}/logs
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in developer-tools / devops
A Model Context Protocol (MCP) server and CLI that provides tools for agent use when working on iOS and macOS projects.
XcodeBuildMCP provides tools for Xcode project management, simulator management, and app utilities.
Manage Supabase projects — databases, auth, storage, and edge functions
MCP server for using the GitLab API
MCP Security Weekly
Get CVE alerts and security updates for Code Sandbox Mcp and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
A secure sandbox environment for executing code within Docker containers. This MCP server provides AI applications with a safe and isolated environment for running code while maintaining security through containerization.
curl -fsSL https://raw.githubusercontent.com/Automata-Labs-team/code-sandbox-mcp/main/install.sh | bash
# Run in PowerShell
irm https://raw.githubusercontent.com/Automata-Labs-team/code-sandbox-mcp/main/install.ps1 | iex
The installer will:
chmod +x code-sandbox-mcp
sandbox_initializeInitialize a new compute environment for code execution. Creates a container based on the specified Docker image.
Parameters:
image (string, optional): Docker image to use as the base environment
Returns:
container_id that can be used with other tools to interact with this environmentcopy_projectCopy a directory to the sandboxed filesystem.
Parameters:
container_id (string, required): ID of the container returned from the initialize calllocal_src_dir (string, required): Path to a directory in the local file systemdest_dir (string, optional): Path to save the src directory in the sandbox environmentwrite_fileWrite a file to the sandboxed filesystem.
Parameters:
container_id (string, required): ID of the container returned from the initialize callfile_name (string, required): Name of the file to createfile_contents (string, required): Contents to write to the filedest_dir (string, optional): Directory to create the file in (Default: ${WORKDIR})sandbox_execExecute commands in the sandboxed environment.
Parameters:
container_id (string, required): ID of the container returned from the initialize callcommands (array, required): List of command(s) to run in the sandboxed environment
copy_fileCopy a single file to the sandboxed filesystem.
Parameters:
container_id (string, required): ID of the container returned from the initialize calllocal_src_file (string, required): Path to a file in the local file systemdest_path (string, optional): Path to save the file in the sandbox environmentsandbox_stopStop and remove a running container sandbox.
Parameters:
container_id (string, required): ID of the container