Skip to main content
Glama

JavaScript Sandbox MCP Server

by garc33

js-sandbox MCP 서버

안전한 JavaScript 실행 환경을 제공하는 모델 컨텍스트 프로토콜 서버입니다.

특징

도구

  • execute_js - 격리된 환경에서 JavaScript 코드를 실행합니다.
    • 매개변수:
      • code (필수): 실행할 JavaScript 코드
      • timeout (선택 사항): 최대 실행 시간(밀리초, 100~30000ms)
      • memory (선택 사항): 바이트 단위의 메모리 제한(1MB-100MB)
    • 코드 실행 결과를 반환합니다.

보안

  • 제어된 환경에서의 격리된 코드 실행
  • 구성 가능한 실행 시간 및 메모리 제한
  • 악성코드로부터 보호

개발

종속성 설치:

지엑스피1

서버를 빌드하세요:

npm run build

자동 재구축이 가능한 개발 모드:

npm run watch

설치

Claude Desktop과 함께 사용하려면 서버 구성을 추가하세요.

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" } } }

디버깅

MCP 서버는 stdio를 통해 통신하므로 디버깅이 어려울 수 있습니다. 다음과 같은 MCP Inspector를 사용하는 것이 좋습니다.

npm run inspector

검사기는 브라우저에서 디버깅 도구에 액세스할 수 있는 URL을 제공합니다.

Install Server
A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

local-only server

The server can only run on the client's local machine because it depends on local resources.

Claude의 코드를 안전하게 실행하기 위한 구성 가능한 시간 및 메모리 제한을 갖춘 안전하고 격리된 JavaScript 실행 환경을 제공합니다.

  1. 특징
    1. 도구
    2. 보안
  2. 개발
    1. 설치
      1. 디버깅

    Related MCP Servers

    • -
      security
      A
      license
      -
      quality
      The sessionless code interpreter. Securely run AI-generated code in stateful sandboxes that run forever.
      Last updated -
      65
      176
      Rust
      MIT License
    • -
      security
      F
      license
      -
      quality
      A TypeScript application that allows Claude to safely execute bash commands with security safeguards including whitelisted commands, directories, and comprehensive logging.
      Last updated -
      TypeScript
      • Linux
    • -
      security
      F
      license
      -
      quality
      A TypeScript application that allows Claude to safely execute bash commands with security safeguards, providing a secure interface through the Model Context Protocol.
      Last updated -
      TypeScript
      • Linux
    • A
      security
      F
      license
      A
      quality
      A secure JavaScript REPL server that enables executing code snippets in a sandboxed environment with memory protection, timeout handling, and comprehensive error reporting.
      Last updated -
      2
      150
      7
      JavaScript
      • Linux
      • Apple

    View all related MCP servers

    MCP directory API

    We provide all the information about MCP servers via our MCP API.

    curl -X GET 'https://glama.ai/api/mcp/v1/servers/garc33/js-sandbox-mcp-server'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server