Ghost Inspector MCP logo

Ghost Inspector MCP

Inspect, diagnose, validate, and cautiously update Ghost Inspector browser tests through MCP tools.

Install Ghost Inspector MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "ghost-inspector-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "ghost-inspector-mcp"
      ],
      "env": {
        "GHOST_INSPECTOR_ALLOW_WRITES": "YOUR_VALUE_HERE",
        "GHOST_INSPECTOR_ALLOW_RUNS": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env GHOST_INSPECTOR_ALLOW_WRITES=YOUR_VALUE_HERE --env GHOST_INSPECTOR_ALLOW_RUNS=YOUR_VALUE_HERE --transport stdio ghost-inspector-mcp -- npx -y ghost-inspector-mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

Automated check passed— started and listed 22 tools correctly ().

Overview

The ghost-inspector-mcp MCP server connects AI agents to the Ghost Inspector API for inspecting, diagnosing, validating, and updating end-to-end browser tests. It exposes read tools for account inventory, test definitions, failures, history, module dependencies, and screenshot comparisons, plus guarded tools for changes and real test runs. Reach for it when you need agent-assisted test triage or controlled maintenance without relying on the Ghost Inspector web UI. Writes, test execution, and on-demand validation use explicit safety gates.

Use cases

  • Triage failing tests by separating stale results from current regressions
  • Trace shared module changes across dependent browser tests
  • Diagnose selector failures with step ownership and execution evidence
  • Validate proposed test repairs before saving them
  • Update suites, tests, and screenshot baselines behind explicit gates

Key features

  • Ghost Inspector API access through MCP
  • Failure diagnosis and test-history analysis
  • Module dependency and blast-radius inspection
  • Guarded test and suite mutations
  • Unsaved test validation and controlled execution
  • Screenshot comparison and baseline management

Tools22

What Ghost Inspector MCP lets your agent do. Expand a tool for its parameters.

Verified live~11.6k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

18/18 checks healthy over the last 84d

What it can do

From the 22 tools this server returned when we ran it; 22 declare their own safety hints.

Runs commands · 9Can delete or modify data · 4Writes files · 1Handles credentials · 6Makes network requests · 22Read-only tools · 10
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceNot published
Package age89 days
Maintainers1

Observed 2026-11-03 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 10d ago via OSV.dev · ghost-inspector-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads296Package downloads in the last 30 days.
Last commit2mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed22Callable tools this server registers over MCP.

How Ghost Inspector MCP works

What ghost-inspector-mcp does

The ghost-inspector-mcp MCP server gives an MCP-compatible agent access to Ghost Inspector end-to-end browser tests through the Ghost Inspector API. It covers account discovery, test search, suite and folder inventory, test definitions, execution history, failure diagnosis, module dependency analysis, screenshot comparison, repair proposals, and controlled updates.

Its read-oriented tools help distinguish current failures from stale results, identify tests that pass without meaningful assertions, trace shared-module impact, and explain which step or module owns a failure. The server also exposes tools for moving suites and tests, creating suites, duplicating existing tests, updating definitions, accepting screenshot baselines, and running saved tests.

How it works

The ghost-inspector-mcp MCP server presents all of its tools to the agent, including operations that are gated. A gated operation remains visible but refuses the call when its opt-in is absent, so an agent does not need to infer capabilities from a missing tool.

Read operations can inspect the account and test data. Before editing, gi_get_test provides the stored definition and its dateUpdated value, which gi_update_test uses as a concurrency token. gi_propose_repair creates a change proposal without applying it, while gi_plan_test shows the expanded execution plan, including modules and variables, without starting a browser.

The validation and run tools have different purposes. gi_validate_test executes a proposed definition against a real URL but does not save it. gi_run_test executes a test exactly as stored and waits for its result. Both can be constrained by safety checks, including confirmation for tests that submit forms.

Setup and configuration

The server requires access to a Ghost Inspector API key. The README identifies two opt-in environment variables for side effects: GHOST_INSPECTOR_ALLOW_WRITES must be exactly true for write operations, and GHOST_INSPECTOR_ALLOW_RUNS must be exactly true for gi_run_test. Without the relevant setting, the operation refuses without changing anything and identifies the variable that is missing. gi_whoami reports API-key access, reachable organizations, and the state of these gates.

Tools and capabilities

The ghost-inspector-mcp MCP server includes tools for:

  • Listing account structure and locating tests by metadata or step content.
  • Inspecting definitions, imported modules, transitive dependencies, and broken references.
  • Grouping failures, reviewing history, detecting stale results, and diagnosing failing steps.
  • Checking vacuous tests and screenshot comparison status or pixel-level differences.
  • Planning and proposing repairs before applying an update.
  • Updating tests, moving suites or tests, creating suites, duplicating tests, and accepting a new screenshot baseline.
  • Running saved tests or validating unsaved definitions.

Limitations and notes

There is no deletion capability. The project excludes deletion because suite deletion cascades to its tests without undo, while test deletion lacks version history for restoration.

A new test cannot be created from nothing through the Ghost Inspector API. The supported alternative is gi_duplicate_test, which requires an existing source test and can place and rename the copy. Duplicated tests have their schedule cleared by default.

Historical analysis depends on Ghost Inspector's retained results. The history tool reports how far back it could inspect and whether retention or the requested range ended the search. Screenshot baseline acceptance is restricted to the latest, finished result that was actually inspected and has a failing comparison.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Ghost Inspector MCP

ghost-inspector-mcp is an MCP server that connects AI agents to the Ghost Inspector API. Its main tools inspect account inventory, tests, failures, history, modules, and screenshots, while guarded tools validate, update, duplicate, move, or run browser tests. It also proposes repairs without applying them.

Set GHOST_INSPECTOR_ALLOW_WRITES exactly to true to enable write operations. Without that opt-in, the six write tools refuse without making changes. The server also requires Ghost Inspector API access, and gi_whoami reports whether the write gate is open.

Set GHOST_INSPECTOR_ALLOW_RUNS exactly to true, then call gi_run_test. The tool runs a saved test and waits for its verdict. Tests that submit a form are refused unless confirmation is provided on that call.

No. Use gi_duplicate_test with an existing source test instead; it copies the test into a suite, can rename it and change its start URL, and clears the copy's schedule by default.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewGhost Inspector MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/ghost-inspector-mcp?style=directory)](https://allmcps.com/mcp/ghost-inspector-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/ghost-inspector-mcp"><img src="https://allmcps.com/api/badge/ghost-inspector-mcp?style=directory" alt="Ghost Inspector MCP on AllMCPs" /></a>