node-code-sandbox-mcp

node-code-sandbox-mcp

60

This project establishes a Node.js server implementing MCP to execute JavaScript in Docker containers. It allows for arbitrary command execution, npm dependency management, and supports both isolated and persistent container operations.

What are the prerequisites for using the Node.js Sandbox MCP Server?

Docker must be installed and running on your machine to use the Node.js Sandbox MCP Server.

Can I keep a container running after script execution?

Yes, the server supports a detached mode that allows containers to remain alive after script execution, suitable for long-running processes.

How can I install npm dependencies for my scripts?

You can specify npm dependencies per job, and they will be installed on-the-fly within the container.

Is it possible to execute shell commands within the containers?

Yes, the server allows for the execution of arbitrary shell commands inside the containers.

What happens to the containers after script execution?

Containers are torn down cleanly after script execution unless running in detached mode.