Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT and other tools is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AI Fire in da houseCheck it out free

302_sandbox_mcp

MCP.Pizza Chef: 302ai

302_sandbox_mcp is an MCP server providing a secure code sandbox environment for AI assistants to safely execute arbitrary code. It supports dynamic loading of tools from remote servers and can operate in multiple modes, including local stdin and remote HTTP server hosting. This server enables safe, flexible, and extensible AI-driven code execution workflows within the MCP ecosystem.

Use This MCP server To

Execute arbitrary code safely within an isolated sandbox environment Dynamically update and load new tools from remote servers Host a remote HTTP server for AI code execution requests Run local stdin mode for interactive code execution Enable AI assistants to test and validate code snippets securely Integrate with AI workflows requiring on-demand code execution Support multi-language code execution in a controlled environment

README

🤖 302AI Sandbox MCP Server🚀✨

An MCP service with code sandbox that allows AI assistants to safely execute arbitrary code.

中文 | English | 日本語

Previews

Here are some usage examples

Here is the list of supported tools

✨ Features ✨

  • 🔧 Dynamic Loading - Automatically update tool list from remote server.
  • 🌐 Multi modes supported, you can use stdin mode locally, or host it as a remote HTTP server

🚀 Tool List

Development

Install dependencies:

npm install

Build the server:

npm run build

For development with auto-rebuild:

npm run watch

Installation

To use with Claude Desktop, add the server config:

On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "302ai-sandbox-mcp": {
      "command": "npx",
      "args": ["-y", "@302ai/sandbox-mcp"],
      "env": {
        "302AI_API_KEY": "YOUR_API_KEY_HERE"
      }
    }
  }
}

To use with Cherry Studio, add the server config:

{
  "mcpServers": {
    "Li2ZXXJkvhAALyKOFeO4N": {
      "name": "302ai-sandbox-mcp",
      "description": "",
      "isActive": true,
      "registryUrl": "",
      "command": "npx",
      "args": [
        "-y",
        "@302ai/sandbox-mcp@0.2.0"
      ],
      "env": {
        "302AI_API_KEY": "YOUR_API_KEY_HERE"
      }
    }
  }
}

To use with ChatWise, copy the following content to clipboard

{
  "mcpServers": {
    "302ai-sandbox-mcp": {
      "command": "npx",
      "args": ["-y", "@302ai/sandbox-mcp"],
      "env": {
        "302AI_API_KEY": "YOUR_API_KEY_HERE"
      }
    }
  }
}

Go to Settings -> Tools -> Add button -> Select Import from Clipboard

Find Your 302AI_API_KEY here

Using Tutorials

Debugging

Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:

npm run inspector

The Inspector will provide a URL to access debugging tools in your browser.

✨ About 302.AI ✨

302.AI is an enterprise-oriented AI application platform that offers pay-as-you-go services, ready-to-use solutions, and an open-source ecosystem.✨

  1. 🧠 Integrates the latest and most comprehensive AI capabilities and brands, including but not limited to language models, image models, voice models, and video models.
  2. 🚀 Develops deep applications based on foundation models - we develop real AI products, not just simple chatbots
  3. 💰 Zero monthly fee, all features are pay-per-use, fully open, achieving truly low barriers with high potential.
  4. 🛠 Powerful management backend for teams and SMEs - one person manages, many people use.
  5. 🔗 All AI capabilities provide API access, all tools are open source and customizable (in progress).
  6. 💡 Strong development team, launching 2-3 new applications weekly, products updated daily. Developers interested in joining are welcome to contact us.

302_sandbox_mcp FAQ

How does 302_sandbox_mcp ensure safe code execution?
It runs code inside an isolated sandbox environment preventing harmful operations and protecting the host system.
Can I update the tool list dynamically?
Yes, 302_sandbox_mcp supports dynamic loading of tools from remote servers without restarting the service.
What modes does 302_sandbox_mcp support?
It supports local stdin mode for interactive use and remote HTTP server mode for networked requests.
Is 302_sandbox_mcp limited to specific programming languages?
It supports multiple languages depending on the sandbox configuration, enabling flexible code execution.
How can I integrate 302_sandbox_mcp with AI models like OpenAI, Claude, or Gemini?
The server exposes APIs that MCP clients can call to execute code safely as part of AI workflows.
Does 302_sandbox_mcp provide logging or monitoring features?
It typically includes logging of executed code and results for audit and debugging purposes.
Can 302_sandbox_mcp be used in production environments?
Yes, it is designed for secure, scalable deployment both locally and as a remote service.
How do I install and start 302_sandbox_mcp?
Installation is via npm package @302ai/sandbox-mcp, with configuration options for mode and tool sources.