Skip to main content
Glama
README.md
# agentproof-mcp

**Zero-dependency CLI and MCP server for auditing e-commerce storefronts for agentic commerce readiness.**

Check any domain in seconds against the 7 machine-readable protocols AI shopping agents (ChatGPT, Claude, Perplexity, Meta, and browser WebMCP agents) actually require to discover, verify, and check out:

- `/.well-known/ucp` — Universal Commerce Protocol manifest (`2026-08-25`)
- `/.well-known/mcp.json` — MCP Server Card (live catalog & checkout tools)
- `/llms.txt` — LLM-readable catalog and policy index
- `/agents.md` — Agent shopping instructions & skill pointers
- `/robots.txt` — RFC 9309 crawl access for `GPTBot`, `OAI-SearchBot`, `ChatGPT-User`, `ClaudeBot`, `PerplexityBot`, `Meta-ExternalAgent`
- **WebMCP** — Storefront `navigator.modelContext` / `shopify.webmcp` / declarative `toolname=`
- **Product JSON-LD** — PDP `Product`, `Offer`, `availability`, `shippingDetails`, and `hasMerchantReturnPolicy`

Built on **Python 3.9+ stdlib only** (`0` third-party pip dependencies). Follows `301`/`302`/`303`/`307`/`308` redirects, rejects HTML SPA catch-alls masquerading as JSON/Markdown, and auto-discovers live product pages via `/products.json` or storefront HTML.

