1. Conduid
  2. Developer Tools
  3. alfonsograziano/node-code-sandbox-mcp
MCP server · Developer Tools

alfonsograziano/node-code-sandbox-mcp

A Node.js–based Model Context Protocol server that spins up disposable Docker containers to execute arbitrary JavaScript.

58Fair

Scored 5 hours ago · breakdown

About alfonsograziano/node-code-sandbox-mcp

alfonsograziano/node-code-sandbox-mcp is an MCP server published by alfonsograziano in the Developer Tools category: a Node.js–based Model Context Protocol server that spins up disposable Docker containers to execute arbitrary JavaScript. Conduid read 7 tools from its source: get_dependency_types, run_js, run_js_ephemeral, sandbox_exec, sandbox_initialize, sandbox_stop and 1 more. No package is published for it, so it installs from a source checkout.

The repository has 156 stars and 35 forks, and its last commit was on 24 Nov 2025. The latest release is v1.3.0. It follows v1.2.0, and the 5 most recent releases go back to v1.0.0. It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass License declared and Scoped permissions. Its topics include code-execution, code-sandbox, coding-agent, model-control-protocol, npm-dependencies and sandboxing.

Install

From source
git clone https://github.com/alfonsograziano/node-code-sandbox-mcp

Tools (7)

get_dependency_typesGiven an array of npm package names (and optional versions), fetch whether each package ships its own TypeScript definitions or has a corresponding @types/… package, and return the raw .d.ts text. Useful whenwhen you're about to run a Node.js script against an unfamiliar dependency and want to inspect what APIs and types it exposes.
run_jsInstall npm dependencies and run JavaScript code inside a running sandbox container. After running, you must manually stop the sandbox to free resources. The code must be valid ESModules (import/export syntax). Best for complex workflows where you want to reuse the environment across multiple executions. When reading and writing from the Node.js processes, you always need to read from and write to the "./files" directory to ensure persistence on the mounted volume.
run_js_ephemeralRun a JavaScript snippet in a temporary disposable container with optional npm dependencies, then automatically clean up. The code must be valid ESModules (import/export syntax). Ideal for simple one-shot executions without maintaining a sandbox or managing cleanup manually. When reading and writing from the Node.js processes, you always need to read from and write to the "./files" directory to ensure persistence on the mounted volume. This includes images (e.g., PNG, JPEG) and other files (e.g., text, JSON, binaries). Example: ```js import fs from "fs/promises"; await fs.writeFile("./files/hello.txt", "Hello world!"); console.log("Saved ./files/hello.txt"); ```
sandbox_execExecute one or more shell commands inside a running sandbox container. Requires a sandbox initialized beforehand.
sandbox_initializeStart a new isolated Docker container running Node.js. Used to set up a sandbox session for multiple commands and scripts.
sandbox_stopTerminate and remove a running sandbox container. Should be called after finishing work in a sandbox initialized with sandbox_initialize.
search_npm_packagesSearch for npm packages by a search term and get their name, description, and a README snippet.

Security checks

Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository's README runs to about 1.5K words.
  • !License declaredNo license file. Legally you have no right to use it in a product.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedDependency versions are pinned by package-lock.json and website/package-lock.json.
  • ✓No dynamic code executionScanned 56 source files and found no eval, dynamic Function or shell execution.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

What the source scan found

Transport
stdiosrc/server.ts:7
Starts other programs
12 callssrc/dockerUtils.ts:67, src/tools/exec.ts:44, src/tools/initialize.ts:78
Outbound network calls
5 callssrc/tools/getDependencyTypes.ts:31, src/tools/getDependencyTypes.ts:42, src/tools/getDependencyTypes.ts:56
Writes or deletes files
8 callssrc/runUtils.ts:19, src/runUtils.ts:20, src/runUtils.ts:42
Lockfile
package-lock.json and website/package-lock.json

Pattern matches on the source text of 56 files: places to read, not proof of what the code does at run time.

Releases

v1.3.0v1.3.0
v1.2.0v1.2.0
v1.1.0v1.1.0
v1.0.2v1.0.2
v1.0.0v1.0.0

README

The repository's README runs to about 1.5K words, fetched a month ago. The original in the repository is authoritative.

Read full README
Questions

About alfonsograziano/node-code-sandbox-mcp

How do I install alfonsograziano/node-code-sandbox-mcp?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is alfonsograziano/node-code-sandbox-mcp safe to use with an AI agent?

Its trust score is 58 out of 100 (fair). It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass License declared and Scoped permissions. Conduid's scan of 56 source files found that it serves MCP over stdio, starts other programs (12 calls), makes outbound network calls (5 calls) and writes or deletes files (8 calls). Its dependencies are pinned by package-lock.json and website/package-lock.json. It has no ConduID identity yet, so agent calls to it are not receipted.

Is alfonsograziano/node-code-sandbox-mcp still maintained?

The last commit was a year ago and 15 open issues. That's long enough that you should check whether the maintainer is responding to issues before depending on it.

What tools does alfonsograziano/node-code-sandbox-mcp provide?

Conduid read 7 tools from the source: get_dependency_types, run_js, run_js_ephemeral, sandbox_exec, sandbox_initialize, sandbox_stop and search_npm_packages.