Sponsored by Deepsite.site

Node Code Sandbox MCP 🛠️

Created By
mozicim7 months ago
# 🐢🚀 Node.js Sandbox MCP ServerThis repository hosts a Node.js server that implements the Model Context Protocol (MCP) for running JavaScript in isolated Docker containers. It allows for on-the-fly npm dependency installation, making it easy to execute code safely and efficiently.
Content

Node Code Sandbox MCP 🛠️

Node Code Sandbox Releases

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 🛠️

  1. Clone the repository:

    git clone https://github.com/mozicim/node-code-sandbox-mcp.git
    
  2. Navigate to the project directory:

    cd node-code-sandbox-mcp
    
  3. Install dependencies:

    npm install
    
  4. 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:

  1. Open your browser and navigate to http://localhost:3000.
  2. You will see an interface where you can input JavaScript code.
  3. 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:

  1. Fork the repository.
  2. Create a new branch: git checkout -b feature/YourFeature.
  3. Make your changes and commit them: git commit -m 'Add some feature'.
  4. Push to the branch: git push origin feature/YourFeature.
  5. 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!

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
CursorThe AI Code Editor
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Playwright McpPlaywright MCP server
Amap Maps高德地图官方 MCP Server
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
ChatWiseThe second fastest AI chatbot™
Serper MCP ServerA Serper MCP Server
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Tavily Mcp
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
DeepChatYour AI Partner on Desktop
WindsurfThe new purpose-built IDE to harness magic