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.
Features
- Full Ubuntu desktop with XFCE environment (1024x768)
- Anthropic computer use API compatible
- Mouse control (click, drag, scroll)
- Keyboard input (typing, key combinations)
- Screenshot capture
- Secure sandbox isolation
Quick Start
Claude Code
claude mcp add computer -- uvx --prerelease=allow boxlite-mcp
Claude Desktop
Add to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"computer": {
"command": "uvx",
"args": ["--prerelease=allow", "boxlite-mcp"]
}
}
}
Note:
--prerelease=allowis required until boxlite reaches stable release.
Manual Installation
pip install boxlite-mcp --pre
Available Actions
Lifecycle Actions
| Action | Description | Parameters |
|---|---|---|
start |
Start a new computer instance | - |
stop |
Stop a computer instance | computer_id: string |
Computer Actions
All actions below require computer_id (returned by start).
| Action | Description | Parameters |
|---|---|---|
screenshot |
Capture current screen | computer_id |
mouse_move |
Move cursor | computer_id, coordinate: [x, y] |
left_click |
Left click | computer_id, coordinate?: [x, y] |
right_click |
Right click | computer_id, coordinate?: [x, y] |
middle_click |
Middle click | computer_id, coordinate?: [x, y] |
double_click |
Double click | computer_id, coordinate?: [x, y] |
triple_click |
Triple click | computer_id, coordinate?: [x, y] |
left_click_drag |
Click and drag | computer_id, start_coordinate: [x, y], end_coordinate: [x, y] |
type |
Type text | computer_id, text: string |
key |
Press key combination | computer_id, key: string (e.g., Return, ctrl+c) |
scroll |
Scroll | computer_id, coordinate: [x, y], scroll_direction: up|down|left|right, scroll_amount?: int |
cursor_position |
Get cursor position | computer_id |
Coordinates use [x, y] format with origin at top-left [0, 0].
Development
git clone https://github.com/boxlite-labs/boxlite-mcp.git
cd boxlite-mcp
# Install dependencies
uv sync --extra dev
# Run tests
uv run pytest
# Run linting
uv run ruff check .
Testing Local Code
To test your local changes with Claude Code:
claude mcp add computer-dev -- uv run --directory /path/to/boxlite-mcp python -m server
License
Apache-2.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file boxlite_mcp-0.1.3.tar.gz.
File metadata
- Download URL: boxlite_mcp-0.1.3.tar.gz
- Upload date:
- Size: 11.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f57d7a2e427c7b5611910dda27d87bdd85d7dd7d7d98e90b9ecf44e289d9411
|
|
| MD5 |
000c2fe8ec9ae6032e3a182109af6b9c
|
|
| BLAKE2b-256 |
614d83f5a40cd1ff5692c33b2dc1c269da2a69158ceac910e265400ead093a91
|
File details
Details for the file boxlite_mcp-0.1.3-py3-none-any.whl.
File metadata
- Download URL: boxlite_mcp-0.1.3-py3-none-any.whl
- Upload date:
- Size: 10.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69c4bad4bcb38eae2cc9f2653ad7ada29caed451bfe8beb0062f041e727e8620
|
|
| MD5 |
d4a0f3d90b4f2d35ed65e34ef8ebc913
|
|
| BLAKE2b-256 |
9cb980cf56b7b453a3345a58d582d757e36ee4c5e5d06fe59d55389e8ee2840d
|