drio
Open app

Code Sandbox MCP 🐳

Source

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.

Catalog onlyCatalog onlySTDIO

Overview

Code Sandbox MCP is a secure server designed to create isolated code sandbox environments for executing code within Docker containers, providing a safe space for AI applications to run code securely.

To use Code Sandbox MCP, install it via the provided installation scripts for your operating system, and then execute your code snippets or projects in isolated Docker containers using the available tools.

  • Multi-language support for Python, Go, and Node.js. - Built-in TypeScript support. - Automatic dependency management for various programming languages. - Flexible execution options for both single-file code and full projects. - Real-time output streaming and log capturing.
  1. Running and testing code snippets in a secure environment.
  2. Executing full projects with automatic dependency handling.
  3. Providing a backend for AI applications that require code execution.

Add to your AI client

Use these steps to connect Code Sandbox MCP 🐳 in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "code-sandbox-mcp-automata-labs-team": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-code-sandbox-mcp-automata-labs-team"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "code-sandbox-mcp-automata-labs-team": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-code-sandbox-mcp-automata-labs-team"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "code-sandbox-mcp-automata-labs-team": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-code-sandbox-mcp-automata-labs-team"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "code-sandbox-mcp-automata-labs-team": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-code-sandbox-mcp-automata-labs-team"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "code-sandbox-mcp-automata-labs-team": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-code-sandbox-mcp-automata-labs-team"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "code-sandbox-mcp-automata-labs-team": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-code-sandbox-mcp-automata-labs-team"
      ]
    }
  }
}

FAQ

Is Code Sandbox MCP secure?

Yes! It uses Docker containers to isolate code execution, ensuring a secure environment.

What languages does Code Sandbox MCP support?

It supports Python, Go, and Node.js, along with TypeScript.

How do I install Code Sandbox MCP?

You can install it using the provided installation scripts for Linux, macOS, or Windows.