DUOLEXX

Integrazione · Claude Code

DUOLEXX in Claude Code

Collega il server MCP di DUOLEXX o usa il prompt, così Claude Code integra fatti giuridici verificati nella tua app.

Cosa fa il componente nella tua app

Claude Code può usare DUOLEXX in due modi: come server MCP nella conversazione o tramite gli endpoint REST nel codice della tua app.

  • Verifica della forma: se un documento può essere firmato elettronicamente in un paese, con norma e fonte.
  • Fatti giuridici: valori verificati con citazione e data di verifica, che la tua app può mostrare.
  • Verifica del sigillo: se un documento firmato è autentico e non modificato.

Server MCP in Claude Code

Con un solo comando colleghi il server MCP remoto. Claude Code può allora chiamare direttamente check_form_requirement e get_legal_fact — senza dover accedere.

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

Prompt da copiare

Incolla questo prompt nella chat di Claude Code. Integra solo gli endpoint di lettura pubblici.

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.

Chiave API come secret

Gli endpoint di lettura non richiedono chiave. Per documenti e firma, la chiave API va in un secret o in una variabile d’ambiente di Claude Code (per esempio DUOLEXX_API_KEY) — mai nel codice sorgente e mai nel browser.

Vai al riferimento API →

Limiti

  • Informazione giuridica generale alla data dei dati, non consulenza legale individuale.
  • Fa fede la gazzetta ufficiale; ogni risposta indica la citazione.
  • Senza una regola verificata, la verifica risponde onestamente «sconosciuto» invece di indovinare.
  • Nessuna garanzia e nessuna partnership ufficiale.

Claude Code è un marchio del rispettivo titolare. DUOLEXX non è affiliato al fornitore.