# UPC & EAN Barcode-to-Product Spec MCP — Trust Center

Last updated: 2026-11-28

## Security Architecture

- **Read-Only & Stateless**: Every MCP tool is annotated `readOnlyHint: true`, `destructiveHint: false`, and `idempotentHint: true`.
- **Zero SSRF Surface**: The server never accepts user-supplied URLs or hostnames. Outbound HTTP requests are strictly hardcoded to `world.openfoodfacts.org`, `world.openbeautyfacts.org`, and `api.upcitemdb.com` with `redirect: "error"` and a 512 KB response cap.
- **Strict Barcode Input Validation**: All inputs are stripped of spaces/hyphens, restricted to 8, 12, 13, or 14 ASCII digits, and checked against the GS1 Modulo-10 check-digit algorithm.
- **Prompt-Injection Isolation**: Crowdsourced product names, descriptions, and ingredient lists are stripped of HTML/script tags, control characters, and invisible Unicode bidi/zero-width characters, and strictly length-capped. Non-`https://` image URLs are dropped.
- **Transport & Request Controls**: Served over HTTPS with `secureHeaders`, explicit CORS headers, and a 32 KB inbound JSON-RPC body size cap on `/mcp`.
- **Auditable Provenance & ODbL Compliance**: Every catalog hit includes `attribution.source_url`, `attribution.license`, `attribution.attribution_text`, `data_completeness`, and a per-provider `fallback_trace`.

## Payment Security

- **Non-Custodial x402 Settlement**: Payments use EIP-3009 USDC authorizations verified and settled by the PayAI Facilitator (`https://facilitator.payai.network`) directly to the operator's self-custody wallet.

## Related Links

- [Documentation](https://upc-barcode-spec-mcp.vercel.app/docs)
- [Privacy Policy](https://upc-barcode-spec-mcp.vercel.app/privacy)
- [Restrictions & Limits](https://upc-barcode-spec-mcp.vercel.app/restrictions)
