Skip to main content

PyAutoGUI-MCP exposes MCP tools dynamically from the PyAutoGUI API. It does not manually reimplement or wrap each function: it auto-registers the available API.

Install with pip

pip install pyautogui-mcp

Run the server:

pyautogui-mcp --transport stdio
pyautogui-mcp --transport http --host 127.0.0.1 --port 8000

MCP client config example:

{
  "mcpServers": {
    "pyautogui-mcp": {
      "command": "pyautogui-mcp",
      "args": ["--transport", "stdio"]
    }
  }
}

Run with uv

Dependencies are declared in pyproject.toml, so uv can resolve and run directly:

{
  "mcpServers": {
    "pyautogui-mcp": {
      "command": "uv",
      "args": [
        "--directory",
        "/full/path/to/pyautogui-mcp",
        "run",
        "python",
        "-m",
        "pyautogui_mcp"
      ]
    }
  }
}

You can also launch manually:

uv run python -m pyautogui_mcp --transport stdio
uv run python -m pyautogui_mcp --transport http --host 127.0.0.1 --port 8000

Use in your own project

Import only what you need and run it under your own server lifecycle:

from pyautogui_mcp import mcp, register_pyautogui_api

register_pyautogui_api(prefix="pyautogui_")
mcp.run()  # or mcp.run(transport="http", host="127.0.0.1", port=8000)

Other exports:

from pyautogui_mcp import pyautogui_diagnose, pyautogui_tools

Desktop control notes

  • The server runs actions on the machine where it is launched (current desktop/display).
  • PyAutoGUI requires a real GUI session; headless environments will fail.
  • Safety: moving the mouse to a corner triggers the PyAutoGUI failsafe.
  • Optional pause between actions via PYAUTOGUI_PAUSE=0.1.

Metadata

Release files for pyautogui-mcp 2026.1.101330

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyautogui-mcp 2026.1.101330
File Size Uploaded Provenance Actions
pyautogui_mcp-2026.1.101330.tar.gz 7.2 kB Without provenance Details for pyautogui_mcp-2026.1.101330.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyautogui-mcp 2026.1.101330
File Interpreter ABI Platform Actions
pyautogui_mcp-2026.1.101330-py3-none-any.whl Python 3 none any Details for pyautogui_mcp-2026.1.101330-py3-none-any.whl

Total release size: 15.3 kB

Release files / pyautogui_mcp-2026.1.101330.tar.gz

Download URL pyautogui_mcp-2026.1.101330.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
00dc012247651a40a5e1bb95d39c6e939365d5bdee0d1977174ca882151fbe3e
BLAKE2b-256 checksum
How to use checksums
24f3d78fa4e2ba78d399100743c8e8704458de6277ca7629f0a74818a6f9212f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.14

Release files / pyautogui_mcp-2026.1.101330-py3-none-any.whl

Download URL pyautogui_mcp-2026.1.101330-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
691856a705276abe427d01cec7488e299152abe98b1e554b250d624b953ec5bf
BLAKE2b-256 checksum
How to use checksums
18861b88e847f58344fe025d14b76238c0a17b40e45f286a55c5f81e5c4f3d89
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.14

Security for pyautogui-mcp 2026.1.101330

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page