Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Playwright

MCP server with a post-install setup script.

[package]
name = "playwright"
description = "Browser automation with Playwright MCP server and CLI tools"
logo = "https://crabtalk.ai/logos/playwright.png"
repository = "https://github.com/microsoft/playwright-cli"
keywords = ["playwright", "browser", "automation", "mcp"]

[package.setup]
script = "npx playwright install chromium"

[mcps.playwright]
command = "npx"
args = ["-y", "@playwright/mcp"]

What’s happening

  • [package] — Standard metadata. repository points to the source repo (used if the package also declares skills).
  • [package.setup] — After install, runs npx playwright install chromium via bash to download the browser binary. This is the script variant of setup.
  • [mcps.playwright] — Registers an MCP server using stdio transport. On install, this config is merged into the user’s crab.toml. The server spawns via npx -y @playwright/mcp.