playwright-sse-mcp-server
by torohash
This service provides Playwright as an MCP (Model Context Protocol) server. By using this server, you can utilize Playwright's functionalities from an MCP client.
Last updated: N/A
What is playwright-sse-mcp-server?
This is a server that provides Playwright functionality as an MCP server, allowing MCP clients to control Playwright.
How to use playwright-sse-mcp-server?
The server is set up and run using Docker Compose. Configuration involves setting up a Docker network named 'mcp-network', cloning the repository, and running docker compose up --build
. Connections are made via SSE, with specific URLs provided for different environments (same network container, host machine, Roo Code).
Key features of playwright-sse-mcp-server
Provides Playwright functionality via MCP
Uses Server-Sent Events for communication
Dockerized for easy deployment
Supports custom port configuration
Includes helper scripts for easy start/stop/logs
Use cases of playwright-sse-mcp-server
Automated browser testing
Web scraping
Roo Code integration for browser automation
Remote Playwright control via MCP
FAQ from playwright-sse-mcp-server
What are the prerequisites for running this server?
What are the prerequisites for running this server?
Docker and Docker Compose must be installed. Also, a Docker network named 'mcp-network' should be created.
How do I start the server?
How do I start the server?
Clone the repository and run docker compose up --build
in the project's root directory.
How do I specify a custom port?
How do I specify a custom port?
Set the PORT
environment variable before running docker compose up --build
(e.g., PORT=4000 docker compose up --build
).
How do I connect to the server from a container in the same network?
How do I connect to the server from a container in the same network?
Use the URL playwright-sse-mcp-server:${PORT}/sse
, replacing ${PORT}
with the server's port.
How do I connect to the server from Roo Code?
How do I connect to the server from Roo Code?
Configure the MCP settings in Roo Code to point to the server's URL (http://localhost:${PORT}/sse
or http://playwright-sse-mcp-server:3002/sse
depending on the environment).