DPOLens MCP server
Commit Nov 10, 2026Provides AI assistants with exact, versioned citations from privacy laws and organizational policies.
Also known as alkhatibdev/dpolens
- Stars
- 2
- Tools
- —
- Downloads, 30 days
- —
- Latest version
- 0.2.0
- Last commit
- Nov 10, 2026
- License
- Apache-2.0
What is DPOLens MCP?
DPOLens provides AI assistants with exact, versioned citations from privacy laws and organizational policies.
Summary generated from the project's README
About DPOLens MCP server
Providing AI coding assistants with exact, versioned citations from privacy laws and organizational policies is the primary function of DPOLens. Developers can connect this server to tools like Claude Code, Codex, Cursor, and GitHub Copilot in VS Code to ensure their code adheres to legal requirements. The system allows users to upload organizational policies from Word or Markdown files, which are processed into immutable clauses without using an AI model.
Users can deploy the server on their own infrastructure using Docker Compose to keep sensitive policies local. The community version offers access to public privacy laws like GDPR and UAE PDPL without requiring a sign-in or API key. The server includes four specific tools for searching and reading legal text, supporting both English and Arabic searches. It also features a governance log that is append-only and hash-chained to maintain an audit trail of questions asked.
What you can do with it
- 1Verify code against privacy lawsAsk your AI assistant to check if a specific piece of code complies with GDPR requirements.
- 2Audit privacy-related queriesReview a hash-chained log to see what privacy questions were asked of the AI assistant.
Written from the project's README. Every use case is checked against a quote from it.
How to install DPOLens MCP
Formats verified 10 Nov 2026Install DPOLens MCP in Claude Code
$ claude mcp add --transport http dpolens https://mcp.dpolens.com/Install DPOLens MCP in Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"dpolens": {
"url": "https://mcp.dpolens.com/"
}
}
}Install DPOLens MCP in VS Code
.vscode/mcp.json
{
"servers": {
"dpolens": {
"type": "http",
"url": "https://mcp.dpolens.com/"
}
}
}Install DPOLens MCP in Codex
~/.codex/config.toml
[mcp_servers.dpolens] url = "https://mcp.dpolens.com/"
Install DPOLens MCP in Gemini CLI
~/.gemini/settings.json
{
"mcpServers": {
"dpolens": {
"httpUrl": "https://mcp.dpolens.com/"
}
}
}README
View on GitHubGet started
DPOLens runs on your own servers with Docker Compose, so your policies stay there. Get started takes you from the first command to your first question, and Connect your AI assistant sets up Claude Code, Codex, Cursor and GitHub Copilot in VS Code.
To try it first, add the community version to your AI assistant: public privacy law only, with no sign-in and no token.
For Claude Code, Codex, ChatGPT and the others, the community version's page has the line to add.
What's inside
- An MCP server with four tools to search and read the law and your policies, quoting each clause word for word with its key, its version and the days it applies, including a duty that starts later. The MCP server
- Laws as packs, each from its official source: GDPR and the UAE PDPL today, and more as their packs are released. Supported laws
- Your own policies, from Word or Markdown files, read into clauses without an AI model and published as versions that never change. Your own policies
- Search by words and by meaning, in English and Arabic, on the CPU, with no LLM and no API key. Questions written beside each clause help it order what it found, and are never shown. Search questions
- A dashboard and two logs: a governance log that is append-only and hash-chained, and every question asked, with personal data taken out. The governance log
- An HTTP API, the same one the dashboard and the MCP server use. The HTTP API
Measured
- Search: on held-out questions, the clause the guidance points at is among the top five answers 73% of the time for GDPR, and 53% for the UAE's law. How it was measured
- Use: Claude Code with the plugin searched before writing code in 36 of 36 runs of tasks that touch personal data, and in 3 of 45 runs of tasks that do not. How it was measured
Contributing
Law packs are the contribution that matters most, and CONTRIBUTING.md says what one needs. A security problem is reported privately, as SECURITY.md says.
Licence
The code is Apache-2.0, with DCO sign-off and no CLA. packs/ carries its own licence: the law
text keeps its source's, and the structure around it is CC-BY-4.0.
DPOLens MCP questions
How do I add DPOLens MCP to Claude Code?
Run claude mcp add --transport http dpolens https://mcp.dpolens.com/ in your terminal. Add --scope user to make it available in every project.
How do I add DPOLens MCP to Cursor?
Open ~/.cursor/mcp.json and add the server under mcpServers, using the Cursor config shown in the install section above.
How can I try DPOLens for free?
You can add the community version to your AI assistant to access public privacy laws with no sign-in or token required.
Where is my data stored?
DPOLens runs on your own servers using Docker Compose, ensuring your policies remain under your control.
Which privacy laws are currently supported?
The server currently supports GDPR and the UAE PDPL, with more law packs planned for future release.