Skip to main content

MCP server providing computer use capabilities through an isolated sandbox environment

Project description

boxlite-mcp

MCP server for computer use through an isolated sandbox environment.

Provides a computer tool compatible with Anthropic's computer use API, enabling AI agents to control a full desktop environment safely within a secure sandbox.

Features

  • Full Ubuntu desktop with XFCE environment
  • Anthropic computer use API compatible
  • Mouse control (click, drag, scroll)
  • Keyboard input (typing, key combinations)
  • Screenshot capture
  • Secure sandbox isolation

Installation

# Using uv (recommended)
uv pip install boxlite-mcp

# Or using pip
pip install boxlite-mcp

Configuration

Claude Desktop

Add to your claude_desktop_config.json (see examples/claude_desktop_config.example.json):

{
  "mcpServers": {
    "computer": {
      "command": "uv",
      "args": ["run", "boxlite-mcp"]
    }
  }
}

Usage

Once configured, the MCP server provides a computer tool with the following actions:

Action Description
screenshot Capture the current screen
mouse_move Move cursor to coordinates
left_click Left click (optionally at coordinates)
right_click Right click (optionally at coordinates)
middle_click Middle click (optionally at coordinates)
double_click Double click
triple_click Triple click
left_click_drag Click and drag between coordinates
type Type text
key Press key or key combination (e.g., 'Return', 'ctrl+c')
scroll Scroll in a direction
cursor_position Get current cursor position

Coordinate System

  • Origin [0, 0] is at the top-left corner
  • Screen resolution: 1024x768 pixels
  • Coordinates are specified as [x, y] arrays

Development

# Clone the repository
git clone https://github.com/boxlite-labs/boxlite-mcp.git
cd boxlite-mcp

# Install with dev dependencies
uv sync --extra dev

# Run linting
uv run ruff check .

# Run tests
uv run pytest

License

Apache-2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

boxlite_mcp-0.1.2.tar.gz (11.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

boxlite_mcp-0.1.2-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file boxlite_mcp-0.1.2.tar.gz.

File metadata

  • Download URL: boxlite_mcp-0.1.2.tar.gz
  • Upload date:
  • Size: 11.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.5

File hashes

Hashes for boxlite_mcp-0.1.2.tar.gz
Algorithm Hash digest
SHA256 8dec9b898edecc7d52ffdf05e587101c23ed46a85cb2fce83c00810d29b8e17a
MD5 9a9a9b3883dca9ca5728ec1e96ca40a0
BLAKE2b-256 57d48dc792674501fa676bef378e6e652ac46339bda6d3697288b6b8081885af

See more details on using hashes here.

File details

Details for the file boxlite_mcp-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for boxlite_mcp-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 848155a4ceffa19ef0588d98b00bd125013cc4469fd72172cebff91d909e2e93
MD5 bcdd3ff193b583bde81763cffb09d22e
BLAKE2b-256 ceb3bab3c86398fa62a2bdb748fc9b1728effd2795c5ad397c28e389f3a35b47

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page