{"id":37227657,"url":"https://github.com/chigwell/pyautogui-mcp","last_synced_at":"2026-01-15T03:23:08.179Z","repository":{"id":331635371,"uuid":"1127635144","full_name":"chigwell/pyautogui-mcp","owner":"chigwell","description":"MCP server exposing PyAutoGUI for desktop automation with dynamic tool registry and stdio/http transports.","archived":false,"fork":false,"pushed_at":"2026-01-10T18:38:49.000Z","size":264,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-11T04:10:24.696Z","etag":null,"topics":["automation","cli","desktop-automation","fastmcp","mcp","pyautogui","python"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/pyautogui-mcp/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chigwell.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-04T09:44:00.000Z","updated_at":"2026-01-10T18:38:18.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/chigwell/pyautogui-mcp","commit_stats":null,"previous_names":["chigwell/pyautogui-mcp"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/chigwell/pyautogui-mcp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chigwell%2Fpyautogui-mcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chigwell%2Fpyautogui-mcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chigwell%2Fpyautogui-mcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chigwell%2Fpyautogui-mcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chigwell","download_url":"https://codeload.github.com/chigwell/pyautogui-mcp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chigwell%2Fpyautogui-mcp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28442269,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-15T00:55:22.719Z","status":"online","status_checked_at":"2026-01-15T02:00:08.019Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","cli","desktop-automation","fastmcp","mcp","pyautogui","python"],"created_at":"2026-01-15T03:23:07.601Z","updated_at":"2026-01-15T03:23:08.174Z","avatar_url":"https://github.com/chigwell.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ca target=\"_blank\" href=\"https://github.com/chigwell/pyautogui-mcp\"\u003e\n    \u003cimg src=\"https://capsule-render.vercel.app/api?type=waving\u0026color=gradient\u0026height=200\u0026section=header\u0026text=PyAutoGUI-MCP\u0026fontSize=50\u0026fontAlignY=35\u0026animation=fadeIn\u0026fontColor=FFFFFF\u0026descAlignY=55\u0026descAlign=62\" alt=\"Telegram MCP Server\" width=\"100%\" /\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\nPyAutoGUI-MCP exposes MCP tools dynamically from the [`PyAutoGUI`](https://pypi.org/project/PyAutoGUI/) API.\nIt does not manually reimplement or wrap each function: it auto-registers the available API.\n\n## Install with pip\n\n```bash\npip install pyautogui-mcp\n```\n\nRun the server:\n\n```bash\npyautogui-mcp --transport stdio\npyautogui-mcp --transport http --host 127.0.0.1 --port 8000\n```\n\nMCP client config example:\n\n```json\n{\n  \"mcpServers\": {\n    \"pyautogui-mcp\": {\n      \"command\": \"pyautogui-mcp\",\n      \"args\": [\"--transport\", \"stdio\"]\n    }\n  }\n}\n```\n\n## Run with uv\n\nDependencies are declared in `pyproject.toml`, so uv can resolve and run directly:\n\n```json\n{\n  \"mcpServers\": {\n    \"pyautogui-mcp\": {\n      \"command\": \"uv\",\n      \"args\": [\n        \"--directory\",\n        \"/full/path/to/pyautogui-mcp\",\n        \"run\",\n        \"python\",\n        \"-m\",\n        \"pyautogui_mcp\"\n      ]\n    }\n  }\n}\n```\n\nYou can also launch manually:\n\n```bash\nuv run python -m pyautogui_mcp --transport stdio\nuv run python -m pyautogui_mcp --transport http --host 127.0.0.1 --port 8000\n```\n\n## Use in your own project\n\nImport only what you need and run it under your own server lifecycle:\n\n```python\nfrom pyautogui_mcp import mcp, register_pyautogui_api\n\nregister_pyautogui_api(prefix=\"pyautogui_\")\nmcp.run()  # or mcp.run(transport=\"http\", host=\"127.0.0.1\", port=8000)\n```\n\nOther exports:\n\n```python\nfrom pyautogui_mcp import pyautogui_diagnose, pyautogui_tools\n```\n\n## Desktop control notes\n\n- The server runs actions on the machine where it is launched (current desktop/display).\n- PyAutoGUI requires a real GUI session; headless environments will fail.\n- Safety: moving the mouse to a corner triggers the PyAutoGUI failsafe.\n- Optional pause between actions via `PYAUTOGUI_PAUSE=0.1`.\n\n## Tool examples\n\nTool names are exposed with the default `pyautogui_` prefix (configurable with `--prefix`).\n\n| Tool | Inputs (common) | Output |\n| --- | --- | --- |\n| `pyautogui_screenshot` | `imageFilename` (optional), `region` (optional `[left, top, width, height]`) | MCP image content (PNG bytes) |\n| `pyautogui_screenshot_encoded` | `format` (`png`/`jpeg`), `quality` (1-95, JPEG only), `region` | MCP image content (PNG/JPEG bytes) |\n| `pyautogui_position` | none | cursor coordinates `{ \"x\": int, \"y\": int }` |\n| `pyautogui_click` | `x`, `y`, `clicks`, `button`, `interval`, `duration` | `null` (mouse click performed) |\n| `pyautogui_doubleClick` | `x`, `y`, `button`, `interval`, `duration` | `null` (double-click performed) |\n| `pyautogui_rightClick` | `x`, `y`, `interval`, `duration` | `null` (right-click performed) |\n| `pyautogui_moveTo` | `x`, `y`, `duration` | `null` (mouse moved) |\n| `pyautogui_moveRel` | `xOffset`, `yOffset`, `duration` | `null` (mouse moved relative) |\n| `pyautogui_dragTo` | `x`, `y`, `duration`, `button` | `null` (drag performed) |\n| `pyautogui_dragRel` | `xOffset`, `yOffset`, `duration`, `button` | `null` (drag performed) |\n| `pyautogui_write` | `message`, `interval` | `null` (text typed) |\n| `pyautogui_typewrite` | `message`, `interval` | `null` (text typed) |\n| `pyautogui_press` | `keys`, `presses`, `interval` | `null` (key press performed) |\n| `pyautogui_hotkey` | `keys`, `interval` | `null` (hotkey chord performed) |\n| `pyautogui_scroll` | `clicks`, `x`, `y` | `null` (scroll performed) |\n| `pyautogui_tools` | none | tool list `{ note, tools:[{name, description}] }` |\n| `pyautogui_diagnose` | none | `{ python, platform, deps }` diagnostic info |\n\nUse `pyautogui_tools` to list the exact tool set for your environment and PyAutoGUI version.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchigwell%2Fpyautogui-mcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchigwell%2Fpyautogui-mcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchigwell%2Fpyautogui-mcp/lists"}