DC

domdomegg/computer-use-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

391 stars 54 forks 品質 71 トレンド 40MIT

💻 AIモデルにコンピューターを完全にコントロールさせる(おそらく悪いアイデアです)

概要

💻 Claudeがコンピュータを制御するためのモデルコンテキストプロトコルサーバーです。これはコンピュータ使用に非常に似ていますが、ローカルで簡単に設定・使用できます。 こちらはClaude Haiku 4.5がデスクトップ背景(4倍速)を変更している様子です: https://github.com/user-attachments/assets/cd0bc190-52c4-49db-b3bc-4b8a74544789 執筆時点でモデルは頻繁にミスを犯し、プロンプトインジェクションに対して脆弱です。このMCPサーバーはモデルにコンピュータの完全な制御を与えるため、大きな被害をもたらす可能性があります。したがって、これは多動児童にコンピュータへのアクセスを与えるような扱い方が良いでしょう。厳重に監視し、サンドボックス化されたユーザーアカウントでのみ行うことを検討してください。 install-mcpの手順に従ってください。こちらはMCPクライアント(Claude Code、Claude Desktop、Cursor、Cline、VS Codeなど)に適した設定を生成します。 しかし、最良の結果を得るには: - コンピュータに慣れているモデルを使うこと - 最新のClaudeモデルをおすすめします。

概要(AI 翻訳)

💻 Claudeがコンピュータを制御するためのモデルコンテキストプロトコルサーバーです。これはコンピュータ使用に非常に似ていますが、ローカルで簡単に設定・使用できます。

こちらはClaude Haiku 4.5がデスクトップ背景(4倍速)を変更している様子です:

https://github.com/user-attachments/assets/cd0bc190-52c4-49db-b3bc-4b8a74544789

[!警告] 執筆時点では、モデルは頻繁にミスを犯し、プロンプトインジェクションに対して脆弱です。このMCPサーバーはモデルにコンピュータの完全な制御を与えるため、大きな被害をもたらす可能性があります。したがって、これは多動児童にコンピュータへのアクセスを与えるようなもので、厳重に監督し、サンドボックス化されたユーザーアカウントでのみ行うことを検討すべきです。

設置

install-mcpの手順に従ってください。こちらはMCPクライアント(Claude Code、Claude Desktop、Cursor、Cline、VS Codeなど)に適した設定を生成します。

ヒント

これは箱から出してすぐに動作するはずです。

しかし、最良の結果を得るために:

  • コンピュータに優れたモデルを使うこと - 最新のClaudeモデルをおすすめします。
  • 小さくて一般的な解像度を使う - 720pが特によく機能します。macOSではdisplayoverride-macを使うことができます。

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

computer-use-mcp

💻 A Model Context Protocol server for Claude to control your computer. This is very similar to computer use, but easy to set up and use locally.

Here’s Claude Haiku 4.5 changing my desktop background (4x speed):

https://github.com/user-attachments/assets/cd0bc190-52c4-49db-b3bc-4b8a74544789

[!WARNING] At time of writing, models make frequent mistakes and are vulnerable to prompt injections. As this MCP server gives the model complete control of your computer, this could do a lot of damage. You should therefore treat this like giving a hyperactive toddler access to your computer - you probably want to supervise it closely, and consider only doing this in a sandboxed user account.

Installation

Follow the instructions on install-mcp, which generates the right config for your MCP client (Claude Code, Claude Desktop, Cursor, Cline, VS Code, and more).

Tips

This should just work out of the box.

However, to get best results:

  • Use a model good at computer use - I recommend the latest Claude models.
  • Use a small, common resolution - 720p works particularly well. On macOS, you can use displayoverride-mac to do this. If you can’t use a different resolution, try zooming in to active windows.
  • Install and enable the Rango browser extension. This enables keyboard navigation for websites, which is far more reliable than Claude trying to click coordinates. You can bump up the font size setting in Rango to make the hints more visible.

How it works

We implement a near identical computer use tool to Anthropic’s official computer use guide, with some more nudging to prefer keyboard shortcuts.

This talks to your computer using nut.js

Contributing

Pull requests are welcomed on GitHub! To get started:

  1. Install Git and Node.js
  2. Clone the repository
  3. Install dependencies with npm install
  4. Run npm run test to run tests
  5. Build with npm run build

Releases

Versions follow the semantic versioning spec.

To release:

  1. Use npm version to bump the version
  2. Run git push --follow-tags to push with tags
  3. Wait for GitHub Actions to publish to the NPM registry.
GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →