mirror of
https://github.com/microsoft/playwright-mcp.git
synced 2026-02-03 21:03:11 +00:00
docs: running the Playwright-MCP server in docker (#1074)
This commit is contained in:
13
README.md
13
README.md
@@ -434,6 +434,19 @@ And then in MCP client config, set the `url` to the HTTP endpoint:
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Or If you prefer to run the container as a long-lived service instead of letting the MCP client spawn it, use:
|
||||||
|
|
||||||
|
```
|
||||||
|
docker run -d -i --rm --init --pull=always \
|
||||||
|
--entrypoint node \
|
||||||
|
--name playwright \
|
||||||
|
-p 8931:8931 \
|
||||||
|
mcr.microsoft.com/playwright/mcp \
|
||||||
|
cli.js --headless --browser chromium --no-sandbox --port 8931
|
||||||
|
```
|
||||||
|
|
||||||
|
The server will listen on host port **8931** and can be reached by any MCP client.
|
||||||
|
|
||||||
You can build the Docker image yourself.
|
You can build the Docker image yourself.
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user