# TestivAI

> TestivAI is a free MCP server for developer tools. Local visual-regression review for AI coding agents, with no API key. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Free
- **Platforms:** CLI, Self-hosted
- **Repository:** https://github.com/testivai/testivai-oss/tree/HEAD/packages/mcp
- **MCP Registry name:** ai.testiv/mcp
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-23

## About

After an agent edits UI code and runs a Playwright suite, this server reads the visual-report results and tells the agent what changed on screen. Each snapshot gets a one-line verdict such as passed, size changed, rendering drift, likely render noise, style-only change or structural change, so the agent can separate real changes from environment noise.

The verdicts combine pixel diffs with DOM and computed-style checks. Snapshots that share the same signal are grouped, and an unhealthy capture, for example a web font that failed to load, is called out before anything else. For one snapshot the agent can ask for layered evidence and for the baseline, current and diff images, with changed regions cropped at native scale.

Approval is deliberately a human step. The approve tools are meant to run only after a person confirms, and in Claude Code the client prompts on every approve call unless you turn that off. It runs in local mode only, reading the project from its working directory.

## Features

- **Per-snapshot verdicts:** Returns a one-line verdict for every snapshot and groups snapshots that share the same signal.
- **Layered evidence:** Explains one snapshot with pixel regions, element attribution, DOM and style signals, capture environment and capture health.
- **Diff images for the agent:** Returns baseline, current and diff images, cropping changed regions at native scale when the page is tall.
- **Baseline management:** Lists committed baselines and promotes reviewed captures to baselines after a human confirms.
- **Review prompts:** Ships review-visual-changes and triage-visual-diff prompts that walk the agent through a full review.

## Good for

- Check whether a UI refactor changed what renders before opening a pull request
- Tell render noise from a real style change after a browser or OS update
- Have an agent triage every diff from a Playwright run
- Approve intended visual changes from the chat after reviewing them

## Install

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

```sh
claude mcp add mcp -- npx -y @testivai/mcp
```

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": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@testivai/mcp"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@testivai/mcp"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@testivai/mcp"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@testivai/mcp"
      ]
    }
  }
}
```

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 mcp -- npx -y @testivai/mcp
```

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

```toml
[mcp_servers.mcp]
command = "npx"
args = ["-y", "@testivai/mcp"]
```

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

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@testivai/mcp"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user mcp npx -- -y @testivai/mcp

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

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@testivai/mcp"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@testivai/mcp"
      ]
    }
  }
}
```

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": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@testivai/mcp"
      ]
    }
  }
}
```

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@testivai/mcp"
      ]
    }
  }
}
```

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": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@testivai/mcp"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@testivai/mcp"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@testivai/mcp"
      ]
    }
  }
}
```

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": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@testivai/mcp"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 2 of 7 tools change data. From the server's own tool labels and tool names; not verified by us.

- `get_visual_results` (name suggests: reads): Reads visual-report/results.json and returns a one-line verdict per snapshot.
- `explain_snapshot` (name suggests: reads): Layered evidence for one snapshot: pixel, element, DOM/style, environment and capture health.
- `get_report` (name suggests: reads): Returns the raw results.json payload.
- `get_diff` (name suggests: reads): Returns baseline, current and diff images for one snapshot.
- `list_baselines` (name suggests: reads): Lists committed baselines under .testivai/baselines/.
- `approve_snapshot` (name suggests: changes): Promotes a reviewed capture to a committed baseline, after a human confirms.
- `approve_all` (name suggests: changes): Promotes all reviewed captures to baselines, after a human confirms.

## FAQ

### Does TestivAI need an API key or account?

No. The README describes local mode only, with no account and no API key.

### Can the agent approve baselines by itself?

The approve tools are meant for after a human says yes. Claude Code asks on every approve call unless you start the server with --no-approval-prompt or set mcpApprovalPrompt to false.

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

Run claude mcp add testivai -- npx -y @testivai/mcp. Other clients use npx with the arguments -y and @testivai/mcp.

### Where does TestivAI read results from?

From visual-report/results.json in the project directory, and committed baselines under .testivai/baselines/.

### Is TestivAI free?

Yes. TestivAI is free to use.

### What are the best alternatives to TestivAI?

The closest alternatives to TestivAI are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

## 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.
- [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.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers 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.

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