DPOLens is an open-source, self-hostable MCP (Model Context Protocol) server whose goal is to enable AI coding assistants, in coding tasks involving personal data, to cite the organization's own privacy policies and relevant legal provisions, and to provide precise, versioned citations.
Purpose: To provide privacy policies and legal bases for AI coding assistants such as Claude Code, Codex, Cursor, and GitHub Copilot, helping developers refer to compliance clauses when writing code that processes personal data.
Main capabilities:
- Provides four MCP tools for searching and reading legal provisions and own policies, quoting each clause verbatim, and labeling its key name, version, and applicable days, including obligations that have not yet taken effect.
- Laws are provided in the form of "legal packs" from official sources; currently supports GDPR and UAE PDPL, with expansion as legal packs are released.
- Supports importing own policies (Word or Markdown files), splitting them into clauses without using an AI model, and publishing them as immutable versions.
- Supports keyword and semantic search, covering English and Arabic, runs on CPU, and requires no LLM or API key. Each clause is accompanied by auxiliary search questions; this content is not displayed.
- Provides a dashboard and two types of logs: an append-only, hash-chained governance log, and a record of all questions after removal of personal data.
- Provides an HTTP API that uses the same set of interfaces as the dashboard and MCP server.
Usage: Deploy on your own server via Docker Compose; policy data remains local. Official "Get started" guidance is provided, from the first command to the first question; it also explains how to connect Claude Code, Codex, Cursor, and GitHub Copilot in VS Code. The community edition contains only public privacy laws and requires no login or token; it can be used in assistants such as Claude Code, Codex, and ChatGPT.
Use cases: When developing software involving personal data, have AI coding assistants search relevant privacy laws and internal policies before writing code; compliance assistance scenarios requiring traceable, versioned citations.
Limitations: Currently, legal packs cover only GDPR and UAE PDPL; the community edition provides only public laws and does not include own policies; retrieval accuracy data comes from official measurements and performance may vary by scenario; other details such as other features, fees, pricing, and platform support are currentlyNot provided.