Skip to main content
Glama
openmausbot-cua-mcp

openmausbot-cua-mcp

OpenMausBot CUA MCP

A local Model Context Protocol server that connects Claude, MiniMax, Codex, and other MCP clients to the cua-driver bundled with OpenMausBot.

The server discovers OpenMausBot's current embedded socket on every CUA call. It never listens on a TCP port or installs a background daemon. Admin tools connect outward to OpenMausBot's loopback API, and all tools preserve OpenMausBot's permission model.

Requirements

  • macOS

  • OpenMausBot running with Computer enabled

  • Python 3.11–3.13

  • uv recommended for uvx

Related MCP server: AKIMCP

Install in Claude Desktop

Add this server to claude_desktop_config.json:

{
  "mcpServers": {
    "openmausbot-cua": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/thestandard-production/openmausbot-cua-mcp.git",
        "openmausbot-cua-mcp"
      ]
    }
  }
}

Restart Claude Desktop after saving the configuration.

Install in Claude Code

Put the same mcpServers block in your project .mcp.json, or run:

claude mcp add --transport stdio openmausbot-cua -- \
  uvx --from git+https://github.com/thestandard-production/openmausbot-cua-mcp.git \
  openmausbot-cua-mcp

Install in MiniMax

Merge examples/minimax.json into your MiniMax MCP configuration, then start a new session.

Install in Codex

Copy examples/codex.toml into your Codex configuration.

Tools

Tool

Effect

openmausbot_status

Resolve the live connection and report daemon status

openmausbot_list_cua_tools

List tools exposed by the installed cua-driver

openmausbot_describe_cua_tool

Show one tool's description and input schema

openmausbot_call_cua_tool

Invoke a cua-driver tool; may control apps or modify state

openmausbot_get_companion_settings

Read companion settings

openmausbot_set_companion_setting

Atomically update one existing companion setting

openmausbot_cua_skills_status

Check agent skill-pack installation

openmausbot_cua_permissions_status

Check Accessibility and Screen Recording status

openmausbot_cua_check_update

Check for cua-driver updates without installing

Typical sequence:

  1. Call openmausbot_status.

  2. Call openmausbot_list_cua_tools.

  3. Call openmausbot_describe_cua_tool for the chosen tool.

  4. Call openmausbot_call_cua_tool with an arguments object matching that schema.

Admin API (read-only)

The server also exposes bounded administration views from OpenMausBot's local API. Sensitive webhook values and provider account emails are removed before results reach the MCP client.

Tool

Result

openmausbot_api_health

API health, installed app version, and compatibility findings

openmausbot_list_bots

Bots, omitting soul text by default

openmausbot_list_routines

Routines and runs, optionally within a millisecond range

openmausbot_list_webhooks

Webhooks and attempts with sensitive values redacted

openmausbot_usage

Usage and billing summaries for a date range of up to one year

openmausbot_list_models

Provider instances, model options, and effort levels

openmausbot_list_decisions

Recent decisions, with a limit from 1 to 500

openmausbot_export_team

Team export in manifest, package, or backup format

openmausbot_export_team calls OpenMausBot's export endpoint, which is a POST route and therefore requires a paired-device session token. Pairing is always completed through the OpenMausBot app; this package does not create sessions. See docs/PAIRING.md for the step-by-step guide (and what an AI assistant should and should not do when it needs a token).

The same views are available from omb-ctl. JSON is the default output. Bots and routines also support a compact text table.

omb-ctl status
omb-ctl bots --text
omb-ctl bots --include-soul
omb-ctl routines --since-hours 24 --text
omb-ctl webhooks
omb-ctl usage --from 2026-01-01 --to 2026-01-31 --group-by model
omb-ctl models
omb-ctl decisions --limit 100
omb-ctl export --format manifest

The Admin API client checks 127.0.0.1 ports 8799, 18799, and 28799 when no origin or port override is configured. The following environment variables control this client:

Variable

Purpose

OPENMAUSBOT_URL

API origin override; HTTP is restricted to loopback hosts

OMB_PORT

Loopback API port override used when no URL override is set

OPENMAUSBOT_TOKEN

Paired-device session token

OPENMAUSBOT_TOKEN_KEYCHAIN_SERVICE

macOS Keychain service containing the token

OPENMAUSBOT_TOKEN_KEYCHAIN_ACCOUNT

Optional Keychain account used with the service

OPENMAUSBOT_API_TIMEOUT

API request timeout in seconds; default 10

OPENMAUSBOT_APP_PLIST

App Info.plist override for version detection

OPENMAUSBOT_ENABLE_ADMIN_WRITES

Set to 1 to enable MCP administration write tools

OPENMAUSBOT_MCP_ALLOWLIST

Optional comma-separated MCP server names allowed on bots

Port discovery never sends the token, and a token is only ever sent to an origin you named explicitly with OPENMAUSBOT_URL or OMB_PORT (the same rule as OpenMausBot's own MCP client): a port found by probing could belong to another local process. Reads against a discovered port work without the token; requests that need it fail with a message asking you to set the origin. No request sends a browser Origin header. Server error messages are passed through (bounded).

Admin API (writes)

Administration writes use two independent gates:

  • Every mutation requires a paired-device session token and an explicit API origin through OPENMAUSBOT_URL or OMB_PORT.

  • MCP write tools are disabled unless OPENMAUSBOT_ENABLE_ADMIN_WRITES=1. The omb-ctl CLI does not use that environment gate; it requires --apply for each mutation.

All write tools and CLI commands are dry runs by default. An applied PATCH or POST is followed by a fresh GET and field-by-field verification. If the read-back does not match, the result has "ok": false, "status": "unknown", and lists the mismatched fields. Routine creation is idempotent by exact routine name because the public create endpoint has no idempotency key; duplicate names must be resolved in the app first.

MCP write tools include guarded bot updates and model selection, routine upsert/enable/run/delete, and run cancellation. openmausbot_plan is read-only and plans a desired-state file; applying a desired-state item is intentionally CLI-only.

# Dry run (no mutation)
omb-ctl bot-update research-bot --json '{"title":"Research"}'
omb-ctl routine-enable daily-summary

# Apply and verify
omb-ctl bot-update research-bot --json '{"title":"Research"}' --apply
omb-ctl routine-enable daily-summary --apply

Desired-state files are JSON, with YAML available through the optional yaml extra. Referenced files must be relative to the desired file and stay within its directory. Only fields present in a bot entry are managed.

{
  "version": 1,
  "bots": [
    {
      "name": "research-bot",
      "title": "Research",
      "soul_file": "souls/research.md",
      "soul_append_files": ["souls/common.md"],
      "computer": "off",
      "browser": false,
      "composio": false,
      "mcpServers": [],
      "approvalMode": "ask",
      "allow_loosen": false
    }
  ],
  "routines": [
    {
      "name": "daily-summary",
      "bot": "research-bot",
      "prompt_file": "prompts/daily-summary.md",
      "schedule": {"type": "daily", "time": "09:00", "weekdays": [1, 2, 3, 4, 5]},
      "enabled": true,
      "runOn": "maus",
      "durationMinutes": 30,
      "overlap": "skip"
    }
  ]
}

Bot computer accepts off, browser, cloud, vm, local, or null. OpenMausBot omits unset fields from bot objects: an unset computer means Auto (it may resolve to the local computer) and an unset mcpServers means every configured MCP server. The loosening guard ranks reach as off < browser < cloud = vm < local = Auto, and treats resetting mcpServers to null as widening.

composio (connected apps) and browser (built-in browser) are booleans that OpenMausBot treats as on unless explicitly false. Connected apps are one switch per bot: a bot with composio on can use every connected account, not a chosen subset. Turning either on needs allow_loosen.

cwd sets the bot's working folder (an absolute path, or null to clear it). OpenMausBot pins a thread's folder on its first turn, so a new cwd applies to new threads only. Any change needs allow_loosen, because it changes which files the bot works on.

approvalMode can only be set to ask. Loosen approvals in the OpenMausBot app, where a person sees each change.

Routine schedules are validated against, and normalized to, the shape OpenMausBot stores, so an unchanged desired state plans as a no-op and a read-back compares equal:

type

Fields

Notes

once

at

Epoch milliseconds or RFC3339 with an offset (converted to epoch ms)

daily

time, weekdays

HH:MM; weekdays as 0-6 (Sunday = 0) or names; omitted means every day

interval

everyMinutes, anchorAt, optional weekdays, window, endsAt

5-1440 minutes; anchorAt (first run) is required; all seven weekdays is stored as no restriction

cron

expression, timeZone

Five fields; an IANA timeZone such as Asia/Bangkok or UTC is required

Routine name and prompt are trimmed the same way the app trims them.

Plan the entire file, then select exactly one item to apply:

omb-ctl plan examples/desired.example.json
omb-ctl apply examples/desired.example.json --only bot:research-bot
omb-ctl apply examples/desired.example.json --only bot:research-bot --apply

CLI exit codes are 0 for success or no change, 10 when a plan or dry run contains a change, and 2 for an error, unknown write status, or verification mismatch.

Configuration

The defaults work with a normal OpenMausBot installation. These environment variables are available for custom installations and testing:

Variable

Purpose

OPENMAUSBOT_DATA_DIR

Override the OpenMausBot data directory

OPENMAUSBOT_CUA_CONNECTION_FILE

Override cua-connection.json

OPENMAUSBOT_CUA_DRIVER

Override the cua-driver executable

OPENMAUSBOT_CUA_SOCKET

Override the live Unix socket

OPENMAUSBOT_COMPANION_SETTINGS_FILE

Override companion settings JSON

OPENMAUSBOT_BUNDLE_ID

Override the OpenMausBot bundle identifier

OPENMAUSBOT_CUA_MAX_OUTPUT_CHARS

Bound stdout and stderr returned to the client

Security

The generic call tool can perform actions on the local computer. Its MCP annotations mark it as state-changing and potentially destructive. Keep your MCP client's approval controls enabled and review requested tool calls.

The server only forwards CUA_DRIVER_* keys from OpenMausBot's connection file. It never reads or stores API keys.

See SECURITY.md for the permission boundary and reporting process.

Development

python3 -m venv .venv
.venv/bin/python -m pip install -e '.[dev]'
.venv/bin/ruff check .
.venv/bin/pytest -q
.venv/bin/python -m build

Scope

The initial release targets macOS because OpenMausBot currently exposes its embedded connection through the macOS application data directory. Contributions for verified installations on other platforms are welcome.

OpenMausBot and cua-driver are separate third-party projects. This repository is an independent integration maintained by Production Craft.

Available Tools

25 tools
openmausbot_api_healthA
Read-onlyIdempotent

Return local API health, app version, and compatibility findings.

Inputs: no named parameters. Returns: object

openmausbot_call_cua_toolA
Destructive

Invoke one cua-driver tool; some tools can control apps or modify local state.

The connected OpenMausBot daemon applies its own permission mode. Call openmausbot_describe_cua_tool first when the input schema is not known.

Inputs: name (required), arguments. Returns: object

openmausbot_cancel_runC
Destructive

Plan or cancel one routine run.

Inputs: run_id (required), dry_run. Returns: object

openmausbot_cua_check_updateA
Read-onlyIdempotent

Check the configured cua-driver release channel without installing anything.

Inputs: no named parameters. Returns: object

openmausbot_cua_permissions_statusA
Read-onlyIdempotent

Report Accessibility and Screen Recording permission status.

Inputs: no named parameters. Returns: object

openmausbot_cua_skills_statusA
Read-onlyIdempotent

Report cua-driver skill pack installation status for supported agents.

Inputs: no named parameters. Returns: object

openmausbot_delete_routineC
Destructive

Plan or delete one exactly confirmed routine.

Inputs: routine (required), confirm_name (required), dry_run. Returns: object

openmausbot_describe_cua_toolA
Read-onlyIdempotent

Return the description and JSON input schema for one cua-driver tool.

Inputs: name (required). Returns: object

openmausbot_export_teamB
Read-onlyIdempotent

Export team data using a paired-device session token.

Inputs: format. Returns: object

openmausbot_get_companion_settingsA
Read-onlyIdempotent

Read OpenMausBot's companion settings JSON file.

Inputs: no named parameters. Returns: object

openmausbot_list_botsA
Read-onlyIdempotent

List bots without long soul text unless explicitly requested.

Inputs: include_soul. Returns: object

openmausbot_list_cua_toolsA
Read-onlyIdempotent

List every tool exposed by the cua-driver bundled with OpenMausBot.

Inputs: no named parameters. Returns: object

openmausbot_list_decisionsB
Read-onlyIdempotent

List recent decisions.

Inputs: limit. Returns: object

openmausbot_list_modelsA
Read-onlyIdempotent

List provider instances and models without account details.

Inputs: no named parameters. Returns: object

openmausbot_list_routinesA
Read-onlyIdempotent

List routines and runs, optionally within a millisecond range.

Inputs: to_ms, from_ms. Returns: object

openmausbot_list_webhooksA
Read-onlyIdempotent

List webhooks and attempts with secret material redacted.

Inputs: no named parameters. Returns: object

openmausbot_planA
Read-onlyIdempotent

Plan desired-state changes without sending any mutation.

Inputs: path (required). Returns: object

openmausbot_run_routine_nowC

Plan or start one routine immediately.

Inputs: routine (required), dry_run. Returns: object

openmausbot_set_bot_modelC
Idempotent

Plan or apply a validated model selection.

Inputs: bot (required), model (required), instance_id (required), effort, +1 more. Returns: object

openmausbot_set_companion_settingA
Idempotent

Atomically update one existing key in OpenMausBot's companion settings.

Inputs: key (required), value (required). Returns: object

openmausbot_set_routine_enabledB
Idempotent

Plan or apply one routine's enabled state.

Inputs: enabled (required), routine (required), dry_run. Returns: object

openmausbot_statusA
Read-onlyIdempotent

Check discovery and the live cua-driver daemon without changing state.

Inputs: no named parameters. Returns: object

openmausbot_update_botC
Idempotent

Plan or apply a guarded bot update.

Inputs: bot (required), patch (required), dry_run, allow_loosen. Returns: object

openmausbot_upsert_routineC
Idempotent

Plan or apply a name-idempotent routine upsert.

Inputs: spec (required), dry_run. Returns: object

openmausbot_usageA
Read-onlyIdempotent

Read usage for a date range of no more than one year.

Inputs: to_date (required), from_date (required), group_by. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 25 tools

    Disambiguation4/5

    Most tools target distinct resources and actions, with clear separation between listing, mutating, and CUA-driver operations. Minor confusion is possible between openmausbot_api_health and openmausbot_status, and between the generic openmausbot_plan and the per-resource 'plan or apply' mutation tools, but descriptions mostly mitigate this.

    Naming Consistency3/5

    All tools share the openmausbot_ prefix, which helps, but verb patterns are mixed: list_bots vs get_companion_settings vs usage vs status, and cua_skills_status/cua_permissions_status/cua_check_update deviate from the list_/set_ convention. The naming is readable but not uniformly predictable.

    Tool Count3/5

    At 25 tools, this sits at the heavy end of the acceptable range. The count is somewhat justified by covering bot management, routines, webhooks, usage, companion settings, and the CUA-driver surface, but it feels like several smaller logical servers have been merged into one.

    Completeness3/5

    Routine lifecycle is well covered with upsert, enable/disable, run, and delete, and companion settings have get/set. However, webhooks are list-only with no create/update/delete, bots lack create/delete, and the CUA-driver tools only inspect and invoke rather than manage the driver itself, leaving notable gaps.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      B
      maintenance
      Enables MCP-compatible AI clients to invoke CLI-driven agent tools over Streamable HTTP, including shell execution, file operations, patching, image viewing, web search, and nested agent tasks, with permission modes and real-time progress streaming.
      -
    • F
      license
      Not graded
      quality
      A
      maintenance
      Exposes a governed suite of 38 tools over a single OAuth-gated MCP endpoint, letting web AI chat clients such as Claude, ChatGPT, and Grok operate on a local machine — reading and editing files, running whitelisted shell commands, searching, querying SQLite, driving browsers and DevTools, managing background jobs, ports, and clipboard. Local IDEs and Postman can also connect directly over localhost for offline, low-latency access.
      -
    • F
      license
      Not graded
      quality
      A
      maintenance
      Exposes 38 OAuth-gated tools over one MCP endpoint so web-based AI clients like Claude, ChatGPT, and Grok can read and edit local files, run whitelisted shell commands, search content, use Git, SQLite, browser automation, DevTools, clipboard, notifications, ports, and background jobs on your own machine. A strict command whitelist and folder restrictions keep the local operating surface governable and safe by default.
      -
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables web-based AI clients such as Claude, ChatGPT, Grok, and Postman to securely operate a local machine through a single OAuth-gated MCP endpoint exposing 38 governed tools. Covers file read/write/edit, whitelisted shell commands, search, Git, SQLite, browser automation, DevTools, background tasks, localhost fetching, clipboard, notifications, port management, and Postman control.
      MIT