trackmcp
Back to directory
garc33

js-sandbox-mcp-server

View on GitHub

JavaScript Sandbox

5 stars JavaScriptOthers Updated Oct 10, 2025

Documentation

MseeP.ai Security Assessment Badge

js-sandbox MCP Server

smithery badge

A Model Context Protocol server that provides a secure JavaScript execution environment.

Features

Tools

  • `execute_js` - Executes JavaScript code in an isolated environment
    • Parameters:
      • `code` (required): JavaScript code to execute
      • `timeout` (optional): Maximum execution time in milliseconds (100-30000ms)
      • `memory` (optional): Memory limit in bytes (1MB-100MB)
    • Returns the result of code execution

Security

  • Isolated code execution in a controlled environment
  • Configurable execution time and memory limits
  • Protection against malicious code

Development

Install dependencies:

bash
npm install

Build the server:

bash
npm run build

Development mode with auto-rebuild:

bash
npm run watch

Installation

Installing via Smithery

To install JavaScript Sandbox Server for Claude Desktop automatically via Smithery:

bash
npx -y @smithery/cli install @garc33/js-sandbox-mcp-server --client claude

To use with Claude Desktop, add the server configuration:

MacOS: `~/Library/Application Support/Claude/claude_desktop_config.json`

Windows: `%APPDATA%/Claude/claude_desktop_config.json`

json
{
  "mcpServers": {
    "js-sandbox": {
      "command": "/path/to/js-sandbox/build/index.js"
    }
  }
}

Debugging

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

bash
npm run inspector

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

Frequently asked questions

What is js-sandbox-mcp-server?

js-sandbox-mcp-server is JavaScript Sandbox

How do I install js-sandbox-mcp-server?

Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.

Is js-sandbox-mcp-server open source?

Yes — it is hosted on GitHub at https://github.com/garc33/js-sandbox-mcp-server and has 5 stars.

Related MCP tools

Run your own MCP server? See who uses it and what to fix.

Measure it with TrackMCP