Integrations
Securely runs Python code in isolated Docker containers for safe execution of user and LLM-provided code.
References GitHub for repository access and project management, including compatibility with mission-control-link.
Supports installation and usage of NumPy for scientific computing within the sandbox environments.
MCPサンドボックス
ぜひMCPサンドボックスでお試しください
中国語のテキスト| English
デモ
Python MCP Sandbox は、ユーザーと LLM が Python コードを安全に実行し、分離された Docker コンテナーにパッケージをインストールできるようにするインタラクティブな Python コード実行ツールです。
特徴
- 🐳 Docker Isolation : 分離された Docker コンテナ内で Python コードを安全に実行
- 📦パッケージ管理: Python パッケージを簡単にインストールおよび管理します
- 📊ファイル生成: ファイルの生成とWebリンク経由のアクセスをサポート
インストール
デフォルトの SSE エンドポイントはhttp://localhost:8000/sse であり、SSE または SSE 接続をサポートするその他のクライアントを介して MCP Inspector 経由で対話できます。
利用可能なツール
- create_sandbox : 新しい Python Docker サンドボックスを作成し、後続のコード実行とパッケージのインストールのためにその ID を返します。
- list_sandboxes : 再利用するために既存のサンドボックス(Dockerコンテナ)をすべて一覧表示します。
- execute_python_code : 指定されたDockerサンドボックスでPythonコードを実行する
- install_package_in_sandbox : 指定された Docker サンドボックスに Python パッケージをインストールします
- check_package_installation_status : Dockerサンドボックスでパッケージがインストールされているかどうか、またはインストールステータスを確認します。
- execute_terminal_command : 指定されたDockerサンドボックスでターミナルコマンドを実行します。パラメータ:
sandbox_id
(文字列)、command
(文字列)。戻り値:stdout
、stderr
、exit_code
。 - upload_file_to_sandbox : 指定された Docker サンドボックスにローカル ファイルをアップロードします。パラメーター:
sandbox_id
(文字列)、local_file_path
(文字列)、dest_path
(文字列、オプション、デフォルト:/app/results
)。
プロジェクト構造
例のプロンプト
MCP の例の設定
以下は claude の設定例です。
オンラインデモ用のMCPサンプル構成
環境に応じてserverUrl
変更します。
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
ユーザーと LLM が Python コードを安全に実行し、分離された Docker コンテナにパッケージをインストールできるようにする対話型 Python コード実行ツール。
Related MCP Servers
- -securityFlicense-qualityProvides isolated Docker environments for code execution, enabling users to create and manage containers, execute multi-language code, save and reproduce development environments, ensuring security and isolation.Last updated -6Python
- -securityAlicense-qualityAn MCP server to create secure code sandbox environment for executing code within Docker containers.Last updated -69GoMIT License
- AsecurityAlicenseAqualityAllows LLMs to execute Python code in a specified Conda environment, enabling access to necessary libraries and dependencies for efficient code execution.Last updated -129JavaScriptMIT License
- -securityAlicense-qualityFacilitates isolated code execution within Docker containers, enabling secure multi-language script execution and integration with language models like Claude via the Model Context Protocol.Last updated -PythonMIT License