Logo Computer Use MCP

Computer Use MCP

Tổ chức
zavora-ai

High Performance MCP server + client for Windows and macOS computer control built in Rust. Screenshot, mouse, keyboard, clipboard, and app management — all in-process via Rust NAPI.

Nhà phát hànhzavora-ai
Kho mãcomputer-use-mcp
Ngôn ngữJavaScript
Bản fork
18
Sao
86
Công cụ có sẵn
0
Phương thức truyền tảistdio
Danh mục
Giấy phépMIT
Liên kết
  • Kết nối công cụ với quy trình làm việc AI

    Computer Use MCP cung cấp các khả năng MCP mà ứng dụng khách và tác nhân AI tương thích có thể sử dụng.

  • 0 công cụ có sẵn

    Xem các thao tác có thể gọi bên dưới, kèm tên và mô tả nếu máy chủ cung cấp.

  • Cấu hình sẵn để sao chép

    Dùng các đoạn cấu hình cài đặt mẫu để thiết lập máy chủ này trong ứng dụng khách MCP bạn muốn dùng.

  • Chỉ số quan tâm đến mã nguồn mở

    86 sao và 18 bản fork từ kho mã được liên kết.

Computer Use MCP

Give an AI agent the ability to discover apps, understand their controls, and work on a desktop. Computer Use MCP connects MCP-compatible agents to native tools on macOS, Windows and Linux.

Use app scripting and accessibility controls when available, and screenshots, mouse and keyboard input when the interface requires them.

See it paint

An original night landscape painted by Astra through Computer Use MCP

Astra painted this through real mouse strokes. The agent used the OpenAI Responses API to operate the bundled paint studio through this MCP: 105 strokes, seven colors and 15 model calls, followed by a verified PNG export. The result is an original Van Gogh-inspired landscape made through native pointer events.

sh
# From a clone of this repository, after the setup below:
npm install --prefix agents/openai-agent
npx playwright install chromium
export OPENAI_API_KEY=your-key
node agents/openai-agent/showcase.mjs paint --studio --turns 24 --tokens 200000

This makes paid API calls. The recorded run used 191,734 input and 3,274 output tokens. Run the demos and read their limits.

See it read

DeepSeek Flash reading a scanned invoice and typing it into a form

Thirty-eight seconds, ten fields, no answer key. The invoice on the left is drawn on a canvas, so its text never reaches the accessibility tree — the only way to read it is to look. DeepSeek Flash reads it from screenshots, types each value through the accessibility API, and presses Verify; the local host scores the entries and tells it only which ones are wrong. This run scored 10 of 10 on the first Verify, over 12 model calls and 23 tool calls, at a 94% prompt-cache hit rate. Every entry is recorded with its isTrusted flag, so a submission that was not typed through the UI is refused.

sh
npm install --prefix agents/deepseek-agent
npx playwright install chromium
export DEEPSEEK_API_KEY=your-key
node agents/deepseek-agent/showcase.mjs --seed 7             # the run above
node agents/deepseek-agent/showcase.mjs --receipt random     # a real receipt from the web

Full-resolution capture · how it works, and what it cannot fake

See it plan

The run console: a request with an attached reference on the left, the agent's activity feed below it, and its plan beside a live frame from Blender

Watch the work instead of reading tool calls. The run console is an MCP App the agent reports into. It declares a plan, marks one task active at a time, and attaches real screen captures as it goes — the frame above is a live capture of Blender's own window.

Underneath the conversation is everything it is doing: each thought, each tool call and each result, with timings. That feed is reported by the host driving the run rather than by the model, so it is complete — Blender's own calls appear in it too.

You can type while it works. The message lands in the transcript that every run tool returns, so the agent reads it on its next call and can change course mid-task. Attach an image and it gets both the picture and the path the file was saved at, which is how Blender can open your reference as a texture rather than the agent working from its own description of it. web_search and scrape let it check a fact it does not know — both run locally, so they work with any model.

Look at it right now, with no API key:

