Daytona MCP Python Interpreter
Daytona MCP Python Interpreter
A Model Context Protocol server that provides Python code execution capabilities in ephemeral Daytona sandbox.
<a href="https://glama.ai/mcp/servers/hj7jlxkxpk"><img width="380" height="200" src="https://glama.ai/mcp/servers/hj7jlxkxpk/badge" alt="Daytona Python Interpreter MCP server" /></a>
Installation
- Install uv if you haven't already:
- Create and activate virtual environment.
To deactivate and remove the virtual environment if it exists already:
Create and activate virtual environment:
On Windows: .venv\Scripts\activate
- Install dependencies:
Development
Run the server directly:
Or use MCP Inspector:
Tail log:
Usage with Claude Desktop
- Configure in Claude Desktop config file:
On MacOS (~/Library/Application Support/Claude/claude_desktop_config.json
):
On Windows edit %APPDATA%\Claude\claude_desktop_config.json
and adjust path.
NOTE. You can run which uv
to get the path to uv.
- Restart Claude Desktop
- The Python interpreter tool will be available in Claude Desktop
Features
- Executes Python code in isolated workspaces
- Captures stdout, stderr, and exit codes
- Automatic workspace cleanup
- Secure execution environment
- Logging for debugging
You must be authenticated.
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.