js-sandbox MCP 服务器
提供安全 JavaScript 执行环境的模型上下文协议服务器。
特征
工具
execute_js- 在隔离环境中执行 JavaScript 代码参数:
code(必需):要执行的 JavaScript 代码timeout(可选):最大执行时间(以毫秒为单位)(100-30000ms)memory(可选):内存限制(以字节为单位)(1MB-100MB)
返回代码执行的结果
安全
在受控环境中隔离代码执行
可配置的执行时间和内存限制
防范恶意代码
发展
安装依赖项:
构建服务器:
具有自动重建的开发模式:
安装
要与 Claude Desktop 一起使用,请添加服务器配置:
MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%/Claude/claude_desktop_config.json
调试
由于 MCP 服务器通过 stdio 进行通信,调试起来可能比较困难。我们推荐使用MCP Inspector ,其运行方式如下:
检查器将提供一个 URL 来访问浏览器中的调试工具。
local-only server
The server can only run on the client's local machine because it depends on local resources.
提供安全、隔离的 JavaScript 执行环境,具有可配置的时间和内存限制,以安全地运行 Claude 的代码。
Related Resources
Related MCP Servers
- -security-license-qualityA TypeScript application that allows Claude to safely execute bash commands with security safeguards, providing a secure interface through the Model Context Protocol.
 - Asecurity-licenseAqualityA secure JavaScript REPL server that enables executing code snippets in a sandboxed environment with memory protection, timeout handling, and comprehensive error reporting.Last updated -73,295108MIT License
 - Asecurity-licenseAqualityA secure Node.js execution environment that allows coding agents and LLMs to run JavaScript dynamically, install NPM packages, and retrieve results while adhering to the Model Control Protocol.Last updated -7524
 - Asecurity-licenseAqualityA specialized server that provides advanced TypeScript code manipulation and analysis capabilities, enabling refactoring, navigation, diagnostics, and module analysis through Claude.Last updated -117,129412MIT License