darklens-mcp

v1.0.1
darklens-mcp Checked 2 days ago Published 1 month ago

DarkLens Model Context Protocol (MCP) Server: Real-time dark pattern and compliance auditing for AI coding agents (Cursor, Windsurf, Claude Desktop, Lovable).

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

darklens_audit_url

Audit any staging or live URL for deceptive dark patterns, compliance risks (FTC, GDPR, CCPA, EU DSA), and sneaky checkout traps. Returns compliance score (0-100), pass/fail, and detailed findings with remediation fixes.

ParameterTypeDescription
url *stringThe target website or staging URL to audit (e.g. https://staging.myapp.com)
failOnstringFailure criterion: 'score' (score below threshold), 'critical' (only critical legal traps), or 'any'. Default is 'score'.
thresholdnumberMinimum acceptable passing compliance score (0-100). Default is 70.

darklens_audit_html

Audit raw HTML, JSX, or component markup for dark patterns (pre-checked auto-renewal checkboxes, confirmshaming guilt copy, fake countdown timers, hidden fees, missing reject buttons) before committing to production.

ParameterTypeDescription
rawHtml *stringThe raw HTML or JSX markup to inspect for dark patterns.
failOnstringFailure criterion. Default is 'score'.
thresholdnumberMinimum acceptable passing compliance score (0-100). Default is 70.
urlstringOptional URL context (default: 'https://localhost:3000').

darklens_get_fair_pattern_guide

Retrieve regulatory compliance rules, legal citations (FTC Act Sec. 5, GDPR Art. 25, EU DSA Art. 25, CCPA), and compliant UI/UX alternatives for specific deceptive design categories.

ParameterTypeDescription
patternCategorystringCategory to get remediation guidelines for (e.g., 'forced_continuity', 'confirmshaming', 'fake_urgency', 'hidden_fees', 'interface_interference', 'roach_motel').