Playwright MCP Server
Overview
Playwright MCP Server is a server that provides web page content retrieval functionality using the Model Context Protocol (MCP), enabling automated interactions with web pages.
To use the Playwright MCP Server, you can install it via Smithery or manually. After installation, start the server and utilize the provided MCP tools to interact with web pages.
- Page navigation and content retrieval (full and visible) - Detection of interactive elements - Simulation of mouse operations (clicks, movements, scrolling) - Echo functionality for testing - Error handling and configuration flexibility
- Automating web scraping tasks to gather data from websites.
- Testing web applications by simulating user interactions.
- Retrieving content for analysis or reporting purposes.
Add to your AI client
Use these steps to connect Playwright MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"playwright-mcp-server-showfive": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-playwright-mcp-server-showfive"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"playwright-mcp-server-showfive": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-playwright-mcp-server-showfive"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"playwright-mcp-server-showfive": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-playwright-mcp-server-showfive"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"playwright-mcp-server-showfive": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-playwright-mcp-server-showfive"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"playwright-mcp-server-showfive": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-playwright-mcp-server-showfive"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"playwright-mcp-server-showfive": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-playwright-mcp-server-showfive"
]
}
}
}FAQ
Is Playwright MCP Server easy to install?
Yes! You can install it automatically via Smithery or manually using npm.
What programming language is used?
The server is developed in TypeScript.
Can it handle interactive web pages?
Yes! It can detect interactive elements and simulate user actions.