# Agent Output Verifier by SarnAI

Agent Output Verifier by SarnAI is an MCP server for Claude Code that checks an AI agent's JSON against a schema and business rules, including invoice totals.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI
- Author: sarnai-dev
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/sarnai-dev/agent-output-verifier
- Updated: 2026-10-24
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/agent-output-verifier-by-sarnai

## What it does

The server returns a pass/fail result, the share of checks passed, hints for fixing failures, and an Ed25519 signature attached to a receipt and attestation that anyone can verify with a public key, independently of the service itself. Checks are deterministic: structure, formats, ranges and rules that compare fields against each other, defined in standard JSON Schema plus optional custom rules.

The first thousand checks each day per caller are free; after that each call costs 0.02 USDC on Base or Solana through x402 v2. A separate lookup reports an AI agent's track record: 0.01 USDC when a score exists, and a free signed answer when there's no history yet. A failing result costs the same as a passing one, since the server runs the identical set of checks either way.

Setup points your client at a hosted MCP endpoint, `https://verify.sarnai.dev/mcp`; there's no local code to run.

## Requirements
- Remote server: `https://verify.sarnai.dev/mcp`

## Install

### Claude Code (native platform)

**Platform CLI: remote server**
```bash
claude mcp add --transport http agent-output-verifier https://verify.sarnai.dev/mcp
```

### Codex

**Platform CLI: remote server**
```bash
codex mcp add agent-output-verifier-by-sarnai --url https://verify.sarnai.dev/mcp
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "agent-output-verifier-by-sarnai": {
            "url": "https://verify.sarnai.dev/mcp"
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "agent-output-verifier-by-sarnai": {
            "type": "http",
            "url": "https://verify.sarnai.dev/mcp"
        }
    }
}
```

### Gemini CLI

**Platform CLI: remote server**
```bash
gemini mcp add -t http agent-output-verifier-by-sarnai https://verify.sarnai.dev/mcp
```

## When to use it
- match an invoice's line items against its stated total before paying it
- validate a tool call's or API response's JSON against a schema before trusting it
- confirm a delivered output meets the agreed schema and rules before releasing payment
- check an AI agent's pass/fail history before relying on its work

## Example prompts
- Validate this invoice JSON against `invoice.schema.json` and the rule that line totals match the sum
- Run this API response through a schema check before I pay for it
- Look up the trust score for agent agent-42 before I assign it this task

## Similar
- [output-contract-enforcer](https://affpapa.org/en/nevibecode/skills/output-contract-enforcer.md) — skill · 141 installs
- [structured-output-extractor](https://affpapa.org/en/nevibecode/skills/structured-output-extractor.md) — skill · 323 installs
- [Agent Discovery Board by SarnAI](https://affpapa.org/en/nevibecode/mcp/agent-discovery-board-by-sarnai.md) — MCP server
- [create-structured-output](https://affpapa.org/en/nevibecode/skills/create-structured-output.md) — skill · 154 installs
- [IBM Granite via x402](https://affpapa.org/en/nevibecode/mcp/ibm-granite-via-x402.md) — MCP server · ★ 284 repo stars
- [minia2a-x402](https://affpapa.org/en/nevibecode/mcp/minia2a-x402.md) — MCP server · ★ 1 repo stars

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
