Node Code Sandbox MCP

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.

Category
Visit Server

README

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!

Recommended Servers

playwright-mcp

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

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.

Official
Featured
TypeScript
Kagi MCP Server

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.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

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.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured