Skip to content

MPCP Reference Implementation

This repository provides the reference implementation of the Machine Payment Control Protocol (MPCP).

For the canonical protocol specification — overview, architecture, protocol definitions, and conceptual guides — see mpcp-spec.

What This Repo Provides

  • SDK — Create and verify MPCP artifacts (PolicyGrant, SBA, SPA, SettlementIntent)
  • Verifier — Settlement verification pipeline
  • CLImpcp verify and mpcp policy-summary
  • Service API — Backend facade for issueBudget, verifySettlementService, anchorIntent
  • Examples — Parking, EV charging, machine commerce

Quick Start

npm install mpcp-service
npm run build
npm run example:parking
npx mpcp verify examples/parking/settlement-bundle.json --explain

Full quickstart

Documentation

Section Description
Quickstart Get running in 5 minutes
Implementation SDK, verifier, conformance
Reference API reference (SDK, Service, CLI)
Examples Parking, charging, fleet

Specification

The MPCP specification is maintained in the mpcp-spec repository.