Skip to main content

A powerful MCP server for PyAutoGUI

Project description

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+

Usage

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.
  • Get current operating system: get_os() → Returns "Windows" (if on Windows).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_pyautogui-0.0.1.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_pyautogui-0.0.1-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

File details

Details for the file mcp_pyautogui-0.0.1.tar.gz.

File metadata

  • Download URL: mcp_pyautogui-0.0.1.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for mcp_pyautogui-0.0.1.tar.gz
Algorithm Hash digest
SHA256 daf73720f44daba07f6d0daa7da1da52e66b73f35d06093aec8fdf18d8808b89
MD5 67b2c99800179a08b677116f6781dd73
BLAKE2b-256 df7aa9f7b4af082d52fe2d2c3268a0ad0297ed209aa4edb24f78d53bd58a43b6

See more details on using hashes here.

File details

Details for the file mcp_pyautogui-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: mcp_pyautogui-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 16.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for mcp_pyautogui-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b9daaae36ef9a325459cca4f542a1b9974acc8c09cd0418044145c9e58049133
MD5 e02f7562fdd0744a6a14886dd3e68621
BLAKE2b-256 ea2c629eaeff51a345d38245ff19d842c253cf29eb2579ce601cc7e0ec0f8635

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page