a year ago
developer-toolsA Node.js–based Model Context Protocol server that spins up disposable Docker containers to execute arbitrary JavaScript.
Overview
What is Node.js Sandbox MCP?
Node.js Sandbox MCP is a server that implements the Model Context Protocol (MCP) to run arbitrary JavaScript code in isolated Docker containers, allowing for on-the-fly npm dependency installation.
How to use Node.js Sandbox MCP?
To use the Node.js Sandbox MCP, you can start a fresh sandbox container, run JavaScript code, and manage npm dependencies through its API. You can also run it in a Docker container for easy setup.
Key features of Node.js Sandbox MCP?
- Start and manage isolated Node.js sandbox containers.
- Execute arbitrary shell commands inside containers.
- Install specified npm dependencies per job.
- Run ES module JavaScript snippets and capture stdout.
- Cleanly tear down containers after execution.
Use cases of Node.js Sandbox MCP?
- Running quick experiments with JavaScript code.
- Testing and executing scripts in a controlled environment.
- Managing npm dependencies for isolated jobs.
- Integrating with development tools like VS Code and Claude Desktop.
FAQ from Node.js Sandbox MCP?
- Can I run any JavaScript code?
Yes! You can run any arbitrary JavaScript code in the sandbox.
- How do I manage npm dependencies?
You can specify npm dependencies when running your JavaScript code, and they will be installed in the sandbox environment.
- Is it safe to run untrusted code?
Yes, the sandboxing feature ensures that the code runs in isolation, minimizing risks.