MCP server for the Computer-Use Agent (CUA), allowing you to run CUA through Claude Desktop or other MCP clients.
cua-mcp-server is a MCP server for the Computer-Use Agent (CUA), allowing you to run CUA through Claude Desktop or other MCP clients.
Before installing the MCP server, you'll need to set up the full Computer-Use Agent capabilities as described in Option 2 of the main README. This includes:
Make sure these steps are completed and working before proceeding with the MCP server installation.
Install the package from PyPI:
pip install cua-mcp-server
This will install:
cua-mcp-server
script in your PATHIf you want to simplify installation, you can use this one-liner to download and run the installation script:
curl -fsSL https://raw.githubusercontent.com/trycua/cua/main/libs/mcp-server/scripts/install_mcp_server.sh | bash
This script will:
You can then use the script in your MCP configuration like this:
{
"mcpServers": {
"cua-agent": {
"command": "/bin/bash",
"args": ["~/.cua/start_mcp_server.sh"],
"env": {
"CUA_AGENT_LOOP": "OMNI",
"CUA_MODEL_PROVIDER": "ANTHROPIC",
"CUA_MODEL_NAME": "claude-3-7-sonnet-20250219",
"CUA_PROVIDER_API_KEY": "your-api-key"
}
}
}
}
If you want to develop with the cua-mcp-server directly without installation, you can use this configuration:
{
"mcpServers": {
"cua-agent": {
"command": "/bin/bash",
"args": ["~/cua/libs/mcp-server/scripts/start_mcp_server.sh"],
"env": {
"CUA_AGENT_LOOP": "UITARS",
"CUA_MODEL_PROVIDER": "OAICOMPAT",
"CUA_MODEL_NAME": "ByteDance-Seed/UI-TARS-1.5-7B",
"CUA_PROVIDER_BASE_URL": "https://****************.us-east-1.aws.endpoints.huggingface.cloud/v1",
"CUA_PROVIDER_API_KEY": "your-api-key"
}
}
}
}
This configuration:
Just add this to your MCP client's configuration and it will use your local development version of the server.
If you get a /bin/bash: ~/cua/libs/mcp-server/scripts/start_mcp_server.sh: No such file or directory
error, try changing the path to the script to be absolute instead of relative.
To see the logs:
tail -n 20 -f ~/Library/Logs/Claude/mcp*.log
To use with Claude Desktop, add an entry to your Claude Desktop configuration (claude_desktop_config.json
, typically found in ~/.config/claude-desktop/
):
For more information on MCP with Claude Desktop, see the official MCP User Guide.
To use with Cursor, add an MCP configuration file in one of these locations:
.cursor/mcp.json
in your project directory~/.cursor/mcp.json
in your home directoryAfter configuration, you can simply tell Cursor's Agent to perform computer tasks by explicitly mentioning the CUA agent, such as "Use the computer control tools to open Safari."
For more information on MCP with Cursor, see the official Cursor MCP documentation.
API Keys: Ensure you have valid API keys:
The server is configured using environment variables (can be set in the Claude Desktop config):
Variable | Description | Default |
---|---|---|
CUA_AGENT_LOOP | Agent loop to use (OPENAI, ANTHROPIC, UITARS, OMNI) | OMNI |
CUA_MODEL_PROVIDER | Model provider (ANTHROPIC, OPENAI, OLLAMA, OAICOMPAT) | ANTHROPIC |
CUA_MODEL_NAME | Model name to use | None (provider default) |
CUA_PROVIDER_BASE_URL | Base URL for provider API | None |
CUA_MAX_IMAGES | Maximum number of images to keep in context | 3 |
The MCP server exposes the following tools to Claude:
run_cua_task
- Run a single Computer-Use Agent task with the given instructionrun_multi_cua_tasks
- Run multiple tasks in sequenceOnce configured, you can simply ask Claude to perform computer tasks:
Claude will automatically use your CUA agent to perform these tasks.
Add smart Backup ability to coding agents like Windsurf, Cursor, Cluade Coder, etc
An MCP server for interacting with the YuQue knowledge base, enabling AI assistants to perform operations on documents and information.
Enables AI assistants to seamlessly interact with your Twenty CRM data through its API.
Simple unofficial MCP server to track time via Toggl API
Connects to the Resource Hub to centrally configure and manage your MCP servers.
Access and manage your VISO TRUST third-party risk program directly through your AI assistant.
A multi-model agent for managing tasks across various platforms, requiring API keys for different AI models.
A Python-based MCP server that allows AI LLMs to execute trades on the MetaTrader 5 platform.
Read, create, update and delete Google Keep notes.
Integrate with Adobe Express using LLMs to streamline creative tasks and workflows.