Computer Use — Claude Code MCP server: what it does, how to install
An MCP server that gives your model desktop control through screenshots and keyboard actions. It automates local GUI tasks directly from your prompt.
claude mcp add computer-use-mcp -- npx -y computer-use-mcpWhat Computer Use does
The server replicates the mechanics of Anthropic's computer use tool on your local machine. It connects to the desktop environment through nut.js. The model captures screen state and dispatches simulated inputs.
Accuracy drops at high screen resolutions. Lowering display settings to 720p or zooming in on target windows prevents misplaced clicks. For browsing, pairing this with the Rango extension replaces coordinate guessing with direct keyboard shortcuts.
Full mouse and keyboard access opens real security risks under prompt injections. Run this inside an isolated operating system profile to keep personal files safe.
What it helps with
- automate repetitive desktop application workflows
- navigate web pages using keyboard shortcut hints
- change system settings and desktop backgrounds
- test desktop software interfaces with simulated user input
Example prompts for the agent
- Open the display settings window and change my desktop wallpaper.
- Launch the browser, find the documentation link using keyboard hints, and open it.
How to install Computer Use
Platform CLI
claude mcp add computer-use-mcp -- npx -y computer-use-mcpPlatform CLI
codex mcp add computer-use -- npx -y computer-use-mcpConfig file
{
"mcpServers": {
"computer-use": {
"command": "npx",
"args": [
"-y",
"computer-use-mcp"
]
}
}
}Config file
{
"servers": {
"computer-use": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"computer-use-mcp"
]
}
}
}Platform CLI
gemini mcp add computer-use npx -y computer-use-mcpStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about Computer Use
How to install Computer Use in Claude Code?
Run claude mcp add computer-use -- npx -y computer-use-mcp in your terminal.
What does the Computer Use MCP server do?
It captures screenshots and simulates keyboard and mouse actions on your desktop using nut.js.
Why is running Computer Use in a sandbox recommended?
The server gives the model complete control over your operating system. Since models can fall victim to prompt injections, an isolated account protects your files.