How krishnaharshap/playwright-python-mcp works
This is a small Python demonstration client for browser automation through the Playwright MCP server. The main workflow runs from the manual entry point through the smoke-flow adapter, which connects over stdio, navigates to the configured demo URL, and evaluates the page title. A separate direct Playwright helper offers a non-MCP browser path. The graph includes README-documented server/browser behavior; unsampled integration details are not inferred.
Main entry points: mcp_adapter.py Smoke adapter · mcp_client.py MCP client · config.py Smoke config · browser.py Direct browser helper
Components 10
MCP smoke flow
- Manual runner
main.py - Smoke adapter
playwright_mcp/mcp_adapter.py - MCP client
playwright_mcp/mcp_client.py
Browser access
- Playwright MCP
- Browser automation
- Direct browser helper
playwright_mcp/browser.py - Playwright runtime
Configuration
- Smoke config
playwright_mcp/config.py
Other components
- User / operator
- TodoMVC demo
Connections 10
- User / operator → Manual runner: runs
README.md - Manual runner → Smoke adapter: invokes
main.py - Smoke adapter → MCP client: creates
playwright_mcp/mcp_adapter.py - Smoke adapter → Smoke config: defaults to
playwright_mcp/mcp_adapter.py - MCP client → Smoke config: uses default
playwright_mcp/mcp_client.py - MCP client → Playwright MCP: connects via stdio
playwright_mcp/mcp_client.py - Playwright MCP → Browser automation: drives
README.md - Browser automation → TodoMVC demo: navigates to
README.md - Direct browser helper → Smoke config: defaults to
playwright_mcp/browser.py - Direct browser helper → Playwright runtime: launches browser
playwright_mcp/browser.py