cua-hub
MCP server giving AI agents vision, browser, and accessibility control of a desktop
cua-hub is an open-source MCP server for browser automation. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- Windows, Linux, macOS
- Runs
- Locally
- What it can do
- Can change data (1 tool)
- Version
- 0.2.2
Similar MCP servers
Install
You install MCP servers on a computer. Send yourself the link.
Add with the CLI
Run in a terminal
claude mcp add cua-hub -- npx -y cua-hubAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"cua-hub": {
"command": "npx",
"args": [
"-y",
"cua-hub"
]
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"cua-hub": {
"command": "npx",
"args": [
"-y",
"cua-hub"
]
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"cua-hub": {
"command": "npx",
"args": [
"-y",
"cua-hub"
]
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.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.
Add with the CLI
Run in a terminal
codex mcp add cua-hub -- npx -y cua-hubOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.cua-hub]
command = "npx"
args = ["-y", "cua-hub"]Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"cua-hub": {
"command": "npx",
"args": [
"-y",
"cua-hub"
]
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "cua-hub": { "command": "npx", "args": [ "-y", "cua-hub" ] } } }Or run: gemini mcp add -s user cua-hub npx -- -y cua-hub
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "cua-hub": { "command": "npx", "args": [ "-y", "cua-hub" ] } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.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
Add to cline_mcp_settings.json
{ "mcpServers": { "cua-hub": { "command": "npx", "args": [ "-y", "cua-hub" ] } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.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
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "cua-hub": { "command": "npx", "args": [ "-y", "cua-hub" ] } } }Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "cua-hub": { "command": "npx", "args": [ "-y", "cua-hub" ] } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "cua-hub": { "command": "npx", "args": [ "-y", "cua-hub" ] } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
About cua-hub
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.
Tools this server provides (5)
Taken from the project documentation; the running server may differ.
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_taskName 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.
What it does
- 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
Pricing
Open source
cua-hub 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.


