drio
Open app

js-sandbox MCP Server

Source

Catalog onlyCatalog onlySTDIO

Overview

The js-sandbox MCP Server is a Model Context Protocol server that provides a secure environment for executing JavaScript code in isolation.

To use the js-sandbox MCP Server, install the necessary dependencies, build the server, and configure it with your application. You can execute JavaScript code by sending requests to the server with the desired parameters.

  • Executes JavaScript code in an isolated environment - Configurable execution time and memory limits - Protection against malicious code - Debugging tools available through MCP Inspector
  1. Running untrusted JavaScript code safely
  2. Testing JavaScript snippets in a controlled environment
  3. Integrating with applications that require secure code execution

Add to your AI client

Use these steps to connect js-sandbox MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "js-sandbox-mcp-server-garc33": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-js-sandbox-mcp-server-garc33"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "js-sandbox-mcp-server-garc33": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-js-sandbox-mcp-server-garc33"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "js-sandbox-mcp-server-garc33": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-js-sandbox-mcp-server-garc33"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "js-sandbox-mcp-server-garc33": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-js-sandbox-mcp-server-garc33"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "js-sandbox-mcp-server-garc33": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-js-sandbox-mcp-server-garc33"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "js-sandbox-mcp-server-garc33": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-js-sandbox-mcp-server-garc33"
      ]
    }
  }
}

FAQ

Is the js-sandbox MCP Server secure?

Yes! It provides isolated code execution and protects against malicious code.

How do I install the js-sandbox MCP Server?

You can install it by running `npm install` and then build it using `npm run build`.

Can I configure execution limits?

Yes! You can set both execution time and memory limits when executing code.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":973,"uuid":"fdbd46f3-4743-40d8-9ac6-534cf490ce7c","name":"js-sandbox-mcp-server","title":"js-sandbox MCP Server","description":null,"avatar_url":"https://avatars.githubusercontent.com/u/1409740?v=4","created_at":"2025-01-28T02:21:33.553Z","updated_at":"2025-02-23T07:19:17.466Z","status":"created","author_name":"garc33","author_avatar_url":"https://avatars.githubusercontent.com/u/1409740?v=4","tags":"js-sandbox,mcp-server,javascript-execution","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/garc33/js-sandbox-mcp-server","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":null,"user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]