Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

Computer Use Linux

MCP server by agent-sh Verified · npm:@agent-sh

Computer Use Linux gives AI agents structured control of a local Linux desktop through MCP, Pi native tools and a CLI. It suits developers who want agents to read accessibility trees, take screenshots and send input on Linux.

  • Score 87
  • 992 stars
  • 2.6k a week
  • MIT
  • Updated

Install Computer Use Linux

Built from the published package, never by AI.

claude mcp add computer-use-linux -- npx -y @agent-sh/computer-use-linux

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Computer Use Linux in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the computer-use-linux block.

About

Computer Use Linux is a Rust MCP server and CLI for Linux desktop control. It reads semantic AT-SPI accessibility trees, takes bounded screenshots, and lists and focuses windows using compositor-aware backends for GNOME, KDE Plasma, Hyprland, niri, COSMIC, i3, Sway, labwc and X11. Pointer and keyboard input work on Wayland through uinput or the RemoteDesktop portal, and mutating tools can return a post-action screenshot and accessibility tree in the same call.

Any MCP host can spawn the server, including Claude Code, Codex CLI, Pi Coding Agent and Hermes Agent. A readiness report from the doctor command shows platform, portal, accessibility and input status. An on-screen activity indicator shows what the agent is doing. The project suits developers who want agents to operate real desktop apps on Linux.

Written from the project's README and checked against it.

Tools it gives your assistant

  • doctorReturns a single JSON readiness report covering platform, portals, accessibility, windowing and input.
  • setup_accessibilityEnables and verifies GNOME's toolkit accessibility setting so toolkit apps expose AT-SPI trees.
  • get_app_stateCombines a screenshot with a compacted accessibility tree that has stable element_index handles.
  • screenshotCaptures a bounded PNG or JPEG of the full desktop or a raised and cropped target window.
  • list_windowsLists compositor windows with window_id, title, app_id, PID, focus state and bounds.
  • clickClicks by element_index, semantic selector, or desktop or window-relative coordinates.
  • type_textEnters literal text, optionally targeted at a window or terminal.
  • press_keySends single keys or chords such as Ctrl+L, Alt+F4 or Return.
  • perform_actionInvokes an AT-SPI action exposed by an element, such as Press or Toggle.
  • set_valueWrites directly to a settable accessibility element such as a text field or slider.

What you need

  • A Linux desktop session such as GNOME, KDE Plasma, Hyprland, Sway or X11
  • glibc 2.28 or newer for the prebuilt binaries
  • An MCP host such as Claude Code, Codex CLI, Pi Coding Agent or Hermes Agent
  • The GNOME Shell extension for exact window control on GNOME Wayland

Try asking

  • Take a screenshot of the Firefox window and describe what is on it.
  • Click the Save button in the editor using its accessibility name.
  • Type my commit message into the terminal running git and press Return.

Good to know

  • The run_shell tool is off by default and needs COMPUTER_USE_LINUX_ENABLE_SHELL=1.
  • On Wayland, coordinate pointer actions need /dev/uinput or the RemoteDesktop portal.
  • Window move and resize on GNOME need the bundled GNOME Shell extension.
  • Prebuilt binaries need glibc 2.28 or newer; older systems must build from source.

Security check

C
  • Asks for administrator rights (sudo)In README.md: `sudo
  • Runs a script automatically when the package is installedIn package.json: "postinstall":

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to Computer Use Linux

All alternatives →
Oh My Posh Validator JanDeDobbeleer
100

Oh My Posh Validator is listed as an MCP server, but the source is the README for oh-my-posh, a cross platform prompt theme engine. It does not describe an MCP server, tools, or schema validation.

AAA Remote 24k
Sim simstudioai
100

Sim is a workspace for building, deploying and managing AI agents and workflows. Its MCP server lets Claude, Claude Code, Codex or another MCP client manage workspaces, workflows, tables, knowledge bases, files and logs.

AAA Remote 30k
Omnara omnara-ai
98

Omnara deploys durable AI agents on any model and any machine. It is an open-source, self-hostable managed agent platform under Apache 2.0, with a REST API, TypeScript SDK, CLI, and MCP server.

AAA Remote 3.5k
strata Klavis-AI
95

Strata is an MCP server from Klavis AI for progressive tool usage, described as a way to optimize the AI agent's context window. The repository is deprecated, but it remains public for reference and for local or hosted use.

AAA Remote 5.8k
voicemode mbailey
95

VoiceMode is an MCP server that adds voice conversations to Claude Code and other MCP capable agents. It uses speech-to-text and text-to-speech. It suits people whose hands or eyes are busy.

AAA Local 1.5k
OpenWork MCP Gateway different-ai
94

Gives an AI agent access to the skills, plugins, MCP connections, and Google Workspace and Microsoft 365 capabilities assigned to you by your OpenWork organization, through one OAuth MCP URL. Intended for people and teams who want to reuse the same setup across agents, tools, and machines.

AFA Remote 25k

Compare with Oh My Posh Validator, Sim or Omnara

Computer Use Linux: common questions

Does Computer Use Linux work on Wayland?

Yes. The source says pointer actions on Wayland use /dev/uinput or org.freedesktop.portal.RemoteDesktop, and window targeting covers several Wayland compositors.

Can I run the agent without touching my real mouse and keyboard?

The source points to the sibling project agent-workspace-linux for an isolated desktop where the agent does not touch your real input or focused window.

How does the agent avoid acting on stale UI elements?

Tree results carry a snapshot_id, and calls with a stale snapshot are refused before any window is raised or input is sent.

How do I install Computer Use Linux?

In Claude Code run claude mcp add computer-use-linux -- npx -y @agent-sh/computer-use-linux. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is Computer Use Linux the official server?

Computer Use Linux is published by npm:@agent-sh from its verified domain in the official MCP Registry.

Is Computer Use Linux free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is Computer Use Linux safe to use?

It scores 87 of 100. Grades: maintenance A, licence A, quality A. Security check: grade C (asks for administrator rights (sudo)). Review the code before you install. How grades work.

What are alternatives to Computer Use Linux?

Similar MCP servers: Oh My Posh Validator, Sim, Omnara, strata.

Does Computer Use Linux work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

Computer Use Linux Install

Add to stack

Loading.