Js Sandbox MCP Server

A Model Context Protocol server

Local serverstdio

What is the Js Sandbox MCP server?

Js Sandbox MCP server exists for a simple reason — assistants are far more useful when they can act on Js Sandbox directly instead of describing what you should do. A Model Context Protocol server.

What you get

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

Setting it up

The server ships on npm as @smithery/cli, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.

What the assistant can call

Once Js Sandbox is connected, these are the calls the assistant has available:

  • execute_js — Executes JavaScript code in an isolated environment
  • Parameters — - code (required): JavaScript code to execute
  • Tools — The Tools tool exposed by this server
  • Security — The Security tool exposed by this server
  • Debugging — Since MCP servers communicate over stdio, debugging can be challenging. We recommend using [MCP

Before you rely on it

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the js sandbox mcp server does with a few real requests.

Choosing this one

This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Js Sandbox's toolset — execute_js, Parameters, Tools and 2 more — is a fair guide to whether it matches your workflow. It is maintained by garc33; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against Js Sandbox's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Available tools

ToolWhat it does
execute_jsExecutes JavaScript code in an isolated environment
Parameters- code (required): JavaScript code to execute
ToolsThe Tools tool exposed by this server.
SecurityThe Security tool exposed by this server.
DebuggingSince MCP servers communicate over stdio, debugging can be challenging. We recommend using [MCP Inspector](https://github.com/modelcontextprotocol/inspector), which is available as:

How to install the Js Sandbox MCP server

{
  "mcpServers": {
    "js-sandbox": {
      "command": "npx",
      "args": ["-y", "@smithery/cli"]
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Example prompts to try

  • Use Js Sandbox to execute js.
  • Use Js Sandbox to Parameters.
  • Use Js Sandbox to Tools.

Frequently asked questions

It connects Js Sandbox to MCP-compatible AI assistants such as Claude and Cursor, exposing 5 tools (execute_js, Parameters, Tools, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Js Sandbox directly.