API & MCP
Everything a person can do on Privacy Policy Decoder, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://privacypolicydecoder.usefulweb.site/api/v1/calculate– run Privacy Policy DecoderGET https://privacypolicydecoder.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Privacy Policy Decoder
Give the URL of a privacy policy or paste/upload its text (English or German). The decoder lists which data categories, purposes, sharing and sale practices, retention periods, user rights, laws (GDPR, CCPA/CPRA …), international transfer mechanisms and contacts the policy mentions, quotes the sentences, and points out topics it does not mention.
| Field | Type | Default | Description |
|---|---|---|---|
text | textarea | — | Privacy policy text. Paste the text here, or use one of the other options below (exactly one). |
file | file | — | Or upload a file. TXT, PDF, DOCX, HTML or a photo/scan (PNG/JPG, read with OCR). Max 5 MiB. |
url | url | — | Or the privacy policy URL. A public http(s) address. The page text is fetched once and analysed. |
Example request
App privacy policy (English)
curl -X POST https://privacypolicydecoder.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"text":"Privacy Policy\nWe collect your name, email address and phone number when you register. We also collect your precise location, IP address and advertising ID, and we use cookies and tracking pixels.\nWe use your information to provide our services, for analytics and for personalized advertising. We may share your information with advertising partners and data brokers. We may sell your personal information; California residents can opt out via the \"Do Not Sell or Share My Personal Information\" link (CCPA/CPRA).\nWe retain your data for as long as necessary to provide our services. Payment records are kept for 7 years.\nYou have the right to access, delete and correct your personal information. Our services are not directed to children under the age of 13.\nYour data may be transferred to the United States under Standard Contractual Clauses.\nContact: privacy@example-app.com"}'
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://privacypolicydecoder.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
privacy_policy_decoder - Local stdio connector:
node src/mcp-stdio.ts --tool=privacy-policy-decoder
{
"mcpServers": {
"privacy-policy-decoder": { "type": "http", "url": "https://privacypolicydecoder.usefulweb.site/mcp" }
}
}