Back to MCP Servers

Node Code Sandbox

A Node.js MCP server that spins up isolated Docker-based sandboxes for executing JavaScript snippets with on-the-fly npm dependency installation and clean teardown

code-executionjavascriptnodedocker

Installation

npx -y node-code-sandbox-mcp

Configuration

{
  "mcpServers": {
    "node-code-sandbox-mcp": {
      "command": "npx",
      "args": ["-y", "node-code-sandbox-mcp"]
    }
  }
}

How to use

  1. Run the installation command above (if needed)
  2. Open your Claude Code settings file (~/.claude/settings.json)
  3. Add the configuration to the mcpServers section
  4. Restart Claude Code to apply changes
View source on GitHub