技能潮 SkillTide 提交收录
官方说明13 个来源MCP 服务8 天前
alfonsograziano/node-code-sandbox-mcp

alfonsograziano/node-code-sandbox-mcp

📇 🏠 - Run JavaScript snippets in isolated Docker sandboxes with on-the-fly npm dependency installation and…
在 GitHub 查看 ↗直链 · 无中转页
官方说明📇 🏠 – 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
配置模板(请按你的客户端调整)
claude mcp add node-code-sandbox-mcp -- npx -y node-code-sandbox-mcp
这是根据仓库名生成的可粘贴骨架,命令行参数与包名请以该项目 README 为准。
★ 数取值
158 ★ · alfonsograziano/node-code-sandbox-mcp · 取自该仓库的 GitHub 页面 · (2026-10-16 20:00:20 核对)
来源明细
收录自 punkpeye/awesome-mcp-servers 榜单(我们从中收集的条目之一) · 条目类型:MCP 服务
收录与活跃
收录于 2026-10-09 · 最近见到 2026-10-16 · 共见到 32 次 · 被 13 个来源列出
评分构成
综合分 1,303 · 158 ★ · 13 个来源 · mcp
常见问题(答案都来自我们的记录)
怎么安装?
我们【没有】从该仓库取到安装命令(我们的 install 覆盖率只有约 4%)。请看它的 README 或 releases 页。
它适合谁 / 用来做什么?
我们把它归在这些标签下: MCP 服务。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
仓库 alfonsograziano/node-code-sandbox-mcp;我们收录于 2026-10-09;最近见到 2026-10-16。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。
第三方质量标记

🐢🚀 Node.js Sandbox MCP Server

以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →

Node.js server implementing the Model Context Protocol (MCP) for running arbitrary JavaScript in ephemeral Docker containers with on‑the‑fly npm dependency installation.
👉 Look at the official website
📦 Available on Docker Hub
Features
- 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
- Tear down containers cleanly
- **Detached Mode:** Keep the container alive after script execution (e.g. for long-running servers)
> Note: Containers run with controlled CPU/memory limits.
Explore Cool Use Cases
If you want ideas for cool and powerful ways to use this library, check out the use cases section on the website
It contains a curated list of prompts, examples, and creative experiments you can try with the Node.js Sandbox MCP Server.
⚠️ Prerequisites
To use this MCP server, Docker must be installed and running on your machine.
**Tip:** Pre-pull any Docker images you'll need to avoid delays during first execution.
Example recommended images:
- node:lts-slim
- mcr.microsoft.com/playwright:v1.55.0-noble
- alfonsograziano/node-chartjs-canvas:latest
Getting started
In order to get started with this MCP server, first of all you need to connect it to a client (for example Claude Desktop).
Once it's running, you can test that it's fully working with a couple of test prompts:
- Validate that the tool can run:
This should run a console.log and in the tool response you should be able to see Hello World.
- Validate that you can install dependencies and save files
This should create a file in your mounted directory (for example the Desktop) called "qrcode.png"
Usage with Claude Desktop
Add this to your claude_desktop_config.json:
You can follow the Official Guide to install this MCP server
or with NPX:
> Note: Ensure your working directory points to the built server, and Docker is installed/running.
Docker
Run the server in a container (mount Docker socket if needed), and pass through your desired host output directory as an env var:
This bind-mounts your host folder into the container at the **same absolute path** and makes FILES_DIR available inside the MCP server.
Ephemeral usage – **no persistent storage**
Usage with VS Code
**Quick install** buttons (VS Code & Insiders):
Install js-sandbox-mcp (NPX) Install js-sandbox-mcp (Docker)
**Manual configuration**: Add to your VS Code settings.json or .vscode/mcp.json:
API
Tools
run_js_ephemeral
Run a one-off JS script in a brand-new disposable container.
**Inputs:**
- image (string, optional): Docker image to use (default: node:lts-slim).
- code (string, required): JavaScript source to execute.
- dependencies (array of { name, version }, optional): NPM packages and versions to install (default: []).
**Behavior:**
1. Creates a fresh container.
2. Writes your index.js and a minimal package.json.
3. Installs the specified dependencies.
4. Executes the script.
5. Tears down (removes) the container.
6. Returns the captured stdout.
7. If your code saves any files in the current directory, these files will be returned automatically.
- Images (e.g., PNG, JPEG) are returned as image content.
- Other files (e.g., .txt, .json) are returned as resource content.
- Note: the file saving feature is currently available only in the ephemeral tool.
> **Tip:** To get files back, simply save them during your script execution.
**Example Call:**
**Example to save a file:**
This will return the console output **and** the hello.txt file.
来源
awesome · https://github.com/alfonsograziano/node-code-sandbox-mcp
按领域浏览
MCP 服务
Traction
158 ★
收录于
昨天

更多MCP 服务

查看MCP 服务全部 5,525 条 →

所属领域与标签

每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。

浏览全部领域 →

← 返回索引