com.thenextgennexus/playwright-mcp-server
Official17 toolsHeadless browser primitives for AI agents when sites need real JS rendering.
Provides headless browser automation for AI agents requiring JavaScript rendering on websites.
Captured live from the server via tools/list.
navigate
Navigate the browser to a URL. Returns the final URL and page title.
Parameters (2)
- urlstringrequired
- wait_untilstring
screenshot
Take a PNG screenshot of the current page (or a specific element). Returns base64 PNG.
Parameters (2)
- full_pageboolean
- selectorany
click
Click an element matched by CSS selector or visible text.
Parameters (4)
- selectorany
- textany
- buttonstring
- double_clickboolean
type_text
Type text into an input/textarea. Optionally clear first or press Enter after.
Parameters (4)
- selectorstringrequired
- textstringrequired
- clearboolean
- press_enterboolean
get_text
Extract visible text from the page or a specific element.
Parameters (1)
- selectorany
get_html
Return the HTML of the page or a specific element.
Parameters (2)
- selectorany
- outerboolean
evaluate
Evaluate JavaScript in the page context. Use `return` for values or an expression.
Parameters (1)
- scriptstringrequired
select_option
Choose an option from a <select> element by value or visible label.
Parameters (3)
- selectorstringrequired
- valueany
- labelany
scroll
Scroll the page (or an element) in the given direction by `amount` pixels.
Parameters (3)
- directionstring
- amountinteger
- selectorany
wait_for
Wait until a selector reaches a given state (visible|hidden|attached|detached).
Parameters (3)
- selectorany
- timeoutinteger
- statestring
get_links
Collect all anchor hrefs, optionally filtered by regex.
Parameters (2)
- selectorany
- patternany
extract_table
Extract a standard HTML table as a list of row objects keyed by header.
Parameters (1)
- selectorstring
page_pdf
Render the current page as PDF (headless only). Returns base64 PDF.
Parameters (2)
- format_string
- landscapeboolean
fill_form
Fill multiple form fields from a list of {selector, value} and optionally submit.
Parameters (2)
- fieldsarrayrequired
- submitboolean
get_cookies
Return all cookies for the current browser context.
No parameters.
set_cookies
Set cookies for the current browser context.
Parameters (1)
- cookiesarrayrequired
close_browser
Close the underlying browser, freeing resources.
No parameters.
README not available yet.
Install
claude_desktop_config.json
{
"mcpServers": {
"playwright-mcp-server": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://nexgendata-mcp-proxy.steve-corbeil.workers.dev/playwright-mcp-server/mcp"
]
}
}
}Desktop config is stdio-only; this bridges via mcp-remote. Native remote: Settings > Connectors.