Koskamo

playwright-spatial-layout-mcp

This MCP server provides AI agents with geometric spatial awareness of web page layouts by exposing real bounding box mathematics from a live browser via Playwright. It allows agents to detect visual occlusions, verify spatial relationships between elements, and measure viewport reflow, solving issues where agents can read the DOM but cannot see hidden or overlapping elements.

Package and access

Local package with source-attributed installation metadata. Koskamo does not execute packages during review.

playwright-spatial-layout-mcp logo, by vola-treblaCommunity listingLocal stdioSource reviewed; not executedPublished by vola-trebla
You need:npx playwright install chromium
Vendor documentation

What you can do with it

  • Detect if elements are visually occluded by overlays
  • Verify spatial relationships like 'above' or 'left_of'
  • Measure layout shifts across different viewport sizes
  • Extract bounding boxes and visibility status of elements

Source and maintenance

Community listingRegistry 0.2.0MIT
Last repository push
Maintenance checked

Packages and installation

Source-provided package data. Koskamo has not executed or live-probed this package.

playwright-spatial-layout-mcp 0.2.0

npm
playwright-spatial-layout-mcp package definition
{
  "version": "0.2.0",
  "transport": "stdio",
  "identifier": "playwright-spatial-layout-mcp",
  "registryType": "npm"
}

Tools

Reported by the attributed source; not independently observed by Koskamo.

No tool definitions available.

Maintenance history

Public check and source-refresh events. Editorial and ownership records remain private.

  • · repository · passed · metadata changed · updated
  • · backfill · recorded · Pre-expansion baseline; unobserved rich metadata remains unknown

Connect from your client

Each snippet configures the same source-provided package; replace placeholders before use.

This server is operated by the named third party. Listing and endpoint checks are not an endorsement or a security audit. Review the operator's permissions, terms, and data handling before connecting. How listings are checked and corrected.

Cursor

Merge this local stdio configuration, replace every placeholder environment value, and restart Cursor. Koskamo has not executed this package.
Cursor configuration
{
  "mcpServers": {
    "playwright-spatial-layout-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "playwright-spatial-layout-mcp@0.2.0"
      ]
    }
  }
}

Cline

Merge this local stdio configuration, replace every placeholder environment value, and restart Cline. Koskamo has not executed this package.
Cline configuration
{
  "mcpServers": {
    "playwright-spatial-layout-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "playwright-spatial-layout-mcp@0.2.0"
      ]
    }
  }
}

VS Code

Merge this local stdio configuration, replace every placeholder environment value, and restart VS Code. Koskamo has not executed this package.
VS Code configuration
{
  "servers": {
    "playwright-spatial-layout-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "playwright-spatial-layout-mcp@0.2.0"
      ]
    }
  }
}

Claude Desktop

Merge this local stdio configuration, replace every placeholder environment value, and restart Claude Desktop. Koskamo has not executed this package.
Claude Desktop configuration
{
  "mcpServers": {
    "playwright-spatial-layout-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "playwright-spatial-layout-mcp@0.2.0"
      ]
    }
  }
}

Let your agent find its tools

Find servers like playwright-spatial-layout-mcp from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.