Daytona MCP Python Interpreter
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.
Daytona MCP Python Interpreter
A Model Context Protocol server that provides Python code execution capabilities in ephemeral Daytona sandbox.
Installation+
- Install uv if you haven't already:
- Create and activate virtual environment.
If by any case you have existing env, you should deactivate and remove the virtual environment:
Create and activate virtual environment:
(On Windows: .venv\Scripts\activate
)
- Install dependencies:
Development
Run the server directly:
Or if uv is not found (not in path):
NOTE. You can run which uv
to get the path to uv.
You can use MCP Inspector to test the server:
Tail log:
JSON Config file
- Configure in Claude Desktop, Windsurf, Cursor or other config file:
Claude Desktop on MacOS config is here: ~/Library/Application Support/Claude/claude_desktop_config.json
.
CONFIG:
On Windows edit %APPDATA%\Claude\claude_desktop_config.json
and adjust path.
- 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
<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>
This server cannot be installed
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.