run_code tool. Each call creates a fresh Daytona sandbox, runs the code, and deletes the sandbox afterward.
Try the live example
Run code through our deployed Daytona server. Pick a suggestion or ask the chat to run your own snippet. Open the example in a new tab.Prerequisites
- A working mcp-use server.
- A Daytona API key.
Add the integration
Install the Daytona SDK in your server project:.env:
.env
src/index.ts, or adapt its Daytona client and run_code tool for your existing server:
src/index.ts
Try it
Start or restart your server so it loads the key:output: "6\n" and exitCode: 0. With a model configured in the Inspector’s Chat tab, try: