Tool connections (MCP)
Playwright MCP
Let AI navigate pages, click controls, and fill forms to check web workflows.
Install
Claude Code · System terminalTerminal commands
- Install Node.js and npm first; follow the project’s required version.
- Install Claude Code and sign in before configuring this integration.
- Save the configuration, then restart or reload your assistant or editor.
System terminal
claude mcp add playwright -- npx @playwright/mcp@latestCodex · System terminalTerminal commands
- Install Node.js and npm first; follow the project’s required version.
- Install a current Codex CLI and sign in first.
- Save the configuration, then restart or reload your assistant or editor.
System terminal
codex mcp add playwright -- npx @playwright/mcp@latestRequirements, costs and detailed steps
Playwright MCP setup and requirements
- What you need
- Node.js 18 or newer.
- An MCP-capable local assistant and a working browser.
- Costs
- The project code is open source. AI assistant usage and third-party service quotas are separate.
- Required permissions
- It can read pages, click, and type. Use it on pages you authorize; browser sign-in state affects what it can access.
CodexOfficial setup documented
The README provides Codex configuration for a local browser.
Setup steps
- Open the Codex section in the README.
- Add Playwright using that section’s MCP configuration.
- Reopen the assistant and check for Playwright tools; follow official prompts if a browser is missing.
Check that setup worked
Ask it to open your website and read the page title; verify both the URL and title.
Official sources
Claude CodeOfficial setup documented
The README provides Claude Code configuration for a local browser.
Setup steps
- Open the Claude Code section in the README.
- Add Playwright using that section’s MCP configuration.
- Reopen the assistant and check for Playwright tools; follow official prompts if a browser is missing.
Check that setup worked
Ask it to open your website and read the page title; verify both the URL and title.
Official sources
CursorOfficial setup documented
The README provides Cursor configuration for a local browser.
Setup steps
- Open the Cursor section in the README.
- Add Playwright using that section’s MCP configuration.
- Reopen the assistant and check for Playwright tools; follow official prompts if a browser is missing.
Check that setup worked
Ask it to open your website and read the page title; verify both the URL and title.
Official sources
Official sources
Setup guidance reviewed 2026-10-12 · Based on public documentation; not individually installed and tested here.
What is Playwright MCP?
Use Playwright MCP when an AI assistant needs to explore a website or check a sequence such as search and form submission. It works with the page's text, controls, and structure rather than relying only on screenshots. Connect it to an MCP-compatible assistant and prepare the environment described in the documentation; review the browser's results against the actual workflow.
Playwright MCP use cases
- Navigate pages and interact with forms and controls
- Inspect a web workflow step by step
- Configure the browser tools for your chosen AI assistant
Official project & documentation
Alternatives to Playwright MCP for similar tasks
Compare plugins for similar tasks and check their setup requirements.
- Chrome DevTools MCP — Let AI inspect Chrome pages to investigate errors and loading performance.
- BrowserTools MCP — Share a Chrome session's errors, network activity, and screenshots with AI.
- ExecuteAutomation Playwright MCP — ExecuteAutomation Playwright MCP: Operate web pages in a browser through an MCP-compatible assistant.