[Home](/index.md) › [MCP servers](/mcp.md) › Cloudflare Container Sandbox MCP

# Cloudflare Container Sandbox MCP

MCP server

- 7 callable tools
- 4 capabilities

[Installation guide](https://github.com/cloudflare/mcp-server-cloudflare/tree/main/apps/sandbox-container#connect-to-the-mcp-server)

## Overview

Run shell commands and work with files in an ephemeral Cloudflare container. Agents can use the sandbox for code execution, repository exploration, tests and data analysis; its contents are temporary.

### Capabilities

- Start or restart an ephemeral development sandbox
- Execute shell commands, including Python and Node.js programs
- Create, inspect and remove files
- Explore repositories and run their tests in the sandbox

## Works with

The products your agent can work with through this server.

- [Cloudflare D1](/tools/cloudflare-d1.md): Serverless SQLite database
- [Cloudflare Web Analytics](/tools/cloudflare-web-analytics.md): Cookieless analytics and RUM
- [Cloudflare Workers](/tools/cloudflare-workers.md): Global serverless functions

## Tools

The callable functions your agent uses to work with this server.

### `container_initialize`

Start or restart the temporary container.

### `container_ping`

Check whether the container is responsive.

### `container_exec`

Run a shell command in the container.

### `container_file_delete`

Remove a file or directory from the workspace.

### `container_file_write`

Create a file or replace its contents.

### `container_files_list`

List the workspace file tree.

### `container_file_read`

Read a workspace file or directory.

## Installation

Follow the installation guide for supported clients, authentication and required permissions.

### Add Cloudflare Container Sandbox MCP to Claude Code

Run this in your terminal:

```sh
claude mcp add --transport http cloudflare-container-sandbox https://containers.mcp.cloudflare.com/mcp
```

If the server asks you to sign in, run `/mcp` in Claude Code and follow the browser prompt.

### Add Cloudflare Container Sandbox MCP to Cursor

Add it with the Add to Cursor button below, or add it to `.cursor/mcp.json` in your project (`~/.cursor/mcp.json` for every project):

[Add to Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=cloudflare-container-sandbox&config=eyJ1cmwiOiJodHRwczovL2NvbnRhaW5lcnMubWNwLmNsb3VkZmxhcmUuY29tL21jcCJ9)

```json
{
  "mcpServers": {
    "cloudflare-container-sandbox": {
      "url": "https://containers.mcp.cloudflare.com/mcp"
    }
  }
}
```

### Add Cloudflare Container Sandbox MCP to VS Code

Add it to `.vscode/mcp.json` in your workspace. VS Code uses `servers` rather than `mcpServers`. Or run MCP: Add Server from the Command Palette and choose HTTP.

```json
{
  "servers": {
    "cloudflare-container-sandbox": {
      "type": "http",
      "url": "https://containers.mcp.cloudflare.com/mcp"
    }
  }
}
```

### Add Cloudflare Container Sandbox MCP to Codex

Run this in your terminal:

```sh
codex mcp add cloudflare-container-sandbox --url https://containers.mcp.cloudflare.com/mcp
```

Or add it to `~/.codex/config.toml`:

```toml
[mcp_servers.cloudflare-container-sandbox]
url = "https://containers.mcp.cloudflare.com/mcp"
```

If the server uses OAuth, sign in with `codex mcp login cloudflare-container-sandbox`.

### Add Cloudflare Container Sandbox MCP to Claude

Add it as a custom connector with this URL:

```
https://containers.mcp.cloudflare.com/mcp
```

1. Open Customize, then Connectors.
2. Click + Add, then Add custom connector.
3. Name it, paste the URL and click Continue.
4. Choose how to sign in, then click Add.

On Team and Enterprise plans, an Owner adds it in Organization settings first, then members connect it.

### Add Cloudflare Container Sandbox MCP to other clients

For any other client that connects to remote MCP servers over HTTP, use this URL:

```
https://containers.mcp.cloudflare.com/mcp
```

[Read the installation guide](https://github.com/cloudflare/mcp-server-cloudflare/tree/main/apps/sandbox-container#connect-to-the-mcp-server)

## Related MCP servers

Other servers for the same products, or from the same vendor.

- [Cloudflare Ai Gateway MCP](/mcp/cloudflare-ai-gateway.md)
- [Cloudflare API MCP](/mcp/cloudflare-api.md)
- [Cloudflare Auditlogs MCP](/mcp/cloudflare-auditlogs.md)
- [Cloudflare Autorag MCP](/mcp/cloudflare-autorag.md)
- [Cloudflare Bindings MCP](/mcp/cloudflare-bindings.md)
- [Cloudflare Browser Run MCP](/mcp/cloudflare-browser-run.md)
- [Cloudflare Builds MCP](/mcp/cloudflare-builds.md)
- [Cloudflare Dns Analytics MCP](/mcp/cloudflare-dns-analytics.md)
- [Cloudflare docs MCP](/mcp/cloudflare-docs.md)
- [Cloudflare Documentation MCP](/mcp/cloudflare-documentation.md)
- [Cloudflare Graphql MCP](/mcp/cloudflare-graphql.md)
- [Cloudflare Logs MCP](/mcp/cloudflare-logs.md)
- [Cloudflare Observability MCP](/mcp/cloudflare-observability.md)
- [Cloudflare One CASB server](/mcp/cloudflare-one-casb.md)
- [Cloudflare Radar MCP](/mcp/cloudflare-radar.md)
- [Cloudflare Workers docs MCP](/mcp/cloudflare-workers-docs.md)
- [Digital Experience Monitoring server](/mcp/digital-experience-monitoring.md)
- [Astro docs MCP](/mcp/astro-docs.md)

## Sources

Documentation and source code reviewed on 5 November 2026.

- [github.com/cloudflare/mcp-server-cloudflare/blob/a21972e219289337731a066befb5c66886b9ce7b/apps/sandbox-container/README.md](https://github.com/cloudflare/mcp-server-cloudflare/blob/a21972e219289337731a066befb5c66886b9ce7b/apps/sandbox-container/README.md)
- [github.com/cloudflare/mcp-server-cloudflare/blob/a21972e219289337731a066befb5c66886b9ce7b/apps/sandbox-container/server/container-tools.ts](https://github.com/cloudflare/mcp-server-cloudflare/blob/a21972e219289337731a066befb5c66886b9ce7b/apps/sandbox-container/server/container-tools.ts)