sh
npx -y -p @zavora-ai/computer-use-mcp computer-use-mcp-console

That opens the console and drives a scripted walkthrough — the words are written into the host, but everything it looks at is real, so the frame on the right is a capture of your actual screen. For a live agent instead, start the host with --no-demo and point one at http://127.0.0.1:4517/mcp:

sh
computer-use-mcp-console --no-demo

That endpoint serves the desktop tools and the run tools from the same server, so whatever the agent plans and captures appears in the browser. The screenshot above is an ADK-Rust agent on DeepSeek Flash refining a watch it modelled earlier in the same conversation.

The console is loopback-only and unauthenticated: /mcp grants desktop control to anything that can reach the port. Fine on your own machine, never on a shared host.

Set up your agent

Requires Node.js 20+ and an interactive desktop. The published package bundles native modules for macOS, Windows and Linux, on x64 and arm64.

Add this to your agent's MCP server configuration:

json
{
  "mcpServers": {
    "computer-use": {
      "command": "npx",
      "args": ["-y", "@zavora-ai/computer-use-mcp"]
    }
  }
}

For a client with a different configuration format, use npx as the command and -y @zavora-ai/computer-use-mcp as its arguments. See agent configuration for Cursor, Claude Desktop, Codex and programmatic examples. No model API key is needed by the MCP server itself.

Before using desktop tools:

PlatformSetup
macOS 14+Grant the host app Accessibility and Screen Recording access. The host is the app that launches the server (your terminal, Cursor or Claude Desktop), not node. Input Monitoring lets the user-active guard see when you are typing or moving the mouse. App scripting may also request Automation access. Until Accessibility is granted, input tools refuse with accessibility_permission_denied rather than silently doing nothing.
WindowsRun in a signed-in desktop session. Protected or elevated windows may need matching privileges.
LinuxUse a graphical session with the required X11/Wayland utilities. Accessibility support needs AT-SPI. See platform details.

Ask your agent to run doctor to check capabilities. The computer-use-mcp command checks its own install first (dependencies, build, native module) and names the fix on stderr if something is missing. Office must be installed and activated separately; its folder-access prompts are normal setup requirements. Downloads is not guaranteed to bypass those prompts.

What it can do

CapabilityExamples
Discover applicationsFind installed and running apps, identify their targets, and choose an automation approach.
Read the interfaceCapture a window, zoom into a region, inspect accessibility controls and find a button or field; read a window's text by on-device OCR when an app draws its own UI; wait for a window, for text, or for the screen to settle instead of polling screenshots.
Operate applicationsClick controls (click with button and count), fill forms, select menus, type text, drag paths and use keyboard shortcuts; set a session target once instead of naming the window on every call.
Use app scriptingAppleScript/JXA on macOS and PowerShell on Windows.
Manage desktop workTarget individual windows, switch focus, read/write the clipboard and inspect displays.
Build agent hostsAdd persistent desktop sessions, verified workflows, an MCP App console, isolated browser contexts and supervised runtimes.
Stay in controlA desktop status card (COMPUTER_USE_STATUS_CARD=true, macOS and Windows) shows what the agent is doing with Pause and Stop; it never appears in the agent's screenshots.

The default profile, desktop, exposes 40 tools on macOS: observation, coordinates, OCR for apps that draw their own UI, waits and the session target. Set COMPUTER_USE_PROFILE=full for every tool (76 on macOS), or core, ax, scripting and windows-admin for other bounds. Tools that don't exist on your platform are not listed. Optional host services add their own tools. The server's instructions to the agent are generated for your platform and profile, so they only name tools that are there.

Try asking your agent:

  • “Find my installed Office apps and explain how you can automate them.”
  • “Open a new text document, write a short meeting agenda and save it.”
  • “Inspect this application's controls and fill out the form I describe.”
  • “Create a new painting with a swirling night sky and export it.”

Always specify the intended app or window. Prefer connectors, APIs or filesystem operations for work that does not need a desktop. Platform and application support varies; an available tool is not a promise that every app exposes usable controls.

