# cua-hub

> cua-hub is an open-source MCP server for browser automation. MCP server giving AI agents vision, browser, and accessibility control of a desktop. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** Windows, Linux, macOS, CLI, API
- **Repository:** https://github.com/jsshwqz/cua-hub
- **MCP Registry name:** io.github.jsshwqz/cua-hub
- **Categories:** [browser automation](https://ai-powered.com/categories/browser-automation), [desktop automation](https://ai-powered.com/categories/desktop-automation)
- **Listing updated:** 2026-12-02

## About

Written in Rust, this server lets an AI model operate a computer by combining screenshots, a Chrome DevTools Protocol browser driver, and native accessibility APIs on Windows and Linux. A task can move between visual analysis, browser actions, accessibility-tree lookups and scripted commands, with element indexes tying the model's decisions to concrete controls rather than guessed pixel coordinates.

The server ships 51 MCP tools, of which 17 are marked as core and can be exposed alone to keep the tool list short. Actions that look like CAPTCHAs, logins, two-factor prompts or payments pause the task for a person, who can resume it from the web console or through the resume_task tool. Risky operations are gated by risk levels, and a host guard blocks actions against the host application and listed forbidden apps.

It suits developers and power users who want an agent to drive desktop apps, fill web forms, or extract tables from pages they are already logged into, with a local audit trail of runs that can be replayed.

## Features

- **Multi-engine desktop control:** Routes tasks between vision, browser, accessibility and script engines depending on the request.
- **Chrome DevTools browser driver:** Attaches to or launches Chromium sessions and supports batch form filling and structured extraction.
- **Accessibility tree actions:** Invokes and sets values on UI controls by index on Windows UIA and Linux AT-SPI2.
- **Human handoff for blockers:** Pauses on CAPTCHAs, logins, 2FA and payments and resumes after a person responds.
- **Risk gating and host guard:** Requires confirmation for medium and high risk actions and protects the host and forbidden apps.
- **Selectable tool exposure:** Runs over stdio with a core subset of 17 tools or the full set of 51.

## Good for

- Automating repetitive desktop workflows in Windows or Linux apps from an AI client
- Filling multi-field web forms in a logged-in Chrome session
- Extracting tables and fields from several web pages in parallel
- Replaying recorded run trajectories as deterministic scripts
- Letting an agent work on a task while a person handles CAPTCHAs and logins

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add cua-hub -- npx -y cua-hub
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "cua-hub": {
      "command": "npx",
      "args": [
        "-y",
        "cua-hub"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "cua-hub": {
      "command": "npx",
      "args": [
        "-y",
        "cua-hub"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "cua-hub": {
      "command": "npx",
      "args": [
        "-y",
        "cua-hub"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "cua-hub": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "cua-hub"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add cua-hub -- npx -y cua-hub
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.cua-hub]
command = "npx"
args = ["-y", "cua-hub"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "cua-hub": {
      "command": "npx",
      "args": [
        "-y",
        "cua-hub"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user cua-hub npx -- -y cua-hub

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "cua-hub": {
      "command": "npx",
      "args": [
        "-y",
        "cua-hub"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "cua-hub": {
      "command": "npx",
      "args": [
        "-y",
        "cua-hub"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "cua-hub": {
      "command": "npx",
      "args": [
        "-y",
        "cua-hub"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "cua-hub": {
      "command": "npx",
      "args": [
        "-y",
        "cua-hub"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "cua-hub": {
      "command": "npx",
      "args": [
        "-y",
        "cua-hub"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "cua-hub": {
      "command": "npx",
      "args": [
        "-y",
        "cua-hub"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "cua-hub": {
      "command": "npx",
      "args": [
        "-y",
        "cua-hub"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "cua-hub": {
      "command": "npx",
      "args": [
        "-y",
        "cua-hub"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 of 5 tools changes data; 4 names don't say. From the server's own tool labels and tool names; not verified by us.

- `run_task` (name suggests: changes): Blocking multi-engine natural-language task execution.
- `browser_open`: Open or detach a browser session.
- `browser_fill_form`: Fill multiple form fields in one round trip.
- `browser_extract`: Extract structured JSON from the page via CDP.
- `resume_task`: Resume a task paused for human action.

## FAQ

### How do I install cua-hub?

It runs via npx with the package name cua-hub, or from prebuilt binaries on GitHub Releases, and can be added as a skill or Claude Code plugin.

### Which platforms are supported?

Windows x86_64 and Linux x86_64 are listed as verified, and macOS builds are available for Apple Silicon and Intel.

### Does cua-hub bypass CAPTCHAs or logins?

No. Those prompts pause the task and hand control back to a person.

### Is cua-hub free?

The project is released under the MIT License.

### How do I add cua-hub to Claude Code?

Run this command in your terminal: claude mcp add cua-hub -- npx -y cua-hub

### What are the best alternatives to cua-hub?

The closest alternatives to cua-hub are Chrome DevTools MCP, Agent-first-browse, cat-burglar, mcp and mcp-browser-dev-tools.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Agent-first-browse](https://ai-powered.com/mcp/agent-first-browse): Agent-first-browse is an open-source MCP server for browser automation.
- [cat-burglar](https://ai-powered.com/mcp/cat-burglar-2): cat-burglar is an open-source MCP server for browser automation.
- [mcp](https://ai-powered.com/mcp/mcp-2): mcp is an open-source MCP server for ai models and llm tooling.
- [mcp-browser-dev-tools](https://ai-powered.com/mcp/mcp-browser-dev-tools): mcp-browser-dev-tools is an open-source MCP server for browser automation.
- [Playwright MCP](https://ai-powered.com/mcp/playwright-mcp-2): Playwright MCP is an open-source MCP server for browser automation.
- [macOS MCP Server](https://ai-powered.com/mcp/macos-mcp-server-2): macOS MCP Server is an open-source MCP server for desktop automation.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-4): Chrome DevTools MCP is an open-source MCP server for browser automation.

---
Source: https://ai-powered.com/mcp/cua-hub
