
Daytona
STDIOOfficialAI代理管理Daytona沙箱的MCP服务器
AI代理管理Daytona沙箱的MCP服务器
Daytona MCP Server allows AI agents to utilize:
Mac/Linux
brew install daytonaio/cli/daytona
Windows
powershell -Command "irm https://get.daytona.io/windows | iex"
daytona login
daytona mcp init [claude/cursor/windsurf]
Run the following command to get a JSON Daytona MCP configuration which you can c/p to your agent configuration:
daytona mcp config
Command outputs the following:
{ "mcpServers": { "daytona-mcp": { "command": "daytona", "args": ["mcp", "start"], "env": { "HOME": "${HOME}", "PATH": "${HOME}:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/homebrew/bin" }, "logFile": "${HOME}/Library/Logs/daytona/daytona-mcp-server.log" } } }
Note: if you are running Daytona MCP Server on Windows OS, add the following to the env field of the configuration:
"APPDATA": "${APPDATA}"
Finally, open or restart your AI agent
create_sandbox
: Create a new sandbox with Daytona
id
(optional): Sandbox ID - if provided, an existing sandbox will be used, new one will be created otherwisetarget
(default: "us"): Target region of the sandboximage
: Image of the sandbox (optional)auto_stop_interval
(default: "15"): Auto-stop interval in minutes (0 means disabled)auto_archive_interval
(default: "10080"): Auto-archive interval in minutes (0 means the maximum interval will be used)destroy_sandbox
: Destroy a sandbox with Daytona
upload_file
: Upload a file to the Daytona sandbox
id
(optional): Sandbox IDfile_path
: Path to the file to uploadcontent
: Content of the file to uploadencoding
: Encoding of the file to uploadoverwrite
: Overwrite the file if it already existsdownload_file
: Download a file from the Daytona sandbox
id
(optional): Sandbox IDfile_path
: Path to the file to downloadcreate_folder
: Create a new folder in the Daytona sandbox
id
(optional): Sandbox IDfolder_path
: Path to the folder to createmode
: Mode of the folder to create (defaults to 0755)get_file_info
: Get information about a file in the Daytona sandbox
id
(optional): Sandbox IDfile_path
: Path to the file to get information aboutlist_files
: List files in a directory in the Daytona sandbox
id
(optional): Sandbox IDpath
: Path to the directory to list files from (defaults to current directory)move_file
: Move or rename a file in the Daytona sandbox
id
(optional): Sandbox IDsource_path
: Source path of the file to movedest_path
: Destination path where to move the filedelete_file
: Delete a file or directory in the Daytona sandbox
id
(optional): Sandbox IDfile_path
: Path to the file or directory to deletegit_clone
: Clone a Git repository into the Daytona sandbox
id
(optional): Sandbox IDurl
: URL of the Git repository to clonepath
: Directory to clone the repository into (defaults to current directory)branch
: Branch to clonecommit_id
: Commit ID to cloneusername
: Username to clone the repository withpassword
: Password to clone the repository withexecute_command
: Execute shell commands in the ephemeral Daytona Linux environment
id
(optional): Sandbox IDcommand
: Command to executepreview_link
: Generate accessible preview URLs for web applications running in the Daytona sandbox
id
(optional): Sandbox IDport
: Port to exposedescription
: Description of the servicecheck_server
: Check if a server is runningdaytona login
to refresh your credentialsdaytona sandbox list
For more information, visit daytona.io or contact support at [email protected].