{"slug": "dpolens-mcp-server-that-gives-ai-coding-assistants-the-privacy-law", "title": "DPOLens – MCP server that gives AI coding assistants the privacy law", "summary": "DPOLens, an open-source MCP server released under Apache-2.0, gives AI coding assistants access to privacy law and an organization's own policies with word-for-word, versioned citations, covering GDPR and the UAE PDPL as law packs. In the project's own evaluations, search put the guidance's target clause in the top five answers 90% of the time for GDPR and 87% for the UAE law when queried in a person's own words, dropping to 40% and 62% for searches an AI assistant writes mid-task; Claude Code with the plugin searched before writing code in 36 of 36 runs of tasks touching personal data and in none of 45 runs that do not. DPOLens runs on the user's own servers via Docker Compose, performs word and semantic search in English and Arabic on CPU without an LLM or API key, and keeps an append-only, hash-chained governance log plus a log of questions with personal data removed.", "body_md": "**DPOLens is an open-source MCP server that gives your AI coding assistant your\n  organisation's privacy policies and the law, with exact, versioned citations.**\n\n[Docs](https://dpolens.com/docs/introduction) ·\n  [Get started](https://dpolens.com/docs/get-started) ·\n  [Community version](https://dpolens.com/community) ·\n  [Supported laws](https://dpolens.com/laws) ·\n  [Contribute](https://github.com/alkhatibdev/dpolens/blob/main/CONTRIBUTING.md)\n\n<sub>A real Claude Code session with the DPOLens plugin, on the sample policy every new\ninstance starts with. The highlights are added and the waits are shortened.</sub>\n\nTry it in your AI assistant with the community version: public privacy law only, with no sign-in and no token.\n\nFor Claude Code, Codex, ChatGPT and the others,\n[the community version's page](https://dpolens.com/community) has the line to add.\n\nDPOLens runs on your own servers with Docker Compose, so your policies stay there.\n[Get started](https://dpolens.com/docs/get-started) takes you from the first command to your\nfirst question, and [Connect your AI assistant](https://dpolens.com/docs/connect) sets up Claude\nCode, Codex, Cursor and GitHub Copilot in VS Code.\n\n- **An MCP server** with four tools to search and read the law and your policies, quoting each\nclause word for word with its key, its version and the days it applies, including a duty that\nstarts later.[The MCP server](https://dpolens.com/docs/mcp)\n- **Laws as packs** , each from its official source: GDPR and the UAE PDPL today, and more as\ntheir packs are released.[Supported laws](https://dpolens.com/laws)\n- **Your own policies** , from Word or Markdown files, read into clauses without an AI model and\npublished as versions that never change.[Your own policies](https://dpolens.com/docs/policies)\n- **Search by words and by meaning** , in English and Arabic, on the CPU, with no LLM and no API\nkey. Questions written beside each clause help it find the clause, and are never shown.[Search questions](https://github.com/alkhatibdev/dpolens/blob/main/search-questions/README.md)\n- **A dashboard and two logs:** a governance log that is append-only and hash-chained, and every\nquestion asked, with personal data taken out.[The governance log](https://github.com/alkhatibdev/dpolens/blob/main/docs/governance-log.md)\n- **An HTTP API** , the same one the dashboard and the MCP server use.[The HTTP API](https://dpolens.com/docs/api)\n\n- **Search:** asked in a person's own words, by someone who had not seen its results, it puts\nthe clause the guidance points at among the top five answers 90% of the time for GDPR, and\n87% for the UAE's law. For the searches an AI assistant writes in the middle of a coding task,\nit is 40% and 62%.[How it was measured](https://github.com/alkhatibdev/dpolens/blob/main/evals/retrieval.md)\n- **Use:** Claude Code with the plugin searched before writing code in 36 of 36 runs of tasks\nthat touch personal data, and in none of the 45 runs of tasks that do not.[How it was measured](https://github.com/alkhatibdev/dpolens/blob/main/evals/trigger-test.md)\n\nLaw packs are the contribution that matters most, and [CONTRIBUTING.md](https://github.com/alkhatibdev/dpolens/blob/main/CONTRIBUTING.md) says\nwhat one needs. A security problem is reported privately, as [SECURITY.md](https://github.com/alkhatibdev/dpolens/blob/main/SECURITY.md) says.\n\nThe code is Apache-2.0, with DCO sign-off and no CLA. `packs/` carries its own licence: the law\ntext keeps its source's, and the structure around it is CC-BY-4.0.", "url": "https://wpnews.pro/news/dpolens-mcp-server-that-gives-ai-coding-assistants-the-privacy-law", "canonical_source": "https://github.com/alkhatibdev/dpolens", "published_at": "2026-11-29 16:43:34+00:00", "updated_at": "2026-11-29 17:14:29.864504+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "agent-protocols", "ai-policy", "developer-tools"], "entities": ["DPOLens", "Claude Code", "Codex", "ChatGPT", "Cursor", "GitHub Copilot", "GDPR", "UAE PDPL"], "also_reported_by": [], "takeaway": "DPOLens is an Apache-2.0 MCP server with four tools that quote law and policy clauses verbatim with key, version and applicable days, and its own evals show 90% GDPR and 87% UAE PDPL top-five retrieval for human-written queries versus 40% and 62% for assistant-written ones.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/dpolens-mcp-server-that-gives-ai-coding-assistants-the-privacy-law", "markdown": "https://wpnews.pro/news/dpolens-mcp-server-that-gives-ai-coding-assistants-the-privacy-law.md", "text": "https://wpnews.pro/news/dpolens-mcp-server-that-gives-ai-coding-assistants-the-privacy-law.txt", "jsonld": "https://wpnews.pro/news/dpolens-mcp-server-that-gives-ai-coding-assistants-the-privacy-law.jsonld"}}