# ghost-qa

> ghost-qa is a free MCP server for browser automation. Headless browser QA loop that scores a running web app for coding agents. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Free
- **Platforms:** CLI
- **Repository:** https://github.com/avivgerz-hue/ghost-qa
- **MCP Registry name:** io.github.avivgerz-hue/ghost-qa
- **Categories:** [browser automation](https://ai-powered.com/categories/browser-automation), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-23

## About

Coding agents often report a feature as done without ever opening it in a browser. ghost-qa closes that gap: it launches headless Chromium via Playwright against a dev server, crawls internal routes and clicks through interactive controls, then hands back a structured bug report the agent can act on.

Each run covers three viewports (desktop 1440x900, tablet 768x1024, mobile 375x812) in light and dark colour schemes. Eight inspection traps watch console and framework errors such as React hydration mismatches, failed or CORS-blocked network calls, layout overflow and overlapping controls, accessibility problems, and Core Web Vitals. The findings roll up into a 0-100 health score with an A+ to F grade.

The report is written as GHOST-QA-REPORT.md plus a PATCH-PROMPT.md with exact selectors, and a compare command diffs two runs to show regressions. An init command installs a skill and appends a verify-before-done rule to CLAUDE.md, AGENTS.md and .cursorrules.

## Features

- **Multi-viewport crawling:** Crawls internal routes at desktop, tablet and mobile sizes in both light and dark schemes.
- **Eight inspection traps:** Captures console, network, layout, accessibility and performance failures from the live page.
- **Health score and grade:** Combines findings into a deterministic 0-100 score graded A+ to F.
- **Self-healing bug report:** Writes a markdown report and a patch prompt with exact selectors for the agent to fix.
- **Regression diffing:** Compares two JSON runs to show what got better and what newly broke.
- **Agent protocol installer:** Adds a skill file and a verify-in-browser rule to common agent instruction files.

## Good for

- Check a local dev server in a real browser before an agent declares a task finished
- Catch React hydration errors and broken API calls after an AI-generated change
- Find mobile layout overflow and small touch targets
- Gate a CI or agent loop on a minimum QA score
- Prove a fix with a before-and-after comparison

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add ghost-qa -- npx -y ghost-qa
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "ghost-qa": {
      "command": "npx",
      "args": [
        "-y",
        "ghost-qa"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "ghost-qa": {
      "command": "npx",
      "args": [
        "-y",
        "ghost-qa"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

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

```json
{
  "mcpServers": {
    "ghost-qa": {
      "command": "npx",
      "args": [
        "-y",
        "ghost-qa"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "ghost-qa": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "ghost-qa"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add ghost-qa -- npx -y ghost-qa
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.ghost-qa]
command = "npx"
args = ["-y", "ghost-qa"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "ghost-qa": {
      "command": "npx",
      "args": [
        "-y",
        "ghost-qa"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user ghost-qa npx -- -y ghost-qa

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "ghost-qa": {
      "command": "npx",
      "args": [
        "-y",
        "ghost-qa"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "ghost-qa": {
      "command": "npx",
      "args": [
        "-y",
        "ghost-qa"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "ghost-qa": {
      "command": "npx",
      "args": [
        "-y",
        "ghost-qa"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "ghost-qa": {
      "command": "npx",
      "args": [
        "-y",
        "ghost-qa"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "ghost-qa": {
      "command": "npx",
      "args": [
        "-y",
        "ghost-qa"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "ghost-qa": {
      "command": "npx",
      "args": [
        "-y",
        "ghost-qa"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "ghost-qa": {
      "command": "npx",
      "args": [
        "-y",
        "ghost-qa"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

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

```json
{
  "mcpServers": {
    "ghost-qa": {
      "command": "npx",
      "args": [
        "-y",
        "ghost-qa"
      ]
    }
  }
}
```

## FAQ

### How do I run ghost-qa?

Start your app, install Chromium with npx playwright install chromium, then run npx -y ghost-qa test http://localhost:3000.

### Does ghost-qa need test scripts?

No. The README says it needs no test scripts or config; it crawls the live DOM itself.

### Which agents does init support?

It writes a Claude Code skill and appends its protocol to CLAUDE.md, AGENTS.md and .cursorrules, covering Claude Code, Codex, Cursor and Windsurf workflows.

### What does a passing run look like?

The loop ends at a score of 95-100, no critical or major findings left, and no new regressions.

### Is ghost-qa free?

Yes. ghost-qa is free to use.

### How do I add ghost-qa to Claude Code?

Run this command in your terminal: claude mcp add ghost-qa -- npx -y ghost-qa

### What are the best alternatives to ghost-qa?

The closest alternatives to ghost-qa are REA, Browser Use, Scrapling MCP Server, Context7 and Chrome DevTools MCP.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## 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.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [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): 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.

---
Source: https://ai-powered.com/mcp/ghost-qa
