js-sandbox-mcp-server
JavaScript Sandbox
Documentation

js-sandbox MCP Server
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
- Parameters:
Security
- Isolated code execution in a controlled environment
- Configurable execution time and memory limits
- Protection against malicious code
Development
Install dependencies:
npm installBuild the server:
npm run buildDevelopment mode with auto-rebuild:
npm run watchInstallation
Installing via Smithery
To install JavaScript Sandbox Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @garc33/js-sandbox-mcp-server --client claudeTo use with Claude Desktop, add the server configuration:
MacOS: `~/Library/Application Support/Claude/claude_desktop_config.json`
Windows: `%APPDATA%/Claude/claude_desktop_config.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:
npm run inspectorThe 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
🔥 Official Firecrawl MCP Server - Adds powerful web scraping and search to Cursor, Claude and any other LLM clients.
Use any LLMs (Large Language Models) for Deep Research. Support SSE API and MCP server.
Enhanced MCP server for interactive user feedback and command execution in AI-assisted development, featuring dual interface support (Web UI and Desktop Application) with intelligent environment detection and cross-platform compatibility.
A powerful Zotero AI and MCP plugin with ChatGPT, Gemini 3.7, Claude Fable 5, Claude Opus 5, DeepSeek V4, Grok, OpenRouter, Kimi k3, GLM 5.3, SiliconFlow, GPT-oss, Gemma 4, Qwen 3.8
Connect your browser to AI models. Just use Dia on Chrome, Arc or Firefox.
文颜 MCP Server 可以让 AI 自动将 Markdown 文章排版后发布至微信公众号。
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP