HD

hathibelagal-dev/mcp-pyautogui

Developer tools

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

20 stars 5 forks 品質 69 トレンド 0GPL-3.0

PyAutoGUI 用の MCP サーバー

概要

mcp-pyautogui はサーバーを . マウス、キーボード、画面のインタラクションの制御を提供し、AIシステムがホストマシン上でタスクを自動化できるようにします。 サーバは、stdio トランスポートを介して実行し、クリック、タイピング、スクリーンショット撮影などのツールを提供し、シンプルさと信頼性に焦点を当てています。 開発者やAI愛好家がデスクトップの自動化をワークフローに統合するように設計されています。 - マウスの動きを制御する、クリック、ドラッグ。 - キーボード入力(単一キー、テキスト、ホットキー)を模倣して下さい。 - スクリーンショットをキャプチャし、マウスの位置を取得します。 - プラットフォーム固有のロジックの現在のオペレーティングシステムを取得します。 - boolean成功指標(該当する場合)で一貫性のあるエラー処理。 また、関連する権限を付与する必要があります。 次のコマンドを実行して、サーバーがインストールされた場所を特定できます。 mcp-pyautogui を claude desktop config.json ファイルに追加する場合、その場所を使用します.

概要(AI 翻訳)

[mcp-pyautogui は、PyAutoGUI 用の Model Context Protocol (MCP) サーバを実装します。 マウス、キーボード、画面のインタラクションの制御を提供し、AIシステムがホストマシン上でタスクを自動化できるようにします。

サーバは [stdio] を経由して実行し、クリック、タイピング、スクリーンショット撮影などのツールを提供し、シンプルさと信頼性に焦点を当てています。 開発者やAI愛好家がデスクトップの自動化をワークフローに統合するように設計されています。

##特徴

  • マウスの動きを制御する、クリック、ドラッグ。
  • キーボード入力(単一キー、テキスト、ホットキー)を模倣して下さい。
  • スクリーンショットをキャプチャし、マウスの位置を取得します。
  • プラットフォーム固有のロジックの現在のオペレーティングシステムを取得します。
  • boolean成功指標(該当する場合)で一貫性のあるエラー処理。

前提条件

  • Python 3.11+

また、関連する権限を付与する必要があります。

インストール

pip を使用して、サーバーをインストールします。

次のコマンドを実行して、サーバーがインストールされた場所を特定できます。

mcp-pyautoguiを[claude_desktop_config.json]]ファイルに追加するときにその場所を使用します。 サンプル構成は次のとおりです。

使用法

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

README

以下は原文 README の抜粋です。原文を見る。

MCP Server for PyAutoGUI

mcp-pyautogui implements a Model Context Protocol (MCP) server for PyAutoGUI. It provides control of mouse, keyboard, and screen interactions, allowing AI systems to automate tasks on a host machine.

The server runs over stdio transport and provides tools for clicking, typing, taking screenshots, and more, with a focus on simplicity and reliability. It’s designed for developers and AI enthusiasts looking to integrate desktop automation into their workflows.

Features

  • Control mouse movements, clicks, and drags.
  • Simulate keyboard input (single keys, text, hotkeys).
  • Capture screenshots and retrieve mouse position.
  • Get the current operating system for platform-specific logic.
  • Consistent error handling with boolean success indicators (where applicable).

Prerequisites

  • Python 3.11+

You’ll also have to grant the relevant permissions.

Installation

Use pip to install the server.

pip install mcp-pyautogui

You can then run the following comand to determine the location at which the server was installed:

which mcp-pyautogui

# Sample output:
# /Users/bob/miniconda3/envs/desk/bin/mcp-pyautogui

Use that location when you’re adding mcp-pyautogui to your claude_desktop_config.json file. Here’s a sample configuration:

{
  "mcpServers": {
    "mcp-pyautogui": {
      "command": "/Users/bob/miniconda3/envs/desk/bin/mcp-pyautogui",
      "args": [
          ""
      ]
    }
  }
}

Usage

If you followed the above installation steps, you don’t need to do anything else. Just use Claude Desktop and you should see all the tools this MCP server offers automatically. You could test this server by saying something like “can you click at (200,200) ?”.

The server runs over stdio transport, meaning it communicates through standard input/output. To use it, connect an MCP-compatible client (e.g., an AI assistant or custom script) that can send JSON-RPC commands and receive responses.

Example Commands

  • Click at (100, 200): click(100, 200) → Returns true if successful.
  • Type “hello”: type_text("hello") → Returns true.
  • Take a screenshot: take_screenshot("screenshot.png") → Saves to screenshot.png.
  • Get mouse position: get_mouse_position() → Returns (500, 300) (example).
  • Copy text: hotkey("ctrl c") → Returns true.
GitHub で README 全文を見る

インストール

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

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

設定

{ "mcpServers": { "mcp-pyautogui": { "command": "/Users/bob/miniconda3/envs/desk/bin/mcp-pyautogui", "args": [ "" ] } } }