Gru-sandbox(gbox) is an open source project that provides a self-hostable sandbox for MCP integration or other AI agent usecases.
gbox is an open source project that provides a self-hostable sandbox for MCP integration or other AI agent usecases. The sandbox can be used as a computer for agent. It includes all necessary tools that agents needs for daily tasks, such as terminal, browser and file editor. See "Features" section for details,
As MCP is getting more and more popular, we find there is no easy way to enable MCP client such as Claude Desktop/Cursor to run tasks locally and securely. This project is based on the technology behind gru.ai and we wrap it into a system command and MCP server to make it easy to use.
For advanced scenarios, we also kept the ability to run sandboxes in k8s cluster locally or remotely.
pip install pygbox
. See PyPI for details.Your AI client such as Claude Desktop can use gbox MCP to deliver better results, such as
Generate diagrams of Tesla stock prices:
https://claude.ai/share/34de8ca3-4e04-441b-9e79-5875fa9fc97a
Generate PDF of latest AI news:
https://claude.ai/share/84600933-dcf2-44be-a2fd-7f49540db57a
Analyze and compare Nvidia/Tesla market cap:
https://claude.ai/share/70c335b7-9fff-4ee7-8459-e6b7462d8994
Find images in download folder and compress into zip.
https://claude.ai/share/f8c4c617-9b32-4062-a8e2-2ab33ef46f42
Download youtube video:
https://claude.ai/share/c2ab6bcb-7032-489f-87d5-cc38f72c2ca9
Note: Support for other platforms (Linux, Windows) is coming soon.
# Install via Homebrew
brew tap babelcloud/gru && brew install gbox
# Initialize environment
gbox setup
# Export MCP config and merge into Claude Desktop
gbox mcp export --merge-to claude
# or gbox mcp export --merge-to cursor
# Restart Claude Desktop
# Update gbox to the latest version
brew update && brew upgrade gbox
# Update the environment
gbox setup
# Export and merge latest MCP config into Claude Desktop
gbox mcp export --merge-to claude
# or gbox mcp export --merge-to cursor
# Restart Claude Desktop
The project provides a command-line tool gbox
for managing sandbox containers:
# Cluster management
gbox cluster setup # Setup cluster environment
gbox cluster cleanup # Cleanup cluster environment
# Container management
gbox box create --image python:3.9 --env "DEBUG=true" -w /app -v /host/path:/app # Create container
gbox box list # List containers
gbox box start <box-id> # Start container
gbox box stop <box-id> # Stop container
gbox box delete <box-id> # Delete container
gbox box exec <box-id> -- python -c "print('Hello')" # Execute command
gbox box inspect <box-id> # Inspect container
# MCP configuration
gbox mcp export # Export MCP configuration
gbox mcp export --merge-to claude # Export and merge into Claude Desktop config
gbox mcp export --dry-run # Preview merge result without applying changes
The gbox box create
command supports Docker-compatible volume mounts using the -v
or --volume
flag. This allows you to share files and directories between your host system and the sandbox containers.
The volume mount syntax follows this format:
-v /host/path:/container/path[:ro][:propagation]
Where:
/host/path
: Path to a file or directory on your host system/container/path
: Path where the file or directory will be mounted in the containerro
(optional): Makes the mount read-onlypropagation
(optional): Sets the mount propagation mode (private, rprivate, shared, rshared, slave, rslave)Examples:
# Basic bind mount
gbox box create -v /data:/data --image python:3.9
# Read-only bind mount
gbox box create -v /data:/data:ro
# Multiple bind mounts
gbox box create \
-v /config:/etc/myapp \
-v /data:/var/lib/myapp:ro \
-v /logs:/var/log/myapp:ro:rprivate \
--image python:3.9
Note: The host path must exist before creating the container. The container path will be created automatically if it doesn't exist.
# Build all components
make build
# Create distribution package
make dist
# API Server
make -C packages/api-server dev
# MCP Server
cd packages/mcp-server && pnpm dev
# MCP Inspector
cd packages/mcp-server && pnpm inspect
We welcome contributions! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
git checkout -b username/feature-name
)git commit -m 'Add some feature'
)git push origin username/feature-name
)gbox cleanup
. It will stop the api server so that you can run the api server in dev env.make api-dev
in project root../gbox box list
, this is the command run from your dev env.make mcp-dev
in project root../gbox mcp export --merge-to claude
make mcp-inspect
in project root.make build-image-python
in project root to build Python image, or make build-images
to build all images.make build-image-typescript
for TypeScript image)../gbox box delete --all
make build
to update the dist/index.js
file../gbox mcp export --merge-to claude
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
Retrieving and analyzing issues from Sentry.io
Create crafted UI components inspired by the best 21st.dev design engineers.
ALAPI MCP Tools,Call hundreds of API interfaces via MCP
APIMatic MCP Server is used to validate OpenAPI specifications using APIMatic. The server processes OpenAPI files and returns validation summaries by leveraging APIMatic’s API.
Flag features, manage company data, and control feature access using Bucket
Enable AI Agents to fix build failures from CircleCI.
Query and analyze your Opik logs, traces, prompts and all other telemtry data from your LLMs in natural language.
Run code in secure sandboxes hosted by E2B
Tool platform by IBM to build, test and deploy tools for any data source
Run Python in a code sandbox.