Skip to content
Back to search

MCP-Server-Playwright

MCP server for browser automation using Playwright

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today
Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/vikashloomba--mcp-server-playwright/badge.svg)](/listings/vikashloomba--mcp-server-playwright)

HTML

<a href="/listings/vikashloomba--mcp-server-playwright"><img src="/api/listings/vikashloomba--mcp-server-playwright/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

Install instructions from the README

As written by the repo's author. findsafeskills has not verified these steps.

Installing via Smithery

To install MCP Server Playwright for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@automatalabs/mcp-server-playwright):

npx -y @smithery/cli install @automatalabs/mcp-server-playwright --client claude

You can install the package using either npx or mcp-get:

Using npx:

npx @automatalabs/mcp-server-playwright install

This command will: 1. Check your operating system compatibility (Windows/macOS) 2. Create or update the Claude configuration file 3. Configure the Playwright server integration

The configuration file will be automatically created/updated at: - Windows: `%APPDATA%\Claude\claude_desktop_config.json` - macOS: `~/Library/Application Support/Claude/claude_desktop_config.json`

Using mcp-get:

npx @michaellatman/mcp-get@latest install @automatalabs/mcp-server-playwright

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

README.md · README · 213 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

  1. <h1 align="center">MCP Server Playwright</h1>
  2. <p align="center">
  3. <a href="https://www.automatalabs.io"><img alt="MCP Playwright" src="https://automatalabs.io/icon.svg" height="250"/></a>
  4. </p>
  5. <p align="center">
  6. <b>A Model Context Protocol server that provides browser automation capabilities using Playwright</b></br>
  7. <sub>Enable LLMs to interact with web pages, take screenshots, and execute JavaScript in a real browser environment</sub>
  8. </p>
  9. <p align="center">
  10. <a href="https://www.npmjs.com/package/@automatalabs/mcp-server-playwright"><img alt="NPM Version" src="https://img.shields.io/npm/v/@automatalabs/mcp-server-playwright.svg" height="20"/></a>
  11. <a href="https://npmcharts.com/compare/@automatalabs/mcp-server-playwright?minimal=true"><img alt="Downloads per month" src="https://img.shields.io/npm/dm/@automatalabs/mcp-server-playwright.svg" height="20"/></a>
  12. <a href="https://github.com/Automata-Labs-team/MCP-Server-Playwright/blob/main/LICENSE"><img alt="License" src="https://img.shields.io/github/license/Automata-Labs-team/MCP-Server-Playwright.svg" height="20"/></a>
  13. <a href="https://smithery.ai/server/@automatalabs/mcp-server-playwright"><img alt="Smithery Installs" src="https://smithery.ai/badge/@automatalabs/mcp-server-playwright" height="20"/></a>
  14. </p>
  15. <a href="https://glama.ai/mcp/servers/9q4zck8po5"><img width="380" height="200" src="https://glama.ai/mcp/servers/9q4zck8po5/badge" alt="MCP-Server-Playwright MCP server" /></a>
  16. ## Table of Contents
  17. - [Features](#features)
  18. - [Installation](#installation)
  19. - [Configuration](#configuration)
  20. - [Components](#components)
  21. - [Tools](#tools)
  22. - [Resources](#resources)
  23. - [License](#license)
  24. ## Features
  25. - 🌐 Full browser automation capabilities
  26. - 📸 Screenshot capture of entire pages or specific elements
  27. - 🖱️ Comprehensive web interaction (navigation, clicking, form filling)
  28. - 📊 Console log monitoring
  29. - 🔧 JavaScript execution in browser context
  30. ## Installation
  31. ### Installing via Smithery
  32. To install MCP Server Playwright for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@automatalabs/mcp-server-playwright):
  33. ```bash
  34. npx -y @smithery/cli install @automatalabs/mcp-server-playwright --client claude
  35. ```
  36. You can install the package using either npx or mcp-get:
  37. Using npx:
  38. ```bash
  39. npx @automatalabs/mcp-server-playwright install
  40. ```
  41. This command will:
  42. 1. Check your operating system compatibility (Windows/macOS)
  43. 2. Create or update the Claude configuration file
  44. 3. Configure the Playwright server integration
  45. The configuration file will be automatically created/updated at:
  46. - Windows: `%APPDATA%\Claude\claude_desktop_config.json`
  47. - macOS: `~/Library/Application Support/Claude/claude_desktop_config.json`
  48. Using mcp-get:
  49. ```bash
  50. npx @michaellatman/mcp-get@latest install @automatalabs/mcp-server-playwright
  51. ```
  52. ## Configuration
  53. The installation process will automatically add the following configuration to your Claude config file:
  54. ```json
  55. {
  56. "mcpServers": {
  57. "playwright": {
  58. "command": "npx",
  59. "args": ["-y", "@automatalabs/mcp-server-playwright"]
  60. }
  61. }
  62. }
  63. ```
  64. ## Using with Cursor
  65. You can also use MCP Server Playwright with [Cursor](https://www.cursor.so/), an AI-powered code editor. To enable browser automation in Cursor via MCP:
  66. 1. **Install Playwright browsers** (if not already):
  67. ```bash
  68. npx playwright install
  69. ```
  70. 2. **Install MCP Server Playwright for Cursor** using Smithery:
  71. ```bash
  72. npx -y @smithery/cli install @automatalabs/mcp-server-playwright --client cursor
  73. ```
  74. 3. **Configuration file setup**:
  75. If you do not use Claude, the configuration file (`claude_desktop_config.json`) may not be created automatically.
  76. - On Windows, create a folder named `Claude` in `%APPDATA%` (usually `C:\Users\<YourName>\AppData\Roaming\Claude`).
  77. - Inside that folder, create a file named `claude_desktop_config.json` with the following content:
  78. ```json
  79. {
  80. "serverPort": 3456
  81. }
  82. ```
  83. 4. **Follow the remaining steps in the [Installation](#installation) section above** to complete the setup.
  84. Now, you can use all the browser automation tools provided by MCP Server Playwright directly from Cursor’s AI features, such as web navigation, screenshot capture, and JavaScript execution.
  85. > **Note:** Make sure you have Node.js installed and `npx` available in your system PATH.
  86. ## Components
  87. ### Tools
  88. #### `browser_navigate`
  89. Navigate to any URL in the browser
  90. ```javascript
  91. {
  92. "url": "https://stealthbrowser.cloud"
  93. }
  94. ```
  95. #### `browser_screenshot`
  96. Capture screenshots of the entire page or specific elements
  97. ```javascript
  98. {
  99. "name": "screenshot-name", // required
  100. "selector": "#element-id", // optional
  101. "fullPage": true // optional, default: false
  102. }
  103. ```
  104. #### `browser_click`
  105. Click elements on the page using CSS selector
  106. ```javascript
  107. {
  108. "selector": "#button-id"
  109. }
  110. ```
  111. #### `browser_click_text`
  112. Click elements on the page by their text content
  113. ```javascript
  114. {
  115. "text": "Click me"
  116. }
  117. ```
  118. #### `browser_hover`
  119. Hover over elements on the page using CSS selector
  120. ```javascript
  121. {
  122. "selector": "#menu-item"
  123. }
  124. ```
  125. #### `browser_hover_text`
  126. Hover over elements on the page by their text content
  127. ```javascript
  128. {
  129. "text": "Hover me"
  130. }
  131. ```
  132. #### `browser_fill`
  133. Fill out input fields
  134. ```javascript
  135. {
  136. "selector": "#input-field",
  137. "value": "Hello World"
  138. }
  139. ```
  140. #### `browser_select`
  141. Select an option in a SELECT element using CSS selector
  142. ```javascript
  143. {
  144. "selector": "#dropdown",
  145. "value": "option-value"
  146. }
  147. ```
  148. #### `browser_select_text`
  149. Select an option in a SELECT element by its text content
  150. ```javascript
  151. {
  152. "text": "Choose me",
  153. "value": "option-value"
  154. }
  155. ```
  156. #### `browser_evaluate`
  157. Execute JavaScript in the browser console
  158. ```javascript
  159. {
  160. "script": "document.title"
  161. }
  162. ```
  163. ### Resources
  164. 1. **Console Logs** (`console://logs`)
  165. - Access browser console output in text format
  166. - Includes all console messages from the browser
  167. 2. **Screenshots** (`screenshot://<n>`)
  168. - Access PNG images of captured screenshots
  169. - Referenced by the name specified during capture
  170. ## License
  171. This project is licensed under the MIT License - see the [LICENSE](https://github.com/Automata-Labs-team/MCP-Server-Playwright/blob/main/LICENSE) file for details.

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.