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
- Install uv if you haven't already:
- Create and activate virtual environment.
If you have an existing env, deactivate and remove it first:
Create and activate a new virtual environment:
(On Windows: .venv\Scripts\activate
)
- Install dependencies:
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 authenticationMCP_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:
Or if uv is not in your path:
Use MCP Inspector to test the server:
View logs:
Integration with Claude Desktop
- 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
- Restart Claude Desktop
- The Daytona Python interpreter tools will be available in Claude
Available Tools
Shell Exec
Executes shell commands in the Daytona workspace.
File Download
Downloads files from the Daytona workspace with smart handling for large files.
Basic Usage:
Advanced Usage:
File Upload
Uploads files to the Daytona workspace. Supports both text and binary files.
Basic Usage:
Advanced Usage:
Git Clone
Clones a Git repository into the Daytona workspace for analysis and code execution.
Basic Usage:
Advanced Usage:
Web Preview
Generates a preview URL for web servers running inside the Daytona workspace.
Basic Usage:
Advanced Usage:
Example:
This server cannot be installed
Tools
A Model Context Protocol server that allows execution of Python code within Daytona workspaces, providing a secure and isolated environment for executing and managing Python scripts.
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