Skip to main content
Glama

JavaScript Sandbox MCP Server

by garc33

js-sandbox MCP サーバー

安全な JavaScript 実行環境を提供するモデル コンテキスト プロトコル サーバー。

特徴

ツール

  • execute_js - 隔離された環境でJavaScriptコードを実行する
    • パラメータ:
      • code (必須): 実行するJavaScriptコード
      • timeout (オプション):最大実行時間(ミリ秒単位、100~30000ミリ秒)
      • memory (オプション):バイト単位のメモリ制限(1MB~100MB)
    • コード実行の結果を返します

安全

  • 制御された環境での分離されたコード実行
  • 実行時間とメモリ制限を設定可能
  • 悪意のあるコードからの保護

発達

依存関係をインストールします:

npm install

サーバーを構築します。

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の使用をお勧めします。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