**Live Web Scanner:** [agentproof-live.marnixpluim.workers.dev](https://agentproof-live.marnixpluim.workers.dev/)

---

## December 2026 Benchmark (83 High-Ad-Spend Shopify Stores)

We audited **83 live Shopify brands** representing **$498.4M/mo** in combined estimated revenue and **45,274** active Meta ads on **December 6, 2026** (`83/83` valid, `0` inconclusive, `29/83` redirect chains followed cleanly):

| Protocol Surface | Passing | Failing | Key Finding |
|---|---:|---:|---|
| `/.well-known/mcp.json` | 0 / 83 (0.0%) | **83 / 83 (100.0%)** | Zero brands expose an MCP Server Card |
| Product JSON-LD (`shippingDetails`) | 8 / 83 (9.6%) | **75 / 83 (90.4%)** | Agents cannot compute landed shipping cost |
| Product JSON-LD (`hasMerchantReturnPolicy`) | 14 / 83 (16.9%) | **69 / 83 (83.1%)** | Agents cannot verify return windows pre-checkout |
| WebMCP (`navigator.modelContext`) | 78 / 83 (94.0%) | **5 / 83 (6.0%)** | Broken on custom/headless & WAF-gated stores |
| `/agents.md` | 79 / 83 (95.2%) | **4 / 83 (4.8%)** | Missing on `carawayhome.com`, `livesans.com`, `equipfoods.com`, `funpunch.com` |
| `/llms.txt` | 80 / 83 (96.4%) | **3 / 83 (3.6%)** | `404` on `hexclad.com` ($22.5M/mo) & `carawayhome.com` ($15.4M/mo) |
| `/.well-known/ucp` | 82 / 83 (98.8%) | **1 / 83 (1.2%)** | SPA HTML catch-all on `funpunch.com` (3,631 active ads) |
| `/robots.txt` (6 AI crawlers) | 83 / 83 (100.0%) | **0 / 83 (0.0%)** | All 83 allow core AI crawlers |

- **Mean score:** `76.1 / 100` (Median `78`, Range `18–85`, **0 / 83** reach Grade A `>= 90`).
- **The Headless Tax:** Every store scoring `< 68/100` (`funpunch.com` 18, `equipfoods.com` 50, `carawayhome.com` 53, `livesans.com` 58, `hexclad.com` 66) overrides or proxies past Shopify's native defaults.

---

## Install (1 Command)

### Run instantly with `uvx`
```bash
uvx --from "git+https://github.com/marnixpluim/agentproof-mcp.git" agentproof-mcp audit carawayhome.com
```

### Install via `pip`
```bash
pip install "git+https://github.com/marnixpluim/agentproof-mcp.git"
```

### Local editable install (from this repo)
```bash
pip install -e packages/agentproof-mcp
```

---

## CLI Usage

```bash
# Single-store human-readable audit
agentproof-mcp audit carawayhome.com

# Machine-readable JSON output + monthly leak estimate
agentproof-mcp audit nobltravel.com --monthly-revenue 24979299 --json

# CI/CD readiness gate (exits 2 if score < 80)
agentproof-mcp audit yourstore.com --min-score 80

# Concurrent batch audit across a client portfolio
agentproof-mcp batch carawayhome.com nobltravel.com hexclad.com --concurrency 6
```

Example output (`agentproof-mcp audit carawayhome.com`):

```text
AgentProof Audit  carawayhome.com
Score:            [#############-----------] 53/100  (Grade D | shopify)

Protocol Matrix:
  [PASS] UCP Manifest     20/20  (/.well-known/ucp       HTTP 200 | valid_ucp_2026-08-25)
  [PASS] AI Crawlers      18/18  (/robots.txt            HTTP 200 | all_ai_crawlers_allowed)
  [FAIL] MCP Server Card   0/15  (/.well-known/mcp.json  HTTP 404 | missing_or_non_200)
  [PASS] Product JSON-LD  15/15  (Offer/Shipping/Returns HTTP 200 | complete_product_jsonld)
  [FAIL] llms.txt          0/12  (/llms.txt              HTTP 404 | missing_or_non_200)
  [FAIL] agents.md         0/10  (/agents.md             HTTP 404 | missing_or_non_200)
  [FAIL] WebMCP            0/10  (navigator.modelContext HTTP 200 | no_webmcp_markers)
```

---

## MCP Server Setup (Claude Code & Cursor)

Exposes two JSON-RPC 2.0 stdio tools: `audit_storefront` and `batch_audit`.

### Claude Code
```bash
claude mcp add agentproof -- agentproof-mcp serve
```

### Cursor (`.cursor/mcp.json`) or Claude Desktop
```json
{
  "mcpServers": {
    "agentproof": {
      "command": "agentproof-mcp",
      "args": ["serve"]
    }
  }
}
```

Or without global installation via `uvx`:

```json
{
  "mcpServers": {
    "agentproof": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/marnixpluim/agentproof-mcp.git",
        "agentproof-mcp",
        "serve"
      ]
    }
  }
}
```

---

## Scoring Rubric (0–100)

| Check | Max Points | Pass Criteria |
|---|---:|---|
| `/.well-known/ucp` | 20 | `HTTP 200` non-HTML JSON with `ucp.version` + `services`/`payment_handlers` |
| `/robots.txt` AI Crawlers | 18 | RFC 9309 `/` access for all 6 AI crawlers (`-3` pts per blocked bot) |
| `/.well-known/mcp.json` | 15 | `HTTP 200` non-HTML JSON MCP Server Card (`serverInfo`, `tools`, or `transport`) |
| Product JSON-LD | 15 | `Product`+`Offer` (`5`), `availability` (`3`), `shippingDetails` (`4`), `hasMerchantReturnPolicy` (`3`) |
| `/llms.txt` | 12 | `HTTP 200` non-HTML text/markdown (`>= 30` chars) |
| `/agents.md` | 10 | `HTTP 200` non-HTML text/markdown (`>= 30` chars) |
| WebMCP | 10 | `navigator.modelContext`, `shopify.webmcp`, or declarative `toolname=` on storefront HTML |

---

## Open-Source Diagnostic + Auto-Patch Kit

The `agentproof-mcp` diagnostic CLI and MCP server are **100% open-source (MIT)** — run unlimited audits locally, in CI, or inside your AI coding agent.

Want to inspect a store visually in your browser or ship the missing protocol files in 5 minutes?

- **Free Interactive Live Scanner:** `https://agentproof-live.marnixpluim.workers.dev/?store=<your-domain>`
- **Instant Fix Pack (`$49` one-time):** Ready-to-deploy 6-file Auto-Patch Kit (`ucp.json`, `mcp.json`, `llms.txt`, `robots.txt` AI block, Cloudflare Edge Worker proxy, Shopify Liquid WebMCP snippet) — [Get Instant Fix Pack](https://whop.com/checkout/ch_P0qqn7gzWd68elQ/)
- **Pro Monitor (`$99/mo`):** Continuous regression alerts across theme deploys, WAF rules, and schema changes — [Start Pro Monitor](https://whop.com/checkout/ch_lClPhb7tsGehR57/)
- **Agency 10-Store Sprint (`$499` one-time):** Multi-store patch kits & client-ready readiness reports for Shopify Plus agencies — [Book 10-Store Sprint](https://whop.com/checkout/ch_Qp6ZC7V80FvmbRb/)

## License

MIT — see [LICENSE](LICENSE).