# malinoto/tracepass-mcp-server [Health: Active]

**Category:** 🏭 Industrial & IoT  
**Repository:** https://github.com/malinoto/tracepass-mcp-server  
**GitHub Stars:** 1  
**npm Downloads (last month):** 3629  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/malinoto-tracepass-mcp-server

## Description
EU Digital Product Passport automation for AI agents. Create products, build and audit DPPs (battery, electronics, textiles, and more), set economic-operator parties, and read or capture GS1 EPCIS 2.0 supply-chain events via the TracePass platform. 6 tools, hosted (https://ai.tracepass.eu/mcp) or local. Install via npx -y tracepass-mcp-server.

## Tools
Capabilities this server exposes over MCP:

- **tracepass_products** — Manage the TracePass product catalogue. A product is the catalogue layer — one product can have many passports (one per serialised unit). Products are not billable on their own.

Actions (pass via `action`, with `args`):
- list — args: { page?, limit? (≤100), category?, status?, search? }. Read-only.
- get — args: { id }. Read-only.
- create — args: { name, model, category, description? }. `category` is one of: battery, textile, electronics, construction, steel, detergents, paints-coatings, packaging, furniture, tyres, jewelry, toys, fmcg.
- update — args: { id, name?, model?, description? }; pass at least one field to change.
- create_batch — args: { products: [ { name, model, category, description? }, … ] }, up to 100. Partial-success: the response carries a per-item status, so some items can be created while others error. The whole batch consumes N writes upfront; if that would exceed the daily cap NOTHING is created (429).
- archive — args: { id }. Soft-archive a product. Blocked with 409 while any non-archived passport still references it — archive those passports first. This is reversible and is NOT deletion.
- **tracepass_passports** — Manage Digital Product Passports — create, read, and run lifecycle actions.

IMPORTANT: `create` consumes a DPP slot on the account's plan and IS BILLABLE. Creating a passport beyond the included quota incurs a per-passport overage charge; if over quota the tool returns a 402-style message — only re-run with args.confirmOverage=true after the user explicitly agrees to the charge. `archive` is IRREVERSIBLE (the public QR permanently 404s); prefer `suspend` when a change might be undone.

Actions (pass via `action`, with `args`):
- list — args: { page?, limit? (≤100), productId?, status?, search? }. status ∈ draft|in_review|approved|published|suspended|expired|archived. Read-only.
- get — args: { id, format? (summary|full), lang? }. Read-only.
- get_by_serial — args: { serial, format?, lang?, gtin? }. Read-only. Addresses the passport by your own serial. A serial is unique only WITHIN a GTIN — if the same serial exists under two GTINs in your account the call returns 409 ambiguous_serial; pass `gtin` (or use the by-id action) to resolve exactly.
- compliance — args: { id }. Read-only. Returns a three-tier compliance verdict (compliant | compliant_with_warnings | incomplete) with regulation-cited findings — use to gap-check a passport against the rules for its category, fix the cited fields/parties, then re-check.
- registry_readiness — args: { id }. Read-only. Returns { ready, findings[] } — whether the passport would pass the EU DPP Registry's FORMAL submission gate (mandatory fields present, correct formatting, a resolvable public link, item-level granularity via a serial number, and a well-formed commodity code where the category carries one). This is the registry's mechanical pre-submission check, NOT the substantive compliance verdict; a passport can be registry-ready yet not substantively compliant. Battery passports only.
- create — args: { productId, gtin, serialNumber, confirmOverage? }. BILLABLE.
- suspend — args: { id }. Reversible — public QR shows 'suspended'.
- suspend_by_serial — args: { serial, gtin? }. Same as suspend, addressed by your serial. 409 ambiguous_serial if the serial isn't unique in your account — pass `gtin`.
- archive — args: { id }. IRREVERSIBLE — confirm with the user first.
- archive_by_serial — args: { serial, gtin? }. IRREVERSIBLE, addressed by your serial — confirm first. 409 ambiguous_serial if the serial isn't unique — pass `gtin`.
- get_qr — args: { id, format? (svg|png) }. Read-only.
- get_qr_by_serial — args: { serial, format? (svg|png), gtin? }. Read-only. Same as get_qr, addressed by your own serial. A serial is unique only WITHIN a GTIN — if the same serial exists under two GTINs in your account the call returns 409 ambiguous_serial; pass `gtin` (or use get_qr by id) to resolve exactly.
- **tracepass_passport_fields** — Update field values on a Digital Product Passport. Every change is recorded in the passport's audit trail, tagged as an API-key update.

Actions (pass via `action`, with `args`):
- update — args: { id, fieldKey, value }. `value` type matches the field's dataType (string, number, boolean, array, object).
- update_by_serial — args: { serial, fieldKey, value, gtin? }. Same as update, addressed by your own serial. A serial is unique only WITHIN a GTIN — if it isn't unique in your account the call returns 409 ambiguous_serial; pass `gtin` (or use update by id) to resolve exactly.
- **tracepass_passport_parties** — Manage the economic-operator parties on a passport — manufacturer, importer, authorisedRepresentative, distributor, recycler, producerResponsibilityOrg. Each party carries a legal name and ideally a validated 13-digit GS1 GLN.

Actions (pass via `action`, with `args`):
- set — args: { id, role, legalName, gln?, country?, legacyOperatorId? }. Sets or updates one role.
- remove — args: { id, role }. Clears one role.
- **tracepass_epcis** — GS1 EPCIS 2.0 supply-chain events. `export` is included on Starter plans and up; `capture`, `capture_job`, and `query` require the paid EPCIS add-on (those actions return a 403-style message without it).

Actions (pass via `action`, with `args`):
- export — args: { id }. Export a passport's events as an EPCIS 2.0 JSON-LD document. Read-only.
- export_by_serial — args: { serial, gtin? }. Same as export, addressed by your own serial. A serial is unique only WITHIN a GTIN — if it isn't unique in your account the call returns 409 ambiguous_serial; pass `gtin` (or use export by id). Read-only.
- capture — args: { events }. `events` is an EPCISDocument, a single event, or an array of events (JSON-LD). Returns a 202 with a captureJobId.
- capture_job — args: { jobId }. Poll an async capture job. Read-only.
- query — args: { params? }. `params` is a key/value map of standard EPCIS query parameters (EQ_bizStep, GE_eventTime, MATCH_epc, …). Read-only.
- **tracepass_templates** — Discover the regulatory field schema for each DPP category — what a COMPLIANT passport must contain, per the governing EU regulation. Read-only reference data. Use this to advise on requirements before creating products/passports, and to gap-check a draft against the rules.

Actions (pass via `action`, with `args`):
- list — args: {}. Lists all 13 categories with their field count, required-field count, and governing regulation (name + number + effective/mandatory dates).
- get — args: { category }. Full field schema for one category: every field's key, label, dataType, whether it is REQUIRED, its access level (public/restricted/authority), enum options, validation bounds, and — where known — the regulation article/annex that mandates it. `category` is one of: battery, textile, electronics, construction, steel, detergents, paints-coatings, packaging, furniture, tyres, jewelry, toys, fmcg.

BATTERY — required-ness is per-category, so `required` alone is the wrong answer. Resolve it in this order:
  1. SCOPE FIRST. Only EV, LMT and industrial_gt_2kwh batteries owe a passport at all (Art. 77(1), Reg (EU) 2023/1542). For portable, SLI or industrial_lte_2kwh, NO field is required — do not list mandatory fields for them; say the battery is out of scope.
  2. Then `requiredBy[batteryCategory]` where the field carries that map (required | conditional | notApplicable).
  3. Then fall back to `required`.
The map is keyed ONLY by the three in-scope categories, so skipping step 1 falls through to `required` and invents an obligation the Regulation does not impose. Note also that EV and LMT report state-of-health through MUTUALLY EXCLUSIVE field sets — an EV battery must leave the remaining-capacity cluster empty and an LMT battery must leave stateOfCertifiedEnergy empty, so no single battery ever fills every field.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "tracepass-mcp-server": {
    "command": "npx",
    "args": ["-y","tracepass-mcp-server"],
    "env": {
      "TRACEPASS_API_KEY": ""
    }
  }
}
```

**Requires environment variables:** `TRACEPASS_API_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What malinoto/tracepass-mcp-server does

malinoto/tracepass-mcp-server exposes TracePass operations through the Model Context Protocol. It covers the catalogue layer, where products are defined, and the passport layer, where serialized units receive individual Digital Product Passports. Supported product categories include batteries, textiles, electronics, construction products, steel, packaging, furniture, tyres, toys, and other listed categories.

The server also provides regulatory reference data. Agents can inspect category schemas, required fields, access levels, validation rules, and the EU regulation associated with a field. Compliance checks return a three-level result with regulation-linked findings. Battery passports have an additional registry-readiness check for the EU DPP Registry’s formal submission requirements; that mechanical check is separate from substantive compliance.

## How it works

The implementation is available in two forms:

- A hosted MCP endpoint at `https://ai.tracepass.eu/mcp`.
- A local npm process launched with `npx -y tracepass-mcp-server`, communicating over stdio.

Operations are grouped into eight tools. Each tool receives an action and action-specific arguments. The groups cover products, passports, passport fields, passport parties, EPCIS events, templates, scope analysis, and lifecycle actions.

Hosted connections can use OAuth 2.0 with authorization-code and PKCE, or a TracePass API key sent as a Bearer token. OAuth access can be scoped and revoked. Local stdio connections use an API key because they cannot perform an interactive browser consent flow.

## Setup and configuration

For a hosted connection, point the MCP client to the TracePass endpoint and provide an `Authorization: Bearer ...` header, or let an OAuth-capable client complete discovery and authorization. For a local connection, configure the client to run `npx` with `-y tracepass-mcp-server` and set `TRACEPASS_API_KEY`.

Optional settings can override the TracePass API base URL, the OAuth discovery origin, HTTP request size, JSON-RPC batch size, and hosted-service port. These are useful when running against a local stack or adjusting service limits.

## Tools and capabilities

- Create, list, update, batch-create, and archive catalogue products.
- Create, inspect, suspend, archive, and retrieve QR codes for passports by TracePass ID or customer serial.
- Update category-specific passport fields; changes are recorded in the audit trail.
- Set or remove manufacturer, importer, distributor, recycler, and other economic-operator parties.
- Run compliance, registry-readiness, scope, and catalogue reports.
- Export, capture, poll, and query GS1 EPCIS 2.0 supply-chain events.
- Discover DPP schemas and regulation-linked field requirements.

Passport creation consumes a plan slot and can incur an overage charge. A caller must explicitly confirm the overage before retrying. Suspension is reversible, while archiving is irreversible and makes the public QR link return 404. Product archiving is blocked while non-archived passports still reference the product.

Serial-based operations require care: a serial is unique only within a GTIN. If the account contains the same serial under multiple GTINs, the request must include the GTIN or use the passport ID.

EPCIS export is available on Starter plans and above. Capture, asynchronous capture-job polling, and query require the paid EPCIS add-on. EPCIS capture returns a job identifier that can be polled separately.

_Full upstream README: https://allmcps.com/mcp/malinoto-tracepass-mcp-server/readme_

