Playwright browser automation tools for MCP — full-featured: navigation, interaction, tabs, frames, storage, network, recording
Project description
mcp-playwright-tools
Playwright browser automation tools for MCP — navigation, interaction, content extraction, and semantic locators
Built on mcp-server-framework.
Installation
pip install mcp-playwright-tools
Usage
mcp-playwright-tools # stdio (default)
Claude Code / Claude Desktop
{
"mcpServers": {
"playwright": { "command": "mcp-playwright-tools" }
}
}
Tools
| Tool | Description |
|---|---|
navigate |
Navigate to a URL and wait for page load |
current_url |
Get the current page URL |
go_back |
Navigate back in browser history |
go_forward |
Navigate forward in browser history |
reload |
Reload the current page |
get_title |
Get the current page title |
get_text |
Get visible text of an element |
get_all_texts |
Get visible text of all matching elements |
get_page_content |
Get all visible text on the page |
get_html |
Get inner HTML of an element |
get_links |
Get all links on the page (text + href) |
get_attribute |
Get an attribute value from an element |
click |
Click an element |
fill |
Fill an input field with text |
type_text |
Type text character by character (for autocomplete etc.) |
press |
Press a keyboard key (Enter, Tab, Escape, etc.) |
select_option |
Select a dropdown option by value |
select_option_by_text |
Select a dropdown option by visible text |
check |
Check a checkbox |
uncheck |
Uncheck a checkbox |
hover |
Hover over an element |
focus |
Focus an element |
clear |
Clear an input field |
screenshot |
Take a screenshot of the page |
screenshot_element |
Take a screenshot of a specific element |
wait_for |
Wait for an element to appear |
wait_for_hidden |
Wait for an element to disappear |
wait_for_url |
Wait for the URL to match a pattern |
set_viewport |
Set the browser viewport size |
scroll_to |
Scroll an element into view |
scroll_page |
Scroll the page up or down |
find_by_role |
Find element by ARIA role (button, link, textbox, heading, etc.) |
find_by_text |
Find element by visible text |
find_by_label |
Find form element by its label text |
find_by_placeholder |
Find input element by placeholder text |
find_by_test_id |
Find element by data-testid attribute |
click_by_role |
Click element found by ARIA role |
click_by_text |
Click element found by visible text |
fill_by_label |
Fill input found by its label text |
describe_element |
Get ARIA role, text, and attributes of an element |
find_interactive_elements |
List all clickable and fillable elements on the page |
License
MIT — Part of uc-mcp-tools
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_playwright_tools-2.0.2.tar.gz.
File metadata
- Download URL: mcp_playwright_tools-2.0.2.tar.gz
- Upload date:
- Size: 14.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68b72738abb50c4f435f3c3e0c482b67c36e3e65de35dbeb43beb9aa2edf1b01
|
|
| MD5 |
1dd2fb662bed4bcacbf3d1683f12d23a
|
|
| BLAKE2b-256 |
7badf78ca0d5743d06b1d1249c6af0c08ba44cab478b1400d6a73d3639bda10e
|
File details
Details for the file mcp_playwright_tools-2.0.2-py3-none-any.whl.
File metadata
- Download URL: mcp_playwright_tools-2.0.2-py3-none-any.whl
- Upload date:
- Size: 17.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2926592d1c9305ef60ebe3b877b517163835cf9c7a6057b9ca176f2d74264dde
|
|
| MD5 |
37b42e3ac3a7d1bdf8920205dff21342
|
|
| BLAKE2b-256 |
ce738e2574a7627bcfb1e01abed07baa64308d30ea6fb55013fa6adff2eafffe
|