# UPC & EAN Barcode-to-Product Spec MCP

> Convert UPC/EAN/GTIN barcodes into product specs and eBay/Amazon listing drafts via MCP + x402.

- name: io.github.RizkySugiharto/upc-barcode-spec-mcp
- version: 1.0.0
- connection class: R0 (autonomous)
- trust: 94/100
- quality: 89/100 (new)
- charges per call: the server says so (`` validate_barcodes ``)
- owner: not claimed
- descriptor: https://api.protogrid.dev/v1/servers/io.github.RizkySugiharto%2Fupc-barcode-spec-mcp
- tools: https://api.protogrid.dev/v1/servers/io.github.RizkySugiharto%2Fupc-barcode-spec-mcp/tools

**An agent can connect right now, no human step.** Remote endpoint, no authentication, reachable on the last probe.

## Connection (mcpServers)

```json
{
  "mcpServers": {
    "upc-barcode-spec-mcp": {
      "type": "http",
      "url": "https://upc-barcode-spec-mcp.vercel.app/mcp"
    }
  }
}
```


## Trust

- hygiene: 100
- liveness: 100
- freshness: 100
- provenance: 80
- drivers: +repository +namespace-matches-repo +reachable +uptime-100% +updated-1d-ago
- Derived from observable signals (official registry feed and our own credential-free probes); no code audit performed.

## Quality 89/100 (new)

### protocol: 75 (weight 25)

- warn `protocol.modern`: newest supported version is 2025-11-25; 2026-07-28 not supported, older versions are deprecated until 2027-07-28
- n/a `protocol.stateless`: only applies to 2026-07-28 servers
- pass `protocol.transport`: streamable HTTP
- n/a `protocol.list_ttl`: only applies to 2026-07-28 servers

### authorization: n/a (weight 15)

- n/a `auth.prm`, `auth.as_metadata`, `auth.cimd`: no remote uses OAuth
- n/a `auth.secret_in_url`: no templated URL

### tool hygiene: 100 (weight 30)

- pass `tools.descriptions`: every tool has a description
- pass `tools.description_length`: descriptions are concise
- pass `tools.schemas`: every tool has an object input schema
- pass `tools.annotations`: 3 of 3 tools declare readOnlyHint or destructiveHint
- pass `tools.directory_hints`: every tool declares readOnlyHint, destructiveHint, idempotentHint and openWorldHint
- pass `tools.token_cost`: about 1,085 tokens to load every tool
- pass `tools.api_dump`: tools are not a one-to-one API dump
- pass `tools.hidden_text`: no hidden text in tool, prompt or resource definitions
- pass `tools.poisoning`: no instructions aimed at the model in tool, prompt or resource definitions

### stability: n/a (weight 15)

- n/a `stability.changes`, `stability.rug_pull`, `stability.new_links`: tool history recorded for 0 of the 7 days needed

### dependencies: n/a (weight 15)

- n/a `deps.known_vulns`, `deps.mcp_sdk_version`, `deps.resolvable`: no npm or PyPI package

- tools: 3, about 1,085 tokens to load them all
- tool set hash: dc722af04a86a725612cdf2d35198158
- badge: [![protogrid quality](https://protogrid.dev/badge/io.github.RizkySugiharto/upc-barcode-spec-mcp.svg)](https://protogrid.dev/servers/io.github.RizkySugiharto/upc-barcode-spec-mcp)
- Checks run on what our credential-free, read-only probes observe; tools are never called and no code audit is performed.

### Definition changes

_No changes to tool, prompt or resource template definitions recorded._

## Remotes

- https://upc-barcode-spec-mcp.vercel.app/mcp (streamable-http, auth none, reachable true, uptime30d 1)

## Packages

_none_

## Tools (3)

- `batch_lookup_barcodes`: Resolves 2–5 UPC/EAN/GTIN barcodes in one call ($0.01 USDC flat on Base via x402 PayAI = $0.002/barcode at 5; billed regardless of hit rate). Usage: call validate_barcodes (free) first to filter invalid scans; use lookup_barcode_spec ($0.005) instead for a single barcode. Pipeline: deduplicates inputs, rejects invalid check digits locally with no upstream call, queries OpenFoodFacts and OpenBeautyFacts concurrently, and routes misses to UPCitemdb (capped at 2 requests/batch under circuit-breaker limits). Parameters: barcodes accepts 2–5 raw strings (spaces/hyphens stripped); bypass_cache (default false) reuses warm-instance LRU cache—set true only to force fresh upstream fetches, consuming rate-limit budget without changing the $0.01 fee. Returns summary (requested, found, not_found, invalid, cache_hits, sources_used) and per-item specs, eBay/Amazon listing drafts, ODbL attribution, and fallback_trace; misses or invalid items return found: false, product: null, and error_code without failing the batch.
- `lookup_barcode_spec`: Resolves a single UPC-A (12), EAN-13 (13), EAN-8 (8), or GTIN-14 (14) barcode via a deterministic catalog cascade (OpenFoodFacts → OpenBeautyFacts → UPCitemdb) with a warm-instance LRU cache and UPCitemdb circuit breaker. Paid: $0.005 USDC on Base via x402 PayAI, billed regardless of hit rate. Usage: call validate_barcodes (free) first to drop invalid scans; use batch_lookup_barcodes ($0.01 flat) instead for 2–5 barcodes. Parameters: barcode accepts raw scanned text (spaces/hyphens stripped; invalid check digits fail locally with no upstream call); bypass_cache (default false) reuses cached hits/misses—set true only to force fresh upstream calls against rate limits. Returns normalized product specs, eBay/Amazon listing drafts, data_completeness (0.00–1.00), ODbL attribution, and fallback_trace; misses or invalid inputs return found: false, product: null, error_code, and fallback_trace.
- `validate_barcodes`: Local, no-network GS1 barcode pre-validator ($0.00, no x402 payment). ALWAYS call this before paid lookups to filter bad scans, then route valid results to lookup_barcode_spec (1 barcode) or batch_lookup_barcodes (2–5 barcodes); does not fetch product data. Accepts 1–50 raw strings (1–32 chars each; spaces/hyphens stripped automatically), detects format (EAN-8, UPC-A, EAN-13, GTIN-14), verifies GS1 Modulo-10 check digits, and counts duplicates. Returns { summary: { total_received, valid_unique_count, invalid_count, duplicate_count }, results: [{ input, normalized, gtin14, format, valid, error_code }] } in input order. Malformed barcodes do not throw; they return valid: false with error_code (NON_NUMERIC_CHARACTERS, UNSUPPORTED_LENGTH, or INVALID_CHECK_DIGIT).

## Prompts and resources

### Prompts (3)

- `` amazon_catalog_prep ``: Instructs an agent to call lookup_barcode_spec ($0.005), verify GTIN-12/13 format, and map product + listing_draft.amazon_bullet_hints into an Amazon draft.
- `` ebay_listing_prep ``: Instructs an agent to call lookup_barcode_spec ($0.005) and assemble an eBay listing draft using listing_draft.ebay_title (<=80 chars) and ebay_item_specifics.
- `` reseller_batch_intake ``: Guides an agent to validate raw scanned barcodes for FREE first, chunk valid codes into batches of max 5, call batch_lookup_barcodes ($0.01), and preserve ODbL attribution.

### Resources (5)

- `` spec://fallback-policy ``: Exact provider cascade order (OpenFoodFacts → OpenBeautyFacts → UPCitemdb), batch cap (5), cache TTL (6h), and UPCitemdb circuit-breaker behavior.
- `` spec://llms.txt ``: Live mirror of GET /llms.txt accessible over MCP transport.
- `` spec://odbl-attribution ``: Open Database License (ODbL-1.0) attribution requirements for OpenFoodFacts and OpenBeautyFacts data.
- `` spec://pricing ``: Machine-readable pricing ($0.00, $0.005, $0.01 USDC), CAIP-2 network, PayAI facilitator URL, and payTo wallet address.
- `` spec://schema/product-spec ``: Canonical JSON Schema and realistic sample response for lookup_barcode_spec so agents can verify output fields before paying.
