DUOLEXX

Integratie · Claude Code

DUOLEXX in Claude Code

Verbind de DUOLEXX-MCP-server of gebruik de prompt, zodat Claude Code geverifieerde juridische feiten in je app inbouwt.

Wat de bouwsteen in je app doet

Claude Code kan DUOLEXX op twee manieren gebruiken: als MCP-server in het gesprek, of via de REST-endpoints in de code van je app.

  • Vormcontrole: of een document in een land elektronisch mag worden ondertekend, met wetsbepaling en bron.
  • Juridische feiten: geverifieerde waarden met verwijzing en controledatum die je app kan tonen.
  • Zegelcontrole: of een ondertekend document echt en ongewijzigd is.

MCP-server in Claude Code

Met één opdracht verbind je de externe MCP-server. Claude Code kan dan check_form_requirement en get_legal_fact direct aanroepen — zonder inloggen.

claude mcp add --transport http duolexx https://duolexx.com/api/mcp

Kopieerbare prompt

Plak deze prompt in de chat van Claude Code. Hij koppelt alleen de openbare leesendpoints.

Build the legal-information feature of my app on the public DUOLEXX read API. No API key is needed for these endpoints.

1) Form check - can a document be signed electronically?
   GET https://duolexx.com/api/v1/rules/form-check?type=<docType>&country=<ISO country>&signature=ses
   - signature is one of: ses | aes | qes | wet | notary
   - List valid <docType> keys with GET https://duolexx.com/api/v1/document-types
   - The answer has result.status (verified | unverified | unknown), result.allowed, result.requires,
     result.facts[] (citation, source_url, verified_at) and a signed evidence hash in signature.hash.
   - If status is "unknown", say that no verified rule exists yet. Do not guess.

2) Legal facts with statute citation and official source.
   GET https://duolexx.com/api/v1/facts?q=<english keywords>&jurisdiction=<DE|AT|ES|FR|PT|CY|TH|EU|INTL>
   - Facts are licensed CC BY 4.0: show the attribution returned in the response.

3) Verify a DUOLEXX seal.
   POST https://duolexx.com/api/verify with {"documentHash": "<sha256>", "seal": "<base64>"} -> {"valid": true|false}

Rules for the app:
- Always show citation, source_url and verified_at next to every legal statement.
- Always add: "General legal information as of the dataset version, not individual legal advice."
- Call the endpoints from server code (or a server action), cache answers for a few minutes, and handle 429.
- Never claim a guarantee, and never imply an official partnership with DUOLEXX.

API-sleutel als secret

De leesendpoints hebben geen sleutel nodig. Voor documenten en ondertekening hoort de API-sleutel in een secret of omgevingsvariabele van Claude Code (bijvoorbeeld DUOLEXX_API_KEY) — nooit in de broncode en nooit in de browser.

Naar de API-referentie →

Grenzen

  • Algemene juridische informatie per de gegevensdatum, geen individueel juridisch advies.
  • Het officiële publicatieblad is leidend; elk antwoord noemt de verwijzing.
  • Zonder geverifieerde regel antwoordt de controle eerlijk met “onbekend” in plaats van te gokken.
  • Geen garantie en geen officieel partnerschap.

Claude Code is een merk van de betreffende eigenaar. DUOLEXX is niet verbonden met de aanbieder.