JS-SandBox-MCP-Server
1
Github Watches
4
Github Forks
0
Github Stars
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 install
Build the server:
npm run build
Development mode with auto-rebuild:
npm run watch
Installation
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
{
"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 inspector
The Inspector will provide a URL to access debugging tools in your browser.
相关推荐
I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.
Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.
Confidential guide on numerology and astrology, based of GG33 Public information
Emulating Dr. Jordan B. Peterson's style in providing life advice and insights.
Your go-to expert in the Rust ecosystem, specializing in precise code interpretation, up-to-date crate version checking, and in-depth source code analysis. I offer accurate, context-aware insights for all your Rust programming questions.
Reviews
user_L6tHpUIJ
The js-sandbox-mcp-server by garc33 is a fantastic tool for JavaScript enthusiasts. Its simplicity and functionality make it a standout server for running JS applications. The easy-to-navigate start URL and welcoming interface ensure a smooth user experience. Highly recommend checking out and using the product from its GitHub page: https://github.com/garc33/js-sandbox-mcp-server.