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.
Node Code Sandbox MCP 🛠️
Welcome to the Node Code Sandbox MCP! This repository provides a secure Node.js 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
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
- Node.js (version 14 or higher)
- NPM (Node Package Manager)
- Basic knowledge of JavaScript and AI concepts
Installation 🛠️
- Clone the repository:
- Navigate to the project directory:
- Install dependencies:
- Start the server:
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
Installing NPM Packages
To install an NPM package, use the following command in the interface:
For example:
API Reference 📚
The Node Code Sandbox MCP provides several API endpoints for interacting with the sandbox environment.
Execute Code
- Endpoint:
/execute
- Method: POST
- Request Body:
- Response:
Install Package
- Endpoint:
/install
- Method: POST
- Request Body:
- Response:
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!
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
A secure Node.js execution environment that allows coding agents and LLMs to run JavaScript dynamically, install NPM packages, and retrieve results while adhering to the Model Control Protocol.
Related MCP Servers
- AsecurityAlicenseAqualityA comprehensive Model Context Protocol server that provides advanced Node.js development tooling for automating project creation, component generation, package management, and documentation with AI-powered assistance.Last updated -72JavaScriptMIT License
- AsecurityFlicenseAqualityProvides a secure, isolated JavaScript execution environment with configurable time and memory limits for safely running code from Claude.Last updated -15JavaScript
- AsecurityAlicenseAqualityA 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 updated -111025JavaScriptMIT License
- -securityFlicense-qualityAllows AI models to run JavaScript/TypeScript code through Model Context Protocol tool calls, supporting both one-time script execution and stateful REPL sessions with npm package integration.Last updated -TypeScript