OlympHill
node-code-sandbox-mcp logo

node-code-sandbox-mcpA Node.js–based Model Context Protocol server that spins up disposable Docker containers to execute arbitrary JavaScript.

(0)
Daniel NikulshynReviewed by Daniel Nikulshyn·Updated July 2026

Overview

Node-code-sandbox-mcp is a Node.js-based Model Context Protocol (MCP) server. It spins up disposable Docker containers to execute arbitrary JavaScript. The server allows for isolated Node.js environments where users can run JavaScript snippets, install npm dependencies on the fly, and capture stdout. It's designed to work with controlled CPU and memory limits for safety. The tool can be used for various tasks, from simple script execution to more complex use cases like long-running servers. It requires Docker to be installed and running on the machine.

Key features

  • Execute arbitrary shell commands inside containers
  • Install specified npm dependencies per job
  • Run ES module JavaScript snippets
  • Capture stdout from scripts
  • Tear down containers cleanly
  • Detached Mode for long-running servers

Pricing

Model
Free
Category
MCP Servers
Rating
No reviews yet

Use cases

Script Execution and Testing

Use the Node.js Sandbox MCP Server to execute JavaScript scripts in isolation. This can be useful for testing scripts, validating ideas, or running tasks that should not interfere with the main environment.

Long-Running Servers

Utilize the detached mode to keep containers alive for long-running servers. This can be beneficial for tasks that require continuous operation, such as serving applications or running background jobs.

Pros & Cons

Pros

  • Enables execution of arbitrary JavaScript in isolated environments
  • Supports installation of npm dependencies per job
  • Allows for running ES module JavaScript snippets
  • Captures stdout from scripts
  • Tears down containers cleanly after use

Cons

  • Requires Docker to be installed and running on the machine
  • Containers run with controlled CPU and memory limits, which may restrict resource-intensive tasks

Reviews

Sign in to leave a review.

No reviews yet. Be the first!

Q&A

What type of JavaScript snippets can be run?

The tool supports running ES module JavaScript snippets and capturing stdout.

Asked by Tariq Aziz · Dec 17, 2025

Can I install npm dependencies with this tool?

Yes, you can install specified npm dependencies per job.

Asked by Gunnar Eriksson · Dec 10, 2025

Are there any limitations on resource usage?

Containers run with controlled CPU and memory limits, which may restrict resource-intensive tasks.

Asked by Halime Yalcin · Dec 13, 2025

What is required to run node-code-sandbox-mcp?

Docker must be installed and running on the machine.

Asked by Dumisani Ndlovu · Oct 6, 2025

Ask a question

MCP Servers alternatives