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 샌드박스 를 자유롭게 사용해 보세요
중국어 문서 | 영어
데모
Python MCP Sandbox는 사용자와 LLM이 안전하게 Python 코드를 실행하고 격리된 Docker 컨테이너에 패키지를 설치할 수 있도록 해주는 대화형 Python 코드 실행 도구입니다.
특징
- 🐳 Docker Isolation : 격리된 Docker 컨테이너에서 Python 코드를 안전하게 실행합니다.
- 📦 패키지 관리 : Python 패키지를 쉽게 설치하고 관리하세요
- 📊 파일 생성 : 파일 생성 및 웹 링크를 통한 파일 액세스 지원
설치
지엑스피1
기본 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 예제 구성
다음은 클로드에 대한 구성 예시입니다.
온라인 데모를 위한 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