js-sandbox MCP サーバー
安全な JavaScript 実行環境を提供するモデル コンテキスト プロトコル サーバー。
特徴
ツール
execute_js- 隔離された環境でJavaScriptコードを実行するパラメータ:
code(必須): 実行するJavaScriptコードtimeout(オプション):最大実行時間(ミリ秒単位、100~30000ミリ秒)memory(オプション):バイト単位のメモリ制限(1MB~100MB)
コード実行の結果を返します
安全
制御された環境での分離されたコード実行
実行時間とメモリ制限を設定可能
悪意のあるコードからの保護
Related MCP server: MCP QuickJS Runner
発達
依存関係をインストールします:
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 を提供します。
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Latest Blog Posts
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
