Playwright Plus Python Mcp

174 stars🍴 27 forks📄 Apache-2.0

🔌 Transport

Standard I/O

📦 Installation

Build from source

Claude Desktop Configuration

Add this to your claude_desktop_config.json:

{
  "mcpServers": {
    "playwright-plus-python-mcp": {
      "args": [
        "index.js"
      ],
      "command": "node"
    }
  }
}

🛠️ Available Tools (10)

playwright_get_html_content

Get the HTML content of the page.

Optional

`selector` argument (string) to specify a CSS selector for the element to screenshot. If no selector is provided, a full-page screenshot is taken.

playwright_screenshot

Takes a screenshot of the current page or a specific element.

playwright_click

Clicks an element on the page using a CSS selector.

Requires

a `selector` argument (string) to specify the CSS selector for the element.

playwright_get_text_content

Get the text content of all visiable elements.

playwright_evaluate

Executes JavaScript code in the browser console.

playwright_fill

Fills out an input field.

playwright_click_text

Clicks an element on the page by its text content.

playwright_navigate

Navigates to a specified URL. This operation will automatically create a new session if there is no active session.

Capabilities

10
Tools
0
Resources
0
Prompts