About executeautomation/playwright-mcp-server
executeautomation/playwright-mcp-server is an MCP server published by executeautomation in the Automation category: playwright Model Context Protocol Server - Tool to automate Browsers and APIs in Claude Desktop, Cline, Cursor IDE and More 🔌. Conduid read 33 tools from its source: clear_codegen_session, end_codegen_session, get_codegen_session, playwright_assert_response, playwright_click, playwright_click_and_switch_tab and 27 more. It is published to npm as @executeautomation/playwright-mcp-server and starts with npx.
The repository has 5.7K stars and 541 forks, is licensed MIT, and its last commit was on 13 Dec 2025. Conduid has no tagged release on record for it. It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include automation.
Install
claude mcp add playwright-executea -- npx @executeautomation/playwright-mcp-servernpx @executeautomation/playwright-mcp-servergit clone https://github.com/executeautomation/mcp-playwrightTools (33)
clear_codegen_sessionClear a code generation session| Parameter | Type | Description |
|---|---|---|
| sessionId * | string | ID of the session to clear |
end_codegen_sessionEnd the current code generation session and generate Playwright test| Parameter | Type | Description |
|---|---|---|
| sessionId * | string | ID of the session to end |
get_codegen_sessionGet information about a code generation session| Parameter | Type | Description |
|---|---|---|
| sessionId * | string | ID of the session to retrieve |
playwright_assert_responseWait for and validate a previously initiated HTTP response wait operation.| Parameter | Type | Description |
|---|---|---|
| id * | string | Identifier of the HTTP response initially expected using `Playwright_expect_response`. |
| value | string | Data to expect in the body of the HTTP response. If provided, the assertion will fail if this value is not found in the response body. |
playwright_clickClick an element on the page| Parameter | Type | Description |
|---|---|---|
| selector * | string | CSS selector for the element to click |
playwright_click_and_switch_tabClick a link and switch to the newly opened tab| Parameter | Type | Description |
|---|---|---|
| selector * | string | CSS selector for the link to click |
playwright_closeClose the browser and release all resourcesplaywright_console_logsRetrieve console logs from the browser with filtering options| Parameter | Type | Description |
|---|---|---|
| clear | boolean | Whether to clear logs after retrieval (default: false) |
| limit | number | Maximum number of logs to return |
| search | string | Text to search for in logs (handles text with square brackets) |
| type | string | Type of logs to retrieve (all, error, warning, log, info, debug, exception) |
playwright_custom_user_agentSet a custom User Agent for the browser| Parameter | Type | Description |
|---|---|---|
| userAgent * | string | Custom User Agent for the Playwright browser instance |
playwright_deletePerform an HTTP DELETE request| Parameter | Type | Description |
|---|---|---|
| headers | object | Additional headers to include in the request |
| token | string | Bearer token for authorization |
| url * | string | URL to perform DELETE operation |
playwright_dragDrag an element to a target location| Parameter | Type | Description |
|---|---|---|
| sourceSelector * | string | CSS selector for the element to drag |
| targetSelector * | string | CSS selector for the target location |
playwright_evaluateExecute JavaScript in the browser console| Parameter | Type | Description |
|---|---|---|
| script * | string | JavaScript code to execute |
playwright_expect_responseAsk Playwright to start waiting for a HTTP response. This tool initiates the wait operation but does not wait for its completion.| Parameter | Type | Description |
|---|---|---|
| id * | string | Unique & arbitrary identifier to be used for retrieving this response later with `Playwright_assert_response`. |
| url * | string | URL pattern to match in the response. |
playwright_fillfill out an input field| Parameter | Type | Description |
|---|---|---|
| selector * | string | CSS selector for input field |
| value * | string | Value to fill |
playwright_getPerform an HTTP GET request| Parameter | Type | Description |
|---|---|---|
| headers | object | Additional headers to include in the request |
| token | string | Bearer token for authorization |
| url * | string | URL to perform GET operation |
playwright_get_visible_htmlGet the HTML content of the current page. By default, all <script> tags are removed from the output unless removeScripts is explicitly set to false.| Parameter | Type | Description |
|---|---|---|
| cleanHtml | boolean | Perform comprehensive HTML cleaning (default: false) |
| maxLength | number | Maximum number of characters to return (default: 20000) |
| minify | boolean | Minify the HTML output (default: false) |
| removeComments | boolean | Remove all HTML comments (default: false) |
| removeMeta | boolean | Remove all meta tags from the HTML (default: false) |
| removeScripts | boolean | Remove all script tags from the HTML (default: true) |
| removeStyles | boolean | Remove all style tags from the HTML (default: false) |
| selector | string | CSS selector to limit the HTML to a specific container |
playwright_get_visible_textGet the visible text content of the current pageplaywright_go_backNavigate back in browser historyplaywright_go_forwardNavigate forward in browser historyplaywright_hoverHover an element on the page| Parameter | Type | Description |
|---|---|---|
| selector * | string | CSS selector for element to hover |
playwright_iframe_clickClick an element in an iframe on the page| Parameter | Type | Description |
|---|---|---|
| iframeSelector * | string | CSS selector for the iframe containing the element to click |
| selector * | string | CSS selector for the element to click |
playwright_iframe_fillFill an element in an iframe on the page| Parameter | Type | Description |
|---|---|---|
| iframeSelector * | string | CSS selector for the iframe containing the element to fill |
| selector * | string | CSS selector for the element to fill |
| value * | string | Value to fill |
playwright_navigateNavigate to a URL| Parameter | Type | Description |
|---|---|---|
| browserType | string | Browser type to use (chromium, firefox, webkit). Defaults to chromium |
| headless | boolean | Run browser in headless mode (default: false) |
| height | number | Viewport height in pixels (default: 720) |
| timeout | number | Navigation timeout in milliseconds |
| url * | string | URL to navigate to the website specified |
| waitUntil | string | Navigation wait condition |
| width | number | Viewport width in pixels (default: 1280) |
playwright_patchPerform an HTTP PATCH request| Parameter | Type | Description |
|---|---|---|
| headers | object | Additional headers to include in the request |
| token | string | Bearer token for authorization |
| url * | string | URL to perform PATCH operation |
| value * | string | Data to PATCH in the body |
playwright_postPerform an HTTP POST request| Parameter | Type | Description |
|---|---|---|
| headers | object | Additional headers to include in the request |
| token | string | Bearer token for authorization |
| url * | string | URL to perform POST operation |
| value * | string | Data to post in the body |
playwright_press_keyPress a keyboard key| Parameter | Type | Description |
|---|---|---|
| key * | string | Key to press (e.g. 'Enter', 'ArrowDown', 'a') |
| selector | string | Optional CSS selector to focus before pressing key |
playwright_putPerform an HTTP PUT request| Parameter | Type | Description |
|---|---|---|
| headers | object | Additional headers to include in the request |
| token | string | Bearer token for authorization |
| url * | string | URL to perform PUT operation |
| value * | string | Data to PUT in the body |
playwright_resizeResize the browser viewport using manual dimensions or device presets. Supports 143+ device presets including iPhone, iPad, Android devices, and desktop browsers with proper user-agent and touch emulation.| Parameter | Type | Description |
|---|---|---|
| device | string | Device preset name (e.g., 'iPhone 13', 'iPad Pro 11', 'Pixel 7', 'Galaxy S24', 'Desktop Chrome'). Automatically configures viewport, user-agent, and device capabilities. Use playwright.devices to see all available devices. |
| height | number | Viewport height in pixels (for manual resize without device preset) |
| orientation | string | Device orientation: 'portrait' or 'landscape' (only applies when using device preset) |
| width | number | Viewport width in pixels (for manual resize without device preset) |
playwright_save_as_pdfSave the current page as a PDF file| Parameter | Type | Description |
|---|---|---|
| filename | string | Name of the PDF file (default: page.pdf) |
| format | string | Page format (e.g. 'A4', 'Letter') |
| margin | object | Page margins |
| outputPath * | string | Directory path where PDF will be saved |
| printBackground | boolean | Whether to print background graphics |
playwright_screenshotTake a screenshot of the current page or a specific element| Parameter | Type | Description |
|---|---|---|
| downloadsDir | string | Custom downloads directory path (default: user's Downloads folder) |
| fullPage | boolean | Store screenshot of the entire page (default: false) |
| height | number | Height in pixels (default: 600) |
| name * | string | Name for the screenshot |
| savePng | boolean | Save screenshot as PNG file (default: false) |
| selector | string | CSS selector for element to screenshot |
| storeBase64 | boolean | Store screenshot in base64 format (default: true) |
| width | number | Width in pixels (default: 800) |
playwright_selectSelect an element on the page with Select tag| Parameter | Type | Description |
|---|---|---|
| selector * | string | CSS selector for element to select |
| value * | string | Value to select |
playwright_upload_fileUpload a file to an input[type='file'] element on the page| Parameter | Type | Description |
|---|---|---|
| filePath * | string | Absolute path to the file to upload |
| selector * | string | CSS selector for the file input element |
start_codegen_sessionStart a new code generation session to record MCP tool actions| Parameter | Type | Description |
|---|---|---|
| options | object | Code generation options |
Security checks
Static checks derived from the repository 7 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 1.2K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by package-lock.json.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
1 check has not been run yet.
README
The repository's README runs to about 1.2K words, fetched 7 days ago. The original in the repository is authoritative.
Read full README