npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@archmeta1868/pyqt5-mcp

v7.0.1

Published

PyQt5 MCP - Controls ANY PyQt5 app WITHOUT modification, exactly like Playwright

Downloads

77

Readme

PyQt5 MCP v3.0

Controls ANY PyQt5 application WITHOUT modification - exactly like Playwright controls browsers

🚀 Installation

npx @archmeta1868/pyqt5-mcp@latest

✅ Key Features

  • NO app modification required - Works with any unmodified PyQt5 app
  • Playwright-identical API - Same tool names and interaction patterns
  • Overlap detection - Finds and fixes UI layout issues automatically
  • Direct control - No bridge code, flags, or cooperation needed

🎯 Usage

// Launch ANY PyQt5 app without modification
const app = await pyqt5.launch('any_app.py');

// Take accessibility snapshot (Playwright format)
const snapshot = await app.snapshot();

// Interact exactly like Playwright
await app.click('[ref=button1]');
await app.type('[ref=input1]', 'Hello');
await app.screenshot();

// Special: Detect overlapping widgets (as requested)
await app.detectOverlaps();
await app.analyzeLayout({ autoFix: true });

// Close app
await app.close();

🔧 How It Works

Uses Python's import system to automatically inject control code when PyQt5 loads. The target app has zero knowledge of being controlled, exactly like browsers don't know about Playwright.

NO modification required:

# Your app stays exactly as is:
app = QApplication(sys.argv)
window = MainWindow()
window.show()
app.exec_()  # NO MCP CODE AT ALL!

📋 Tools (Playwright-Compatible Names)

  • browser_navigate - Launch PyQt5 app
  • browser_snapshot - Get accessibility tree
  • browser_click - Click widgets
  • browser_type - Type text
  • browser_screenshot - Capture screen
  • browser_evaluate - Execute Python in app context
  • browser_detect_overlaps - Find overlapping widgets
  • browser_analyze_layout - Fix layout issues
  • browser_wait_for - Wait for conditions
  • browser_close - Close application

⚡ Version 3.0 - Complete Rewrite

What Changed

  • Removed ALL bridge requirements - No more PyQt5Bridge
  • Removed app modification - No more --mcp flag
  • Removed WebSocket dependency - Direct process control
  • Added Playwright compatibility - Identical tool names
  • Added automatic injection - Via Python import hooks

Migration from v1.x

// OLD (v1.x) - Required bridge in app
// App needed: if "--mcp" in sys.argv: bridge = PyQt5Bridge(app)
// Then: pyqt5_click, pyqt5_type, etc.

// NEW (v3.0) - NO app modification
// App needs: NOTHING!
// Now: browser_click, browser_type (like Playwright)

🧪 Test It Yourself

# Create a normal PyQt5 app (NO MCP code)
cat > test_app.py << 'EOF'
import sys
from PyQt5.QtWidgets import *

app = QApplication(sys.argv)
button = QPushButton("Normal App - No MCP!")
button.show()
app.exec_()
EOF

# Control it WITHOUT modification!
npx @archmeta1868/pyqt5-mcp@latest test test_app.py

📊 Overlap Detection (Special Feature)

As specifically requested, PyQt5 MCP excels at detecting and fixing UI layout issues:

// Detect overlapping widgets
const overlaps = await app.detectOverlaps();
// Returns: [{ widget1: "Button1", widget2: "Label1", severity: "HIGH" }, ...]

// Analyze and auto-fix layout
const analysis = await app.analyzeLayout({ 
  autoFix: true,
  checkOverlaps: true,
  checkAlignment: true,
  checkSpacing: true
});

🔑 Why Version 3.0?

Previous versions violated the core requirement by requiring bridge code in apps. Version 3.0 is a complete rewrite that works exactly like Playwright - no target modification required.

📝 License

MIT