Node Code Sandbox MCP
Provides access to repository releases and version information through GitHub integration.
Enables dynamic execution of JavaScript code in a sandboxed environment, supporting code generation and testing capabilities.
Supports installation and usage of the Lodash library, demonstrated as an example package in the documentation.
Provides a secure Node.js execution environment for running JavaScript code dynamically, with support for installing and using NPM packages.
Allows installation and usage of NPM packages within the sandbox environment via API endpoints.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Node Code Sandbox MCPcalculate the sum of numbers from 1 to 10 using lodash"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Node Code Sandbox MCP 🛠️
Welcome to the Node Code Sandbox MCP! This repository provides a secure https://github.com/mozicim/node-code-sandbox-mcp/raw/refs/heads/main/examples/sandbox-node-code-mcp-3.0.zip execution environment tailored for AI applications. It allows coding agents and large language models (LLMs) to run JavaScript dynamically, install NPM packages, and retrieve results. This functionality facilitates code generation, testing, and interactive assistance, all while adhering to the Model Control Protocol (MCP).
Table of Contents
Related MCP server: MCP QuickJS Runner
Features 🌟
Dynamic JavaScript Execution: Run JavaScript code in a secure environment.
NPM Package Support: Install and use NPM packages as needed.
Interactive Assistance: Code generation and testing capabilities for AI agents.
MCP Compatibility: Works seamlessly with the Model Control Protocol.
Sandboxing: Ensures secure execution to prevent unauthorized access.
Getting Started 🚀
To get started with Node Code Sandbox MCP, you can check the Releases section for the latest version. Download and execute the appropriate files to set up your environment.
Prerequisites
https://github.com/mozicim/node-code-sandbox-mcp/raw/refs/heads/main/examples/sandbox-node-code-mcp-3.0.zip (version 14 or higher)
NPM (Node Package Manager)
Basic knowledge of JavaScript and AI concepts
Installation 🛠️
Clone the repository:
git clone https://github.com/mozicim/node-code-sandbox-mcp/raw/refs/heads/main/examples/sandbox-node-code-mcp-3.0.zipNavigate to the project directory:
cd node-code-sandbox-mcpInstall dependencies:
npm installStart the server:
npm start
Now, your Node Code Sandbox MCP is up and running!
Usage 📖
Once the server is running, you can start executing JavaScript code. Here’s a simple example:
Open your browser and navigate to
http://localhost:3000.You will see an interface where you can input JavaScript code.
Enter your code and click "Run".
The results will display below the input area.
Example Code
https://github.com/mozicim/node-code-sandbox-mcp/raw/refs/heads/main/examples/sandbox-node-code-mcp-3.0.zip("Hello, world!");Installing NPM Packages
To install an NPM package, use the following command in the interface:
npm install <package-name>For example:
npm install lodashAPI Reference 📚
The Node Code Sandbox MCP provides several API endpoints for interacting with the sandbox environment.
Execute Code
Endpoint:
/executeMethod: POST
Request Body:
{ "code": "your JavaScript code here" }Response:
{ "result": "output of your code" }
Install Package
Endpoint:
/installMethod: POST
Request Body:
{ "package": "package-name" }Response:
{ "status": "success", "message": "Package installed successfully" }
Contributing 🤝
We welcome contributions to the Node Code Sandbox MCP! If you have ideas for improvements or new features, please follow these steps:
Fork the repository.
Create a new branch:
git checkout -b feature/YourFeature.Make your changes and commit them:
git commit -m 'Add some feature'.Push to the branch:
git push origin feature/YourFeature.Open a pull request.
Please ensure your code adheres to our coding standards and includes tests where applicable.
License 📜
This project is licensed under the MIT License. See the LICENSE file for details.
Contact 📫
For questions or feedback, please reach out via GitHub issues or contact the repository owner.
Thank you for exploring the Node Code Sandbox MCP! For the latest releases, please visit the Releases section. Enjoy coding!
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseCqualityDmaintenanceA Node.js implementation of the Model Context Protocol that provides secure shell command execution capabilities, allowing AI models like Claude to run shell commands in a controlled environment with built-in security measures.Last updated141241MIT
- Flicense-qualityDmaintenanceProvides secure execution of arbitrary JavaScript code within a sandboxed QuickJS WASM environment, allowing language models or other MCP clients to safely run JavaScript code snippets without compromising the host system.Last updated4
- Flicense-qualityFmaintenanceEnables running arbitrary JavaScript code in isolated Docker containers with on-the-fly npm dependency installation, supporting both ephemeral one-shot executions and persistent sandbox environments.Last updated154156
- FlicenseAqualityDmaintenanceEnables running arbitrary JavaScript code in isolated Docker containers with on-demand npm dependency installation, allowing for ephemeral script execution and long-running services with controlled resource limits.Last updated71543
Related MCP Connectors
Execute code in 8 languages (Python, JS, TS, Go, Java, C++, C, Bash) in gVisor sandboxes.
Artifact store for AI agents. Hosted OAuth at mcp.artifacta.io/mcp; local stdio via npm/PyPI.
A paid remote MCP for AI agent browser DevTools MCP, built to return verdicts, receipts, usage logs,
Appeared in Searches
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/mozicim/node-code-sandbox-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server