linux-computer-use
The linux-computer-use MCP server enables AI agents to control a Linux desktop and browser with live view, human takeover, and safety guardrails.
Browser automation: Open/attach sessions with persistent profiles, navigate, capture screenshots and accessibility snapshots, interact via refs or coordinates, manage tabs, and use history.
Desktop control: Start/stop a virtual desktop, launch native apps, list/focus windows, take screenshots, and perform mouse/keyboard actions.
Session & safety: Isolated named sessions, live viewing (
playwright-cli show), human takeover via lease file, confirmation for irreversible actions, credential protection, account picker handling, and switchable normal/auto modes.
Provides browser automation for Brave, allowing the agent to attach to a running Brave instance via CDP and drive it with the user's profiles and cookies.
Provides browser automation for Firefox, allowing the agent to control a Firefox browser, which requires Playwright's Firefox build to be installed.
Provides browser automation for Opera, allowing the agent to attach to a running Opera instance via CDP and drive it with the user's profiles and cookies.
Provides browser automation for Vivaldi, allowing the agent to attach to a running Vivaldi instance via CDP and drive it with the user's profiles and cookies.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@linux-computer-use Open github.com in a session named research, then tell me what is on the page."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
linux-computer-use
linux-computer-use is an open source computer use agent for Linux. It is an MCP server that lets an AI agent such as Claude Code or OpenAI Codex drive a real browser, and native Linux applications, on your own Linux machine, with a live view, human takeover, and safety guardrails.
Computer use for AI agents landed first on macOS and Windows, or inside a cloud VM. This project brings the same capability to Linux, self-hosted, running on your machine with your own browser and your own cookies.
Install
curl -fsSL https://raw.githubusercontent.com/Roadmvn/linux-computer-use/main/scripts/install.sh | bashThat is the whole setup. The script is scripts/install.sh in this repository, so you can read it before running it.
Related MCP server: BrowserMCP Secure
Connect it to your agent
# Claude Code
claude mcp add --scope user linux-computer-use -- node ~/.linux-computer-use/app/src/index.js
# OpenAI Codex
codex mcp add linux-computer-use -- node ~/.linux-computer-use/app/src/index.jsRestart your client afterwards so it picks the server up.
Quick start
Ask your agent: "Open github.com in a session named research, then tell me what is on the page." Then watch it work:
cd ~/.linux-computer-use/app && npx playwright-cli showWhat it does
Capability | What you get |
Live view |
|
Human takeover | A lease file freezes the agent mid-run, and only you can release it. |
Visible cursor | An overlay draws the agent's pointer in the page, so you see where it acts. |
Sessions and profiles | Named isolated sessions, cookies kept between runs when |
Tabs | List, open, select and close tabs with a single tool. |
Two ways to act | Accessibility tree with element refs, the robust default, or raw pixel coordinates. |
Guardrails | Fail closed on credentials, account pickers, irreversible actions and unreadable targets. |
Native applications | Burp Suite, Wireshark, Ghidra and the rest, in a nested desktop that leaves your pointer alone. |
Auto mode |
|
MCP tools
Tool | What it does | Parameters |
| Open or attach a browser session |
|
| Navigate to a URL |
|
| Accessibility tree of the page, with element refs | - |
| Image capture of the page | - |
| Click an element by ref |
|
| Type text |
|
| Fill a field by ref |
|
| Press a key |
|
| Act at pixel coordinates, vision mode |
|
| Manage tabs |
|
| Navigate the history |
|
| Session state and control lease |
|
| Switch between normal and auto |
|
| Start the agent desktop, or shut it down |
|
| List the visible windows | - |
| Bring a window to the front |
|
| Capture the desktop, or a single window |
|
| Move the pointer and click |
|
| Type text into the focused window |
|
| Press a key or a combination |
|
| Start an application by name |
|
Requirements
Linux, Node.js 20 or newer.
A graphical session:
DISPLAYorWAYLAND_DISPLAYset for the MCP client. No screen, wrap it inxvfb-run.The system libraries of Chromium. The installer pulls them on apt based systems.
Desktop backend only:
sudo apt install xserver-xephyr xdotool imagemagick xfwm4. Not needed to drive a browser.
Comparison
Platform | Where it runs | Live view | Human takeover | Guardrails | Open source | |
linux-computer-use | Linux | Your machine | Yes, | Yes, explicit lease released from your machine | Yes | Yes, MIT |
OpenAI Operator / ChatGPT agent | Any, used through ChatGPT | Cloud VM | Yes | Yes | Yes | No |
Anthropic Claude for Chrome | Chrome extension | Your browser | Your own browser window | - | Yes | No |
Playwright MCP | Cross platform | Your machine | Yes | Yes | - | Yes |
A dash means not verified rather than absent. These products move fast, so check their own documentation before relying on a row.
FAQ
Can AI control a browser on Linux?
Yes. Install this MCP server, register it with Claude Code, OpenAI Codex, or any MCP client, and the agent drives Chromium, Chrome, or Firefox on your Linux machine while you watch.
What is the Linux alternative to OpenAI Operator?
linux-computer-use. Operator runs a browser in a cloud VM you reach through ChatGPT. This runs on your own Linux machine, with your browser and your profile, and it is open source under MIT.
How do I give Claude Code browser access?
Run the installer, then claude mcp add --scope user linux-computer-use -- node ~/.linux-computer-use/app/src/index.js, and ask Claude Code to open a page. The 21 tools show up in its tool list.
Can it use my existing cookies and logins?
Yes, in two ways: pass profile with a directory path, or start your own browser with a debugging port and attach with cdp, see docs/usage.md. Without either, the profile is in memory and disappears with the browser.
Will it log into my accounts on its own?
No. It stops on an empty login form, and it asks you when several accounts are offered. It also asks before an action it judges irreversible.
Documentation
docs/usage.md - first run, your own browser, native applications, guardrails, environment variables, audit trail, more FAQ.
docs/design.md - architecture, and the reasoning behind each choice.
Roadmap
AT-SPI integration, the Linux accessibility bus, to give the desktop backend the equivalent of the browser's accessibility snapshot, and with it real guardrails by element name. Planned, not available yet.
Contributing
Issues and pull requests are welcome on GitHub. Architecture notes live in docs/design.md.
License
MIT. See LICENSE.
Available Tools
13 toolsclickA
Click an element by its ref from snapshot. Blocked when the element looks irreversible unless confirm is true.
Inputs: ref (required), confirm.
fillB
Fill a field identified by its ref. Refused on credential fields.
Inputs: ref (required), text (required).
gotoC
Navigate the current tab to a URL.
Inputs: url (required).
historyC
Go back, go forward or reload.
Inputs: direction (required).
mouseA
Coordinate based mouse control for canvas, maps and custom widgets that have no accessible element. Take a screenshot first to read the coordinates.
Inputs: action (required), x, y, confirm.
openA
Open a browser session, or attach to a browser already running with a CDP endpoint. Call this first.
Inputs: cdp, url, browser, profile, +1 more.
pressB
Press a key, for example Enter, Tab or ArrowDown.
Inputs: key (required).
screenshotA
Image of the page. Use it to read visual content, verify a result, or work out coordinates for the mouse tool.
Inputs: no named parameters.
set_modeA
normal asks before sensitive actions. auto runs a complete objective end to end, stopping only for an empty login, an account choice, or an irreversible action.
Inputs: mode (required).
snapshotA
Accessibility tree of the page with a ref for each element. Use these refs with click and fill. Prefer this over screenshot for acting: it is exact and cheap.
Inputs: no named parameters.
statusA
Report the session, the mode and who holds the control lease. Pass takeover: true to hand control to the human before they act in the dashboard. Control comes back only when the human releases it on their machine, never through this tool.
Inputs: takeover.
tabsB
List, open, select or close tabs.
Inputs: action (required), url, index.
typeA
Type text into the focused element. Refused when a password field has focus.
Inputs: text (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 13 tools
Most tools have clearly distinct purposes: goto for navigation, snapshot for accessibility tree, screenshot for visual capture, click/type/fill/press for input. The overlaps between click and mouse (ref vs coordinates) and type vs fill (focused vs by ref) are clarified by descriptions, making misselection unlikely.
Tool names are all lowercase and mostly single words, but they mix verb forms (goto, click, type, fill, press, open) with noun forms (snapshot, screenshot, mouse, tabs, history, status). The only underscore in set_mode breaks the otherwise uniform style, creating a minor inconsistency.
13 tools is well within the ideal range for a browser automation server. Each tool covers a distinct aspect of interaction, from session management and navigation to reading state and performing actions, without feeling bloated or sparse.
The toolset covers the core lifecycle: open, navigate, inspect (snapshot/screenshot), interact (click/type/fill/press/mouse), manage tabs/history, and control session mode. Minor gaps like an explicit wait or scroll tool are workable because snapshot can serve as a synchronization point and mouse can handle scrolling.
Related MCP Connectors
MCP server for building and testing AI agents with multi-model experimentation and insights.
MCP server that lets your AI assistant build and deploy apps, hosting each one at a live URL.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that gives AI agents real browser capabilities including screenshotting, action execution, data extraction, and multi-persona auditing for frontend validation.63 npm6MIT
- AlicenseNot gradedqualityDmaintenanceSecurity-hardened MCP server that gives AI assistants full control over your real browser session, supporting 36 tools for navigation, data extraction, monitoring, and more.MIT
- FlicenseNot gradedqualityDmaintenanceMCP server that connects AI agents to browser DevTools via CDP, enabling real-time access to console logs, network requests, and page state.-
- AlicenseNot gradedqualityCmaintenanceMCP server that gives AI agents a durable identity, persistent browser, memory, and coordination tools, enabling them to maintain state across sessions and act on the live web.3MIT