bilalmk avatar

Browsing With Playwright

Browser automation skill that drives Playwright MCP to navigate pages, fill forms, and extract data.

CCM score
59 of 100
skills.sh installs
1.7K
GitHub stars
1
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the full browser workflow: start and stop the server, navigate, read page state, interact with elements, wait, and run JavaScript
  • Includes scripts/start-server.sh, scripts/stop-server.sh, scripts/mcp-client.py, and scripts/verify.py, plus a tool reference document
  • Requires --shared-browser-context so browser state persists across separate mcp-client.py calls
  • Designed for form submission, scraping, and UI testing; static content should be fetched with curl or wget instead

Install

$ npx -y skills add bilalmk/todo_correct --skill browsing-with-playwright -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Browser Automation

Automate browser interactions via Playwright MCP server.

Server Lifecycle

Start Server

# Using helper script (recommended)
bash scripts/start-server.sh

# Or manually
npx @playwright/mcp@latest --port 8808 --shared-browser-context &

Stop Server

# Using helper script (closes browser first)
bash scripts/stop-server.sh

# Or manually
python3 scripts/mcp-client.py call -u http://localhost:8808 -t browser_close -p '{}'
pkill -f "@playwright/mcp"

When to Stop

  • End of task: Stop when browser work is complete
  • Long sessions: Keep running if doing multiple browser tasks
  • Errors: Stop and restart if browser becomes unresponsive

Important: The --shared-browser-context flag is required to maintain browser state across multiple mcp-client.py calls. Without it, each call gets a fresh browser context.

Quick Reference

Navigation

# Go to URL
python3 scripts/mcp-client.py call -u http://localhost:8808 -t browser_navigate \
  -p '{"url": "https://example.com"}'

# Go back

Details

Repository
github.com/bilalmk/todo_correct
Categories
Browser Automation & Scraping, Testing & QA

Similar to Browsing With Playwright

More Browser Automation & Scraping