SSyncDev

Playwright MCP Server

Geometric vision for AI agents: bounding boxes, occlusion, viewport reflow

Local serverstdioTypeScript

What is the Playwright MCP Server?

Geometric vision for AI agents: bounding boxes, occlusion, viewport reflow

What you get

An MCP server that gives AI agents geometric spatial awareness of web page layouts using Playwright.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
extract_bounding_boxesReturns position, size, z-index, and viewport visibility for one or more elements.
detect_visual_occlusionChecks if one element physically overlaps another by computing bounding box intersection.
verify_spatial_relationshipsValidates a set of layout rules and returns pass/fail with a human-readable reason per rule.
compute_viewport_reflowMeasures how element positions and sizes change across multiple viewport sizes.

How to install the Playwright MCP Server

{
  "mcpServers": {
    "playwright-spatial-layout-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "playwright-spatial-layout-mcp"
      ]
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Example prompts to try

  • “Use Playwright to extract bounding boxes.”
  • “Use Playwright to detect visual occlusion.”
  • “Use Playwright to verify spatial relationships.”

Frequently asked questions

Geometric vision for AI agents: bounding boxes, occlusion, viewport reflow Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.