Daytona

Daytona

4.4

Daytona MCP Server allows AI agents to manage and interact with Daytona sandboxes, execute commands, perform file operations, and generate preview links for web applications.

Daytona MCP (Model Context Protocol) Server is a powerful tool designed to facilitate the interaction between AI agents and Daytona sandboxes. It provides a comprehensive suite of features that enable users to create, manage, and destroy sandboxes, execute commands within these environments, and perform various file operations. Additionally, it allows for the generation of preview links for web applications running in the sandboxes, making it easier to share and collaborate on projects. The server is compatible with several AI agents, including Claude Desktop App, Claude Code, Cursor, and Windsurf, and requires a Daytona account and CLI for integration. With its robust set of tools, Daytona MCP Server streamlines the process of managing sandbox environments, making it an invaluable resource for developers and AI practitioners.

Features

  • Sandbox Management: Create, destroy, and manage Daytona sandboxes with ease.
  • File Operations: Upload, download, and manage files within the sandbox environment.
  • Command Execution: Execute shell commands in the Daytona Linux environment with full output and error handling.
  • Preview Links: Generate secure and accessible preview URLs for web applications running in sandboxes.
  • Git Operations: Clone and manage Git repositories within the sandbox environment.

MCP Tools

  • create_sandbox: Create a new sandbox with Daytona, with options for region, image, and auto-stop intervals.
  • destroy_sandbox: Destroy an existing sandbox in Daytona.
  • upload_file: Upload files to the Daytona sandbox, supporting text and binary content with overwrite controls.
  • execute_command: Execute shell commands in the Daytona Linux environment, returning full stdout and stderr output.
  • preview_link: Generate preview URLs for web applications running in the Daytona sandbox, with secure tunneling.

Usage with Different Platforms

Mac/Linux

bash
brew install daytonaio/cli/daytona

Windows

powershell
powershell -Command "irm https://get.daytona.io/windows | iex"

Initialize MCP

bash
daytona mcp init [claude/cursor/windsurf]

Get MCP Config

bash
daytona mcp config

Frequently Asked Questions

What should I do if I encounter authentication issues?

Run daytona login to refresh your credentials.

How can I resolve connection errors?

Ensure that the Daytona MCP Server is properly configured.

What if I face sandbox errors?

Check the sandbox status with daytona sandbox list.