Developers and AI

The same record for code, people and AI.

Read the public registry over HTTPS, or connect an AI assistant to the PubliQR MCP server. Organisations add private assets and inspection workflows with an API key.

The public endpoints go live with the first release. Addresses below are the planned ones and may change before launch.

Connect an AI assistant (MCP)

PubliQR runs a remote MCP server over Streamable HTTP. Without a key it serves the public demo; with a key it also serves your organisation's private assets.

ClientHow to connect
ClaudeSettings → Connectors → add a custom connector with the URL https://mcp.publiqr.network/mcp
ChatGPTAdd PubliQR as a connector or app with the same URL
Claude Code, Cursor, own agentsRemote URL with the header Authorization: Bearer pq_live_…, or the local stdio server

Tools

ToolWhat it doesType
resolve_assetFull KYA record for a PubliQR ID or QR codeRead
find_assets_by_classSearch assets by class, country, KYA level, chain and textRead
get_legal_structureParties, instruments, rights and legal documentsRead
get_token_representationsEvery token for an asset, per chain, with the rights behind itRead
verify_attestationAttestations with validity today and evidence hashesRead
find_assetsSearch an organisation's operational assets; rank those needing attentionRead
get_assetOperational detail: status, condition, open defects, work ordersRead
get_inspection_historyInspections and a full timeline for one assetRead
get_open_issuesOpen defects, overdue inspections, work orders, expiring documentsRead
get_asset_documentsDocuments with validityRead
create_inspectionPlan an inspection (two-step confirmation)Write
record_inspection_resultRecord a result, findings and fixed defects (two-step confirmation)Write
generate_reportCreate a stored report in MarkdownCreates a report

Write tools return a preview and a one-time confirmation token first. The change happens only when the same call is repeated with the token. Every call is logged with the organisation, key and outcome.

Public registry API

Two functions, no key needed:

POST https://api.publiqr.network/rest/v1/rpc/public_resolve
Content-Type: application/json

{ "p_id": "PQ-ES-EN-00001-6" }
POST https://api.publiqr.network/rest/v1/rpc/public_registry

{ "p_class": "renewable_energy", "p_country": null, "p_q": null, "p_min_level": 3 }

The response of public_resolve is the full KYA record: identity, KYA level and notes, parties, instruments with rights and tokens, attestations with validity, latest valuation and documents. See the example in the white paper.

Validate an ID before you call

function pqValid(id) {
  if (!/^PQ-[A-Z]{2}-[A-Z]{2}-\d{5}-\d$/.test(id)) return false;
  let s = 0; const body = id.slice(0, 14);
  for (let i = 1; i <= body.length; i++) s += body.charCodeAt(i - 1) * (i % 7 + 1);
  return s % 10 === Number(id.slice(-1));
}

Your ERP and maintenance systems

Most organizations already keep their assets in an ERP or maintenance system: the fixed-asset register, the work orders and the inspection history. PubliQR does not replace any of it. A PubliQR ID sits on the record you already have, so the asset in your books and the asset in the KYA register are provably the same one.

Ready-made connectors for common ERP and asset management systems are planned. Tell us which system you use, and we will prioritize it.

Keys, environments and limits

Protocol

The identifier, the data model and the KYA level rules are described in the KYA white paper, version 0.1. Comments are welcome before v1.0.