Back to Home
mattzcarey icon

sandbox-mcp

by mattzcarey

Overview

This MCP server acts as a coding agent platform, providing a programmatic interface to Cloudflare Sandbox environments for secure code execution, process management, Git operations, and interaction with AI models like Claude Code.

Installation

Run Command
wrangler dev

Environment Variables

  • AUTH_TOKEN
  • ANTHROPIC_API_KEY
  • SANDBOX
  • MCP_SERVER

Security Notes

The server exposes powerful tools such as `exec` (arbitrary bash commands), `startProcess` (long-running background processes), `gitCheckout` (cloning repositories, potentially with authentication tokens), and `exposePort` (making internal sandbox ports publicly accessible). While these are intended for a sandboxed environment (`@cloudflare/sandbox`), a compromise of the `AUTH_TOKEN` could lead to powerful remote code execution or exposure of malicious services within Cloudflare's infrastructure. The `ANTHROPIC_API_KEY` is injected into the sandbox environment, making it accessible to any executed code, which is an inherent risk if the sandbox itself is compromised. Global CORS is enabled, and authentication relies solely on a single `AUTH_TOKEN` environment variable.

Similar Servers

Stats

Interest Score35
Security Score7
Cost ClassHigh
Avg Tokens2000
Stars1
Forks0
Last Update2025-11-25

Tags

Cloudflare WorkersSandboxAICode ExecutionMCP