- Home
- MCP servers
- Playwright
Playwright
- typescript
0
GitHub Stars
typescript
Language
3 months ago
First Indexed
3 weeks ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
Installation
Add the following to your MCP client configuration file.
Configuration
View docs{
"mcpServers": {
"o0x1024-mcp-playwright-security": {
"command": "npx",
"args": [
"-y",
"@gelenlen/playwright-mcp-server-security"
]
}
}
}You can run a Playwright MCP Server for Security to let an LLM interact with real web pages through a browser, take screenshots, generate test code, scrape content, and execute JavaScript in a real browser environment. This enables automated testing and web automation workflows with secure, structured MCP endpoints.
How to use
Install and configure the Playwright MCP server, then connect your MCP client to the server using the provided command. Once running, you can instruct your MCP-enabled agent to open web pages, take screenshots, generate test code, scrape page content, and execute JavaScript in a controlled Playwright session. Use the server to drive browser-based automation tasks as part of your automation pipelines or copilots.
How to install
Prerequisites: you need Node.js installed on your system. Confirm Node is available by running node -v and npm -v in your terminal.
Install the Playwright MCP server globally using npm.
npm install -g @gelenlen/playwright-mcp-server-security
Configuration to use Playwright Server
Configure your MCP client to load the Playwright MCP server by using a stdio configuration that runs the MCP package via npx with the required arguments.
{
"mcpServers": {
"playwright": {
"command": "npx",
"args": ["-y", "@gelenlen/playwright-mcp-server-security"]
}
}
}
Additional notes
After installation, the ExecuteAutomation Playwright MCP server will be available for use with your GitHub Copilot agent in VS Code. You can also use standard MCP client tooling to manage and start the server as part of your development workflow.
Available tools
open_page
Open a URL in a real Playwright browser and return the page context for further actions.
take_screenshot
Capture a screenshot of the current page and return the image data or a reference.
generate_test_code
Generate test code snippets based on the current page state and interactions.
web_scrape
Extract and return structured data from the loaded page content.
execute_js
Execute arbitrary JavaScript in the real browser context and return results.