SuperAPIAI Directory

dpolens

github.com · AI legal

DPOLens is an open-source, self-hostable MCP server that enables AI coding assistants to obtain an organization's internal privacy policies and relevant legal provisions while writing code, and to provide precise, versioned citations. It is deployed on its own server via Docker Compose, and policy data remains local. It includes four built-in MCP tools that can search legal and policy clauses by keyword and semantics, quote clauses verbatim, and label the key name, version, and applicable date. It currently supports the GDPR and UAE PDPL legal packs, supports importing own policies in Word or Markdown format, and can split them into clauses and publish them as immutable versions without an AI model. It provides a dashboard, an append-only hash-chained governance log, a redacted question log, and an HTTP API. The code is licensed under Apache-2.0.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux

About this tool

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.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools