Integration · Claude Code
DUOLEXX in Claude Code
Connect the DUOLEXX MCP server or use the prompt so Claude Code builds verified legal facts into your app.
What the building block does in your app
Claude Code can use DUOLEXX in two ways: as an MCP server in conversation, or through the REST endpoints in your app's code.
- Form check: whether a document can be signed electronically in a country, with statute and source.
- Legal facts: verified values with citation and verification date that your app can display.
- Seal verification: whether a signed document is genuine and unchanged.
MCP server in Claude Code
One command connects the remote MCP server. Claude Code can then call check_form_requirement and get_legal_fact directly — no sign-in needed.
claude mcp add --transport http duolexx https://duolexx.com/api/mcpCopy-paste prompt
Paste this prompt into the Claude Code chat. It only wires in the public read endpoints.
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 key as a secret
The read endpoints need no key. For documents and signing, keep the API key in a secret or environment variable of Claude Code (for example DUOLEXX_API_KEY) — never in source code and never in the browser.
Limits
- General legal information as of the dataset version, not individual legal advice.
- The official gazette is authoritative; every answer names its citation.
- Without a verified rule the check honestly answers “unknown” instead of guessing.
- No guarantee and no official partnership.
Claude Code is a trademark of its respective owner. DUOLEXX is not affiliated with the provider.