MCP Pyautogui Server MCP Server

A MCP (Model Context Protocol) server that provides automated GUI testing and control capabilities through PyAutoGUI.

Local serverstdioPython

What is the MCP Pyautogui Server MCP server?

MCP Pyautogui Server MCP server exists for a simple reason — assistants are far more useful when they can act on MCP Pyautogui Server directly instead of describing what you should do. A MCP (Model Context Protocol) server that provides automated GUI testing and control capabilities through PyAutoGUI.

What you get

  • Control mouse movements and clicks
  • Simulate keyboard input
  • Take screenshots
  • Find images on screen
  • Get screen information
  • Cross-platform support (Windows, macOS, Linux)

What the assistant can call

Once MCP Pyautogui Server is connected, these are the calls the assistant has available:

  • Prerequisites — The Prerequisites tool exposed by this server
  • Debugging — The Inspector will display a URL that you can access in your browser to begin debugging

Configuration and credentials

You will need one environment variable: UV_PUBLISH_TOKEN. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

  • Python 3.12+ * PyAutoGUI * Other dependencies will be installed automatically

Setting it up

Installation goes through your MCP client rather than a global install: point it at @modelcontextprotocol/inspector on npm and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.

Choosing this one

Among the browser automation options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. MCP Pyautogui Server's toolset — Prerequisites, Debugging — is a fair guide to whether it matches your workflow. It is maintained by hetaoBackend; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Before you rely on it

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the mcp pyautogui server mcp server does with a few real requests.

Available tools

ToolWhat it does
PrerequisitesThe Prerequisites tool exposed by this server.
DebuggingThe Inspector will display a URL that you can access in your browser to begin debugging.

How to install the MCP Pyautogui Server MCP server

{
  "mcpServers": {
    "mcp-pyautogui-server": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/mcp-pyautogui-server",
        "run",
        "mcp-pyautogui-server"
      ]
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

  • Python 3.12+ * PyAutoGUI * Other dependencies will be installed automatically
VariableDescriptionRequired
UV_PUBLISH_TOKENCredential the server authenticates with.Yes

Example prompts to try

  • Use MCP Pyautogui Server to Prerequisites.
  • Use MCP Pyautogui Server to Debugging.

Frequently asked questions

It connects MCP Pyautogui Server to MCP-compatible AI assistants such as Claude and Cursor, exposing 2 tools (Prerequisites, Debugging) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with MCP Pyautogui Server directly.