Provides MCP-enabled access to GBOX Android and Linux environments for automated control by MCP clients.
Configuration
View docs{
"mcpServers": {
"babelcloud-gru-sandbox": {
"command": "npx",
"args": [
"-y",
"@gbox.ai/mcp-server@latest"
]
}
}
}GBOX MCP lets you expose Android environments through MCP clients so you can operate devices from tools like Cursor or Claude Code. You export a server configuration that connects your MCP client to GBOX, enabling automated control of Android environments for development, testing, and automation tasks.
You use GBOX as an MCP server by exporting MCP configurations with the GBOX CLI and then loading those configurations into your MCP client (Cursor or Claude Code). Once connected, your client can remotely start and manage Android environments provided by GBOX, enabling automated app testing, mobile automation, and desktop automation workflows.
Prerequisites: You need Node.js and npm installed on your system. You also have options to install using macOS Homebrew or via npm for Linux/Windows.
# Quick check for Node and npm
node -v
npm -vChoose one of the following installation flows. Each flow installs the GBOX CLI and pulls in required dependencies as needed.
# Option 1: Install GBOX CLI only
curl -fsSL https://raw.githubusercontent.com/babelcloud/gbox/main/install.sh | bash
gbox setup# Option 2: Install with all dependencies in one go
curl -fsSL https://raw.githubusercontent.com/babelcloud/gbox/main/install.sh | bash -s -- --with-depsNon-Interactive Mode (skip prompts):
# CLI only
curl -fsSL https://raw.githubusercontent.com/babelcloud/gbox/main/install.sh | bash -s -- -y
# With all dependencies
curl -fsSL https://raw.githubusercontent.com/babelcloud/gbox/main/install.sh | bash -s -- -y --with-depsAlternative methods (macOS and Linux/Windows):
# macOS via Homebrew
brew install gbox
# Linux/Windows via npm
npm install -g @gbox.ai/cliAfter installing the CLI, you can set up dependencies, log in, and export MCP configs for your clients.
Common commands you will use include logging in, connecting Android devices, and exporting MCP configs for your MCP clients.
You can export MCP configurations for your MCP clients and load them into the corresponding client. The following example shows how to export a server config targeting Android environments via a local MCP command. You can export separate configs for Cursor and Claude Code.
{
"mcpServers": {
"gbox-android": {
"command": "npx",
"args": [
"-y",
"@gbox.ai/mcp-server@latest"
]
}
}
}Use cases include Claude Code developing/testing Android apps and Claude Code comparing prices on Android apps. These demonstrations show how you can leverage GBOX to automate mobile tasks within Android environments.
GBOX currently supports Android environments and Linux desktop/browser environments. Android environments can be cloud virtual devices, cloud physical devices, or local physical devices with Developer Mode enabled. Linux desktop/browser environments provide a Linux desktop for testing and development.
GBOX is built with Go, Make, pnpm, and Node.js. Build and run locally by following the build and run steps to create MCP server and inspector services for development and debugging.
Authenticate with the GBOX service to access MCP features and cloud environments.
Connect your Android device to the GBOX environment so it can be controlled by MCP clients.
Export MCP configuration for a specified MCP client and merge it into the target client setup.
Install and configure required command dependencies for blue-green environments and MCP servers.
Run the MCP server component to listen for MCP client connections and serve environment operations.