Browser automation with Playwright for LLMs: navigate pages, interact with elements and run JavaScript.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add playwright-plus-python -- uv --directory path/to/your/local/playwright-server run playwright-server~/.codex/config.toml
[mcp_servers.playwright-plus-python]
command = "uv"
args = ["--directory", "path/to/your/local/playwright-server", "run", "playwright-server"]
# codex mcp add playwright-plus-python -- uv --directory path/to/your/local/playwright-server run playwright-server~/.cursor/mcp.json
{
"mcpServers": {
"playwright-plus-python": {
"command": "uv",
"args": [
"--directory",
"path/to/your/local/playwright-server",
"run",
"playwright-server"
]
}
}
}.vscode/mcp.json
{
"servers": {
"playwright-plus-python": {
"type": "stdio",
"command": "uv",
"args": [
"--directory",
"path/to/your/local/playwright-server",
"run",
"playwright-server"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"playwright-plus-python": {
"command": "uv",
"args": [
"--directory",
"path/to/your/local/playwright-server",
"run",
"playwright-server"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"playwright-plus-python": {
"command": "uv",
"args": [
"--directory",
"path/to/your/local/playwright-server",
"run",
"playwright-server"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"playwright-plus-python": {
"command": "uv",
"args": [
"--directory",
"path/to/your/local/playwright-server",
"run",
"playwright-server"
]
}
}
}