mcp-playwright
A Model Context Protocol server that provides browser automation capabilities using Playwright. This server enables LLMs to interact with web pages, take screenshots, and execute JavaScript in a real browser environment.
Schema
Prompts
Interactive templates invoked by user choice
Name | Description |
---|---|
No prompts |
Resources
Contextual data attached and managed by the client
Name | Description |
---|---|
Browser console logs |
Tools
Functions exposed to the LLM to take actions
Name | Description |
---|---|
playwright_navigate | Navigate to a URL |
playwright_screenshot | Take a screenshot of the current page or a specific element |
playwright_click | Click an element on the page |
playwright_fill | fill out an input field |
playwright_select | Select an element on the page with Select tag |
playwright_hover | Hover an element on the page |
playwright_evaluate | Execute JavaScript in the browser console |
playwright_get | Perform an HTTP GET request |
playwright_post | Perform an HTTP POST request |
playwright_put | Perform an HTTP PUT request |
playwright_patch | Perform an HTTP PATCH request |
playwright_delete | Perform an HTTP DELETE request |
Server Configuration
Describes the environment variables required to run the server.
Name | Required | Description | Default |
---|---|---|---|
No arguments |
Playwright MCP Server
A Model Context Protocol server that provides browser automation capabilities using Playwright. This server enables LLMs to interact with web pages, take screenshots, and execute JavaScript in a real browser environment.
<a href="https://glama.ai/mcp/servers/yh4lgtwgbe"><img width="380" height="200" src="https://glama.ai/mcp/servers/yh4lgtwgbe/badge" alt="mcp-playwright MCP server" /></a>
Screenshot
Documentation | API reference
Installation
You can install the package using either npm, mcp-get, or Smithery:
Using npm:
Using mcp-get:
Using Smithery
To install Playwright MCP for Claude Desktop automatically via Smithery:
Configuration to use Playwright Server
Here's the Claude Desktop configuration to use the Playwright server:
GitHub Badge
Glama performs regular codebase and documentation scans to:
- Confirm that the MCP server is working as expected.
- Confirm that there are no obvious security issues with dependencies of the server.
- Extract server characteristics such as tools, resources, prompts, and required parameters.
Our directory badge helps users to quickly asses that the MCP server is safe, server capabilities, and instructions for installing the server.
Copy the following code to your README.md file: