ND

nibzard/daytona-mcp-interpreter

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

24 stars 6 forks 품질 65 트렌드 10Apache-2.0

Ephemeral Daytona sandboxes의 Python 코드 실행 기능을 제공하는 모델 Context Protocol 서버.

개요

Ephemeral Daytona sandboxes의 Python 코드 실행 기능을 제공하는 모델 Context Protocol 서버. 데이토나 MCP Interpreter는 Claude와 같은 AI 조수가 보안, 고립 된 환경에서 Python 코드 및 Shell 명령을 실행할 수 있습니다. Model Context Protocol (MCP) 표준을 구현하여 공구를 제공합니다. - Sandboxed 환경에서 Python 코드 실행 - Shell 명령 실행 - 파일 관리 (upload/download) - Git 저장소 복제 - 서버 실행을위한 웹 미리보기 생성 모든 실행은 ephemeral Daytona workspace에서 사용 후 자동으로 정리됩니다. 2. 가상 환경을 만들고 활성화하십시오. 기존의 env가 있다면, 비활성화하고 제거하십시오. 새로운 가상 환경 만들기: 참고: 이 프로젝트는 daytona-sdk 버전 0.10.5 이상을 요구합니다. Earlier 버전에는 호환되는 FileSystem API가 있습니다.

개요(AI 번역)

Ephemeral Daytona sandboxes의 Python 코드 실행 기능을 제공하는 모델 Context Protocol 서버.

개요

데이토나 MCP Interpreter는 Claude와 같은 AI 조수가 보안, 고립 된 환경에서 Python 코드 및 Shell 명령을 실행할 수 있습니다. Model Context Protocol (MCP) 표준을 구현하여 공구를 제공합니다.

  • sandboxed 환경에서 Python 코드 실행
  • Shell 명령 실행
  • 파일 관리 (upload/download)
  • Git 저장소 복제
  • 서버 실행을위한 웹 미리보기 생성

모든 실행은 ephemeral Daytona workspace에서 사용 후 자동으로 정리됩니다.

설치

  1. 이미 없는 경우 uv 설치:

  2. 가상 환경을 만들고 활성화하십시오.

기존의 env가 있다면, 비활성화하고 제거하십시오.

새로운 가상 환경 만들기:

(Windows에서: .venv\Scripts\activate)

  1. 의존성 설치:

참고: 이 프로젝트는 daytona-sdk 버전 0.10.5 이상을 요구합니다. Earlier 버전에는 호환되는 FileSystem API가 있습니다.

환경 변수

적절한 작업에 대한 이러한 환경 변수를 구성:

  • MCP_DAYTONA_API_KEY: Daytona 인증에 필요한 API 키

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

Daytona MCP Interpreter

A Model Context Protocol server that provides Python code execution capabilities in ephemeral Daytona sandboxes.

Overview

Daytona MCP Interpreter enables AI assistants like Claude to execute Python code and shell commands in secure, isolated environments. It implements the Model Context Protocol (MCP) standard to provide tools for:

  • Python code execution in sandboxed environments
  • Shell command execution
  • File management (upload/download)
  • Git repository cloning
  • Web preview generation for running servers

All execution happens in ephemeral Daytona workspaces that are automatically cleaned up after use.

Installation

  1. Install uv if you haven’t already:
curl -LsSf https://astral.sh/uv/install.sh | sh
  1. Create and activate virtual environment.

If you have an existing env, deactivate and remove it first:

deactivate
rm -rf .venv

Create and activate a new virtual environment:

uv venv
source .venv/bin/activate

(On Windows: .venv\Scripts\activate)

  1. Install dependencies:
uv add "mcp[cli]" pydantic python-dotenv "daytona-sdk>=0.10.5"

Note: This project requires daytona-sdk version 0.10.5 or higher. Earlier versions have incompatible FileSystem API.

Environment Variables

Configure these environment variables for proper operation:

  • MCP_DAYTONA_API_KEY: Required API key for Daytona authentication
  • MCP_DAYTONA_SERVER_URL: Server URL (default: https://app.daytona.io/api)
  • MCP_DAYTONA_TIMEOUT: Request timeout in seconds (default: 180.0)
  • MCP_DAYTONA_TARGET: Target region (default: eu)
  • MCP_VERIFY_SSL: Enable SSL verification (default: false)

Development

Run the server directly:

uv run src/daytona_mcp_interpreter/server.py

Or if uv is not in your path:

/Users/USER/.local/bin/uv run ~LOCATION/daytona-mcp-interpreter/src/daytona_mcp_interpreter/server.py

Use MCP Inspector to test the server:

npx @modelcontextprotocol/inspector \
  uv \
  --directory . \
  run \
  src/daytona_mcp_interpreter/server.py

View logs:

tail -f /tmp/daytona-interpreter.log

Integration with Claude Desktop

  1. Configure in Claude Desktop (or other MCP-compatible clients):

On MacOS, edit: ~/Library/Application Support/Claude/claude_desktop_config.json On Windows, edit: %APPDATA%\Claude\claude_desktop_config.json

{
    "mcpServers": {
        "daytona-interpreter": {
            "command": "/Users/USER/.local/bin/uv",
            "args": [
                "--directory",
                "/Users/USER/dev/daytona-mcp-interpreter",
                "run",
                "src/daytona_mcp_interpreter/server.py"
            ],
            "env": {
                "PYTHONUNBUFFERED": "1",
                "MCP_DAYTONA_API_KEY": "api_key",
GitHub에서 전체 README 보기

설치

npx @modelcontextprotocol/inspector \
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "daytona-interpreter": { "command": "/Users/USER/.local/bin/uv", "args": [ "--directory", "/Users/USER/dev/daytona-mcp-interpreter", "run", "src/daytona_mcp_interpreter/server.py" ], "env": { "PYTHONUNBUFFERED": "1", "MCP_DAYTONA_API_KEY": "api_key", "MCP_DAYTONA_SERVER_URL": "api_server_url", "MCP_DAYTONA_TIMEOUT": "30.0", "MCP_VERIFY_SSL": "false", "PATH": "/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" } } } }