
PySide6 MCP
io.github.com55Published by GitHub account com55v0.1.0Updated Oct 24, 2026
Playwright-style MCP to inspect, control, and debug PySide6 desktop GUIs.
Overview
Lets an AI assistant inspect, screenshot, click, type into, and debug a running PySide6 desktop GUI without changing the app's source code.
- What you can do
- A Playwright-style MCP server for PySide6 desktop apps. It launches or attaches to a running app through a local HTTP bridge and exposes tools to screenshot windows or widgets, read the full widget tree and individual widget properties, find widgets by class, object name, or text, and interact by clicking, double-clicking, typing, pressing keys, and scrolling. It also lists and triggers QAction menu items, reads Python logs and raw stdout/stderr, reports app state and bridge health, and can run Python inside the app process for deeper inspection.
- When to use it
- Useful when you want an assistant to drive or debug a PySide6 desktop application: reproducing UI bugs, checking why a control is disabled, filling and submitting forms, or capturing screenshots and logs during a session. It is aimed at local desktop development rather than headless or web testing.
- Requirements
- Local process over stdio. Needs Python 3.11+, PySide6 6.6+ in the target app's environment, and uv on PATH (uvx is used to run the server). The bridge runs inside the app; launch_app injects it via an isolated PYTHONPATH, or you can run python -m pyside6_mcp or call install_bridge(). The bridge listens on localhost, default port 7890, overridable with PYSIDE6_MCP_PORT. Tested on Windows; Linux and macOS expected to work.
Installation
In SourceWeft
- Open PySide6 MCP in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
pyside6-mcp
Playwright-style MCP server for PySide6 apps — lets AI assistants see, control, and debug your Python desktop GUI without modifying your app's source code.
Features
- Screenshot any window or widget
- Inspect the full widget tree (class, name, geometry, text, state)
- Click, type, scroll, press keys — full interaction
- Find widgets by class, objectName, or text content
- Read Python logs captured from the app
- Run Python inside the app process for advanced inspection
- Launch and stop the app from the agent
Zero changes to your app's source code required.
Requirements
- Python 3.11+
- PySide6 6.6+
- uv (recommended)
- Windows (tested), Linux/macOS (should work)
Installation
The MCP server (stdio) and the in-app bridge are separate:
No changes to the target project. launch_app(cwd=…) injects only the
bridge modules via an isolated PYTHONPATH — nothing is added to pyproject.toml,
and the MCP server's dependencies (fastmcp, httpx, …) never enter the app environment.
Requires uv on PATH. MCP Registry name:
io.github.com55/pyside6-mcp.
Unlike qt-mcp, you do not add this
package to the target app or set a probe env var. launch_app injects the bridge.
Claude Code
Plugin (MCP + skill). install only searches marketplaces you have added —
there is no github: install shorthand:
MCP server only:
Cursor
Install the Agent Plugin from this repository (or from the Cursor Marketplace once listed). Manual stdio config:
After saving, reload MCP servers in Cursor Settings → MCP.
See examples/cursor-mcp-config.json.
Any stdio MCP client
Place it wherever that client expects MCP config (user-level or project-level).
See examples/mcp-config.json.
VS Code / GitHub Copilot / other clients
Same stdio block as Any stdio MCP client.
Note:
uvxdownloads and runs the MCP server in an isolated env — PySide6 is not required there. PySide6 is only needed in the target app's venv (already a project dependency).To run from a git checkout instead of PyPI:
uvx --from git+https://github.com/com55/pyside6-mcp pyside6-mcp
Usage
From MCP (recommended — zero project setup)
cwd is the project root (pyproject.toml). script is the entry .py relative to cwd.
launch_app returns {pid} (the Qt app process, not the uv wrapper). Other tools omit pid to target the last launched app; pass pid= when several are running. Do not pass port=.
Manual launch (when you start the app yourself)
Prefer launch_app above. Use these only when the app is already running, or
you want to start it outside the MCP server.
Without editing app source — run the entry script through the bridge launcher
(pulls pyside6-mcp into a temporary env; does not add it to the project):
Bridge listens on http://127.0.0.1:7890 by default. Override with
PYSIDE6_MCP_PORT. Then from the agent call wait_until_ready() (and pass
pid= only if you use several apps).
launch_app is different: it picks an ephemeral port and injects only the
bridge modules via an isolated PYTHONPATH — you never set the port yourself.
Embed in the app (always-on; requires adding the package to that project):
From your AI assistant
Once the app is running with the bridge active, ask your assistant:
"Screenshot the app and click the Apply button" "Why is the checkbox disabled? Inspect its state." "Fill in the form and submit it" "Show me the last 20 log lines from the app"
Your assistant uses the launch_app, screenshot, get_widget_tree, find_widget, click, type_text, get_logs, and other tools automatically.
launch_app returns only when the UI is ready (a visible top-level window that has been quiet for at least 500 ms), not merely when the bridge HTTP server is up. Default timeout is 45 seconds.
Tools
Agent Skill
A companion skill ships at skills/pyside6-mcp/SKILL.md
and is installed automatically with the plugin. It tells the agent when and how
to use these tools — no need to explain the workflow every time.
Architecture
Thread safety: all Qt operations are marshaled to the main thread via QApplication.postEvent with a custom event type — the same mechanism Qt uses internally for cross-thread signals.
Examples
examples/test_app.py— minimal PySide6 app to verify the bridgeexamples/mcp-config.json— generic MCP config (Cursor, VS Code, Windsurf, …)examples/cursor-mcp-config.json— Cursor-specific templateexamples/claude-mcp-config.json— same format, kept for reference
License
MIT
Source: README.md at commit 6d3a4f2
Tools
0Version history
1- v0.1.0LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts