# playwright-plus-python-mcp

> playwright-plus-python-mcp is an open-source MCP server for browser automation. MCP server giving AI clients Playwright browser tools for navigation, clicks, forms. It is available on CLI, API and Self-hosted.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API, Self-hosted
- **Repository:** https://github.com/blackwhite084/playwright-plus-python-mcp
- **GitHub stars:** 187
- **License:** Apache-2.0
- **Categories:** [browser automation](https://ai-powered.com/categories/browser-automation)
- **Listing updated:** 2026-12-01

## About

Exposes a headless-style browser automation toolkit over the Model Context Protocol, so an AI client can drive a Playwright browser session without custom glue code. Calls such as navigating to a URL, clicking by CSS selector or visible text, filling inputs, running JavaScript in the page, and reading page text or HTML are available as named tools.

A session is created automatically the first time a navigation call runs, and screenshots can capture either the full page or a single element chosen by selector. The server also ships a small note-storage resource and a summarize-notes prompt alongside the browser tools.

The package is aimed at developers who want an assistant to inspect or interact with web pages from Claude Desktop or another MCP-compatible client. It is installed from PyPI with uv or uvx and can be run from a local project directory for development.

## Features

- **Page navigation:** Opens a URL and starts a browser session automatically if none is active.
- **Element interaction:** Clicks elements by CSS selector or visible text and fills input fields.
- **Screenshots:** Captures the full page or a single element identified by a CSS selector.
- **Content extraction:** Returns visible page text or the HTML of a selected element.
- **JavaScript execution:** Runs a supplied script in the browser console context of the page.
- **Note resources and prompts:** Stores notes under a note:// scheme and offers a prompt that summarizes them.

## Good for

- Letting an AI assistant read the visible text of a web page
- Automating form filling during testing or data entry
- Capturing screenshots of specific page elements for review
- Scraping HTML fragments from a page for further analysis
- Debugging browser behaviour by running scripts from within an MCP client

## Tools

From the tool list in its README, going by the names, 2 of 8 tools read data; 6 names don't say. From the server's own tool labels and tool names; not verified by us.

- `playwright_navigate`: Navigates to a specified URL, creating a session if none is active.
- `playwright_screenshot`: Takes a screenshot of the page or a specific element.
- `playwright_click`: Clicks an element using a CSS selector.
- `playwright_fill`: Fills an input field with a value.
- `playwright_evaluate`: Executes JavaScript in the browser console.
- `playwright_click_text`: Clicks an element by its text content.
- `playwright_get_text_content` (name suggests: reads): Gets the text content of all visible elements.
- `playwright_get_html_content` (name suggests: reads): Gets the HTML content of an element selected by CSS selector.

## FAQ

### How is the server installed?

For published builds, add a config entry that runs uvx with playwright-server as the argument. Local development builds can be run with uv from a project directory.

### How do I debug the server?

The README recommends the MCP Inspector, launched with npx, which shows a URL for browsing the server's tools.

### What license does playwright-plus-python-mcp use?

The repository is licensed under Apache-2.0.

### Is playwright-plus-python-mcp free?

Yes. playwright-plus-python-mcp is open source, so you can use and self-host it for free.

### What are the best alternatives to playwright-plus-python-mcp?

The closest alternatives to playwright-plus-python-mcp are MCP-Server-Playwright, mcp-playwright, Playwright MCP, playwright_mcp and mcp-browser-agent.

## Where this comes from

- Description: written from the project's README.

## Alternatives

- [MCP-Server-Playwright](https://ai-powered.com/mcp/mcp-server-playwright): MCP-Server-Playwright is an open-source MCP server for browser automation.
- [mcp-playwright](https://ai-powered.com/mcp/mcp-playwright): mcp-playwright is an open-source MCP server for browser automation.
- [Playwright MCP](https://ai-powered.com/mcp/playwright-mcp-2): Playwright MCP is an open-source MCP server for browser automation.
- [playwright_mcp](https://ai-powered.com/mcp/playwright-mcp-3): playwright_mcp is an open-source MCP server for browser automation.
- [mcp-browser-agent](https://ai-powered.com/mcp/mcp-browser-agent): mcp-browser-agent is an open-source MCP server for browser automation.
- [Playwright MCP](https://ai-powered.com/mcp/playwright-mcp): Playwright MCP is an open-source MCP server for browser automation.
- [mcp-aoai-web-browsing](https://ai-powered.com/mcp/mcp-aoai-web-browsing): mcp-aoai-web-browsing is an open-source MCP server for browser automation.
- [browser-use-mcp-server](https://ai-powered.com/mcp/browser-use-mcp-server): browser-use-mcp-server is an open-source MCP server for browser automation.

---
Source: https://ai-powered.com/mcp/playwright-plus-python-mcp
