デイトナ MCP インタープリター
一時的な Daytona サンドボックスで Python コード実行機能を提供するモデル コンテキスト プロトコル サーバー。
概要
Daytona MCPインタープリターは、ClaudeのようなAIアシスタントが安全で隔離された環境でPythonコードとシェルコマンドを実行できるようにします。モデルコンテキストプロトコル(MCP)標準を実装し、以下のツールを提供します。
- サンドボックス環境での Python コード実行
- シェルコマンドの実行
- ファイル管理(アップロード/ダウンロード)
- Gitリポジトリのクローン作成
- 実行中のサーバーのWebプレビュー生成
すべての実行は、使用後に自動的にクリーンアップされる一時的な Daytona ワークスペースで行われます。
インストール
- まだインストールしていない場合は、uv をインストールします。
- 仮想環境を作成してアクティブ化します。
既存の env がある場合は、まずそれを非アクティブ化して削除します。
新しい仮想環境を作成してアクティブ化します。
(Windows の場合: .venv\Scripts\activate
)
- 依存関係をインストールします:
注意:このプロジェクトにはdaytona-sdkバージョン0.10.5以降が必要です。それ以前のバージョンではFileSystem APIとの互換性がありません。
環境変数
適切に動作させるには、次の環境変数を設定します。
MCP_DAYTONA_API_KEY
: Daytona認証に必要なAPIキーMCP_DAYTONA_SERVER_URL
: サーバー URL (デフォルト: https://app.daytona.io/api )MCP_DAYTONA_TIMEOUT
: リクエストタイムアウト(秒)(デフォルト: 180.0)MCP_DAYTONA_TARGET
: ターゲット地域(デフォルト: eu)MCP_VERIFY_SSL
: SSL検証を有効にする(デフォルト: false)
発達
サーバーを直接実行します。
または、UV がパスにない場合は、次のようにします。
MCP Inspector を使用してサーバーをテストします。
ログを表示:
Claude Desktopとの統合
- Claude Desktop (またはその他の MCP 互換クライアント) で構成します。
MacOS の場合は、次のファイルを編集します: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows の場合は、次のファイルを編集します: %APPDATA%\Claude\claude_desktop_config.json
- Claudeデスクトップを再起動します
- Daytona PythonインタープリタツールはClaudeで利用可能になります
利用可能なツール
シェルエグゼクティブ
Daytona ワークスペースでシェル コマンドを実行します。
ファイルのダウンロード
大きなファイルをスマートに処理して、Daytona ワークスペースからファイルをダウンロードします。
基本的な使用方法:
高度な使用法:
ファイルのアップロード
Daytonaワークスペースにファイルをアップロードします。テキストファイルとバイナリファイルの両方をサポートします。
基本的な使用方法:
高度な使用法:
Gitクローン
分析とコード実行のために、Git リポジトリを Daytona ワークスペースに複製します。
基本的な使用方法:
高度な使用法:
ウェブプレビュー
Daytona ワークスペース内で実行されている Web サーバーのプレビュー URL を生成します。
基本的な使用方法:
高度な使用法:
例:
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Tools
Daytona ワークスペース内での Python コードの実行を可能にし、Python スクリプトを実行および管理するための安全で分離された環境を提供するモデル コンテキスト プロトコル サーバー。
Related Resources
Related MCP Servers
- -securityFlicense-qualityA Model Context Protocol server that allows management and execution of Blender Python scripts, enabling users to create, edit and run scripts in a headless Blender environment through natural language interfaces.Last updated -4Python
- -securityAlicense-qualityA Model Context Protocol server that extracts and analyzes Python code structures, focusing on import/export relationships between files to help LLMs understand code context.Last updated -4PythonMIT License
- -securityAlicense-qualityA Model Context Protocol server that enables seamless execution of commands, Python code, web content fetching, and reusable task management with secure credentials handling.Last updated -2PythonMIT License
- -securityFlicense-qualityA Model Context Protocol server that enables AI assistants like Claude to perform Python development tasks through file operations, code analysis, project management, and safe code execution.Last updated -1Python