Playwright MCP Server
Allows browser automation via Firefox extension bridge for controlling existing browser tabs, including navigation, clicking, typing, and other interactions.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Playwright MCP Servernavigate to localhost:3000 and click the login button"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Playwright MCP Server
Browser automation via the Model Context Protocol. Supports headless Playwright, Chrome Extension bridge, and Firefox Extension bridge for controlling existing browser tabs.
Quick Start
npm install
npx playwright install chromium
npm run build
node dist/index.jsRelated MCP server: MCP Server Playwright
Extension Bridges
Link the MCP agent to your existing browser tabs. Two extensions are provided:
Chrome Extension (extension/)
Uses chrome.debugger API (CDP) for full browser control.
Go to
chrome://extensions→ Load unpacked → selectextension/Start the MCP server:
node dist/index.jsClick the extension icon → Connect
Use
extension_*tools
Firefox Extension (extension-firefox/)
Uses WebExtensions API with content scripts (no CDP dependency).
Go to
about:debugging#/runtime/this-firefox→ Load Temporary Add-on → selectextension-firefox/manifest.jsonStart the MCP server:
node dist/index.jsClick the extension icon → Connect
Use
firefox_*tools
Extension Tools
Shared (Chrome + Firefox)
Tool | Description |
| Check extension connection status |
| Execute JavaScript in the tab |
| Capture a screenshot of the tab |
| List all open browser tabs |
| Attach to a specific tab by ID |
Chrome CDP Tools
Tool | Description |
| Navigate the connected tab to a URL |
| Click an element by CSS selector |
Firefox Content Script Tools
Tool | Description |
| Navigate the connected tab to a URL |
| Click an element by CSS selector |
| Type text into an input field |
| Fill an input field with a value |
| Get text content of an element |
| Get HTML content of page or element |
| Hover over an element |
| Select an option in a select element |
| Check a checkbox |
| Uncheck a checkbox |
| Get an attribute value from an element |
| Get the current page URL |
| Get the current page title |
| Navigate back in history |
| Navigate forward in history |
| Reload the current page |
| Scroll the page |
| Take a screenshot of the connected tab |
| Execute JavaScript in the connected tab |
Headless Mode (Default)
25+ browser_* tools for headless Chromium via Playwright.
Configuration
Env Var | Default | Description |
|
| WebSocket port for extension bridge |
|
| Set to |
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Krutas/playwright-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server