# Facet

> Facet is an open-source MCP server for browser automation. Check pages for responsive design problems and screenshot them on real device sizes. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, macOS, Windows, Linux
- **Website:** https://chndr-prksh.github.io/facet/
- **Repository:** https://github.com/chndr-prksh/facet/tree/HEAD/cli
- **MCP Registry name:** io.github.chndr-prksh/facet
- **Categories:** browser automation, developer tools
- **Listing updated:** 2026-11-15

## About

Facet's command-line side runs headless Chromium with real device emulation, using each device's viewport, pixel ratio, touch support and user agent rather than a resized window. It reports problems per device, so an error that only one device logs shows up as a viewport-specific bug.

Checks cover sideways scrolling and the element responsible, tap targets under 24 by 24 pixels, text under 12 pixels, form fields under 16 pixels that make iOS zoom, viewport meta mistakes, oversized or blurry images, fixed headers that cover too much of a small screen, and console errors. Each finding comes with a suggested fix.

The parent project's catalogue has 290+ device profiles. Presets include popular, phones, tablets, desktops, apple and foldables, and sizes such as 1024x768 can be given directly. It accepts URLs, bare hosts, local dev servers or HTML files, can save PNG screenshots or JSON, and its exit code can gate a pull request in CI. It also runs as an MCP server.

## Features

- **Real device emulation:** Uses each device's viewport, pixel ratio, touch support and user agent in headless Chromium.
- **Layout and accessibility checks:** Finds horizontal scroll, small tap targets, tiny text and iOS zoom triggers.
- **Device presets:** Choose popular, phones, tablets, desktops, foldables and more, or give an exact size.
- **Screenshots and JSON:** Save a PNG per device or print the full report as JSON.
- **CI gating:** Exit code 1 on findings at a chosen level, configurable with --fail-on.
- **Local pages:** Test localhost dev servers or local HTML files.

## Good for

- Let a coding agent verify a layout fix on phone sizes
- Fail a pull request that adds horizontal scrolling
- Capture screenshots across device presets
- Find console errors that appear on one device only

## Install

### Claude Code (Terminal)

```sh
claude mcp add facet -- npx -y @chandra14/facet-check
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "facet": {
      "command": "npx",
      "args": [
        "-y",
        "@chandra14/facet-check"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "facet": {
      "command": "npx",
      "args": [
        "-y",
        "@chandra14/facet-check"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "facet": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@chandra14/facet-check"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "facet": {
      "command": "npx",
      "args": [
        "-y",
        "@chandra14/facet-check"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "facet": {
      "command": "npx",
      "args": [
        "-y",
        "@chandra14/facet-check"
      ]
    }
  }
}
```

## FAQ

### How do I run it?

Run npx @chandra14/facet-check localhost:3000, or install it globally with npm.

### Which devices does it test?

A preset such as popular by default, or any device name, id or size you list.

### Can it fail a build?

Yes. It exits 1 when a finding reaches the chosen level, set with --fail-on.

### Does it use a real browser?

Yes, headless Chromium with device emulation.

### Is Facet free?

Yes. Facet is open source, so you can use and self-host it for free.

### How do I add Facet to Claude Code?

Run this command in your terminal: claude mcp add facet -- npx -y @chandra14/facet-check

### What are the best alternatives to Facet?

The closest alternatives to Facet are REA, Browser Use, Scrapling MCP Server, Codebase Memory and GitHub.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Browser Use](https://ai-powered.com/mcp/browser-use): Browser Use is a freemium MCP server for browser automation.
- [Scrapling MCP Server](https://ai-powered.com/mcp/scrapling-mcp-server): Scrapling MCP Server is an open-source MCP server for web search and scraping.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/facet