Use it from code

js
import { createComputerUseServer } from '@zavora-ai/computer-use-mcp'
import { connectInProcess } from '@zavora-ai/computer-use-mcp/client'

// The default profile is `desktop`; pass { profile: 'full' } for every tool.
const client = await connectInProcess(createComputerUseServer())
try {
  const apps = await client.discoverApplications({
    query: 'office',
    include_capabilities: true,
  })
  console.log(apps.content)
} finally {
  await client.close()
}

Application examples · AI agent examples · Responses showcases

Architecture

The TypeScript server handles tool requests, permissions and cancellation. A Rust native module connects to the operating system. Optional host services provide longer-lived sessions and isolated execution. Results return to the agent so it can observe, act and verify.

For protocol details, deployment controls and the full component diagram, see Architecture and the host integration guide. Legacy MCP clients remain supported; newer protocol features are opt-in.

Develop locally

sh
git clone https://github.com/zavora-ai/computer-use-mcp.git
cd computer-use-mcp
npm ci
npm run build:ts
npm test

For live desktop use from a clone, install Rust and build your platform's native module: npm run build:native on macOS, npm run build:native:win on Windows x64, or npm run build:native:linux on Linux. Windows arm64 has build:native:win:arm64. The packaged npm install does not require a local Rust build.

npm run smoke checks the local desktop; npm run test:browser tests a disposable browser fixture. These live checks need their documented platform prerequisites. Development scripts lists the maintained commands.

Documentation and support

MIT licensed. Desktop access can change real applications and files; configure permissions and target applications deliberately. The bundled HTTP server is loopback-only. Exposing a remote endpoint requires host-owned authentication.

Cài đặt

TypingMind
{
  "mcpServers": {
    "computer-use-mcp": {
      "command": "node",
      "args": [
        "node_modules/computer-use-mcp/dist/server.js"
      ]
    }
  }
}

Dùng MCP Computer Use MCP với nhiều mô hình AI

TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên sau khi kết nối Computer Use MCP, bạn có thể dùng với nhiều mô hình AI khác nhau trong TypingMind thay vì phải thiết lập riêng cho từng mô hình. MCP này chạy cục bộ thông qua trình kết nối MCP của TypingMind trên thiết bị của bạn.

Hướng dẫn thiết lập để dùng trình kết nối cục bộ

Dùng cách này khi máy chủ MCP cần truy cập các tệp, ứng dụng hoặc tài nguyên riêng tư trên máy tính của bạn.

1

Mở cài đặt MCP

Trong TypingMind, vào Cài đặt, Cài đặt nâng cao, rồi đến Giao thức ngữ cảnh mô hình và chọn Cài trình kết nối.

  1. Mở TypingMind trong trình duyệt của bạn.
  2. Nhấp vào biểu tượng Cài đặt.
  3. Vào Cài đặt nâng cao.
  4. Mở mục Giao thức ngữ cảnh mô hình.
  5. Nhấp vào Cài trình kết nối rồi chọn Thiết bị này.
Màn hình thiết lập trình kết nối MCP của TypingMind với tùy chọn Thiết bị này được chọn
2

Chạy lệnh trình kết nối

Chọn Thiết bị này, sao chép lệnh từ TypingMind và chạy trong Terminal. Giữ tiến trình chạy trong khi bạn dùng MCP.

  1. Sao chép lệnh thiết lập hiển thị trong TypingMind.
  2. Mở Terminal trên macOS hoặc Windows Terminal trên Windows.
  3. Dán và chạy lệnh.
  4. Xác nhận cài đặt gói nếu Terminal hỏi bạn có muốn tiếp tục không.
  5. Giữ tiến trình trong cửa sổ Terminal chạy trong khi dùng các công cụ MCP.
3

Thêm Computer Use MCP làm máy chủ

Khi trạng thái trình kết nối là Sẵn sàng, nhấp vào Sửa máy chủ và dán cấu hình máy chủ MCP.

  1. Đợi đến khi trạng thái trình kết nối hiển thị Sẵn sàng.
  2. Nhấp vào Sửa máy chủ.
  3. Dán cấu hình máy chủ MCP của Computer Use MCP.
  4. Lưu danh sách máy chủ.
  5. Làm mới nếu bạn muốn xác nhận trình kết nối vẫn sẵn sàng.
Cài đặt MCP của TypingMind hiển thị máy chủ đang hoạt động và nút Sửa máy chủ
{
  "mcpServers": {
    "computer-use-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@zavora-ai/computer-use-mcp"
      ]
    }
  }
}
4

Dùng kết nối với nhiều mô hình

Lưu danh sách máy chủ, mở Plugin, bật các công cụ MCP của Computer Use MCP, sau đó chọn bất kỳ mô hình AI nào được hỗ trợ trong TypingMind và dùng các công cụ trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.

  1. Mở trang Plugin trong TypingMind.
  2. Bật các công cụ MCP của Computer Use MCP.
  3. Bắt đầu cuộc trò chuyện và chọn mô hình AI bạn muốn dùng.
  4. Dùng các công cụ MCP trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.
  5. Chuyển sang mô hình AI khác bất cứ khi nào cần mà không phải kết nối lại MCP.
Cuộc trò chuyện TypingMind dùng các công cụ MCP đã bật với một mô hình AI được chọn
Bạn có thể dùng Computer Use MCP giúp tôi làm việc này không?
Computer Use MCP
Được. Tôi đã đọc.
Đây là kết quả tôi tìm được bằng Computer Use MCP.

Câu hỏi thường gặp

Máy chủ MCP Computer Use MCP dùng để làm gì?

Computer Use MCP là máy chủ MCP cho phép các ứng dụng AI tương thích kết nối với công cụ và ngữ cảnh bên ngoài. Trong TypingMind, bạn chỉ cần thêm máy chủ MCP này một lần để các công cụ của nó có sẵn trong không gian làm việc AI của bạn.

Bạn có thể dùng MCP Computer Use MCP với nhiều mô hình AI trong TypingMind không?

Có. TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên bạn có thể dùng Computer Use MCP với nhiều mô hình AI như Claude, ChatGPT, Gemini hoặc các mô hình khác đã cấu hình trong TypingMind mà không cần thiết lập máy chủ MCP riêng cho từng mô hình.

Vì sao nên dùng MCP Computer Use MCP với TypingMind?

TypingMind là một trong những giao diện trò chuyện với LLM tốt nhất vì tập hợp nhiều mô hình AI, prompt, plugin, tác nhân AI, khóa API và công cụ MCP vào một không gian làm việc. Khi kết nối Computer Use MCP, bạn có thể dùng các công cụ MCP của dịch vụ này với những mô hình ưa thích, đồng thời giữ quy trình trò chuyện gọn gàng trong TypingMind.

Làm cách nào để kết nối MCP Computer Use MCP với TypingMind?

Computer Use MCP hoạt động thông qua trình kết nối MCP cục bộ của TypingMind. Đây là lựa chọn phù hợp nhất khi máy chủ MCP cần truy cập tệp cục bộ, ứng dụng máy tính, công cụ dòng lệnh hoặc tài nguyên riêng trên máy tính của bạn.

MCP Computer Use MCP cung cấp những công cụ nào trong TypingMind?

Computer Use MCP cung cấp các chức năng MCP mà bạn có thể bật từ trang Plugin của TypingMind để dùng trong trò chuyện hoặc gán cho tác nhân AI.

Bạn có cần chia sẻ khóa API với TypingMind để dùng MCP Computer Use MCP không?

Không. TypingMind ưu tiên xử lý cục bộ và cho phép bạn kiểm soát nhà cung cấp mô hình, khóa API, prompt và cấu hình MCP. Nếu Computer Use MCP yêu cầu xác thực, hãy thêm các header, cài đặt OAuth hoặc cấu hình cục bộ cần thiết cho máy chủ MCP đó khi tạo kết nối.

Máy chủ MCP liên quan

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