
Node Code Sandbox MCP
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.
README
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:
git clone https://github.com/mozicim/node-code-sandbox-mcp.git
-
Navigate to the project directory:
cd node-code-sandbox-mcp
-
Install dependencies:
npm install
-
Start 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
console.log("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 lodash
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:
{ "code": "your JavaScript code here" }
- Response:
{ "result": "output of your code" }
Install Package
- Endpoint:
/install
- Method: 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!
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.