darklens-mcp
v1.0.1DarkLens 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.
| Parameter | Type | Description |
|---|---|---|
url * | string | The target website or staging URL to audit (e.g. https://staging.myapp.com) |
failOn | string | Failure criterion: 'score' (score below threshold), 'critical' (only critical legal traps), or 'any'. Default is 'score'. |
threshold | number | Minimum 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.
| Parameter | Type | Description |
|---|---|---|
rawHtml * | string | The raw HTML or JSX markup to inspect for dark patterns. |
failOn | string | Failure criterion. Default is 'score'. |
threshold | number | Minimum acceptable passing compliance score (0-100). Default is 70. |
url | string | Optional 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.
| Parameter | Type | Description |
|---|---|---|
patternCategory | string | Category to get remediation guidelines for (e.g., 'forced_continuity', 'confirmshaming', 'fake_urgency', 'hidden_fees', 'interface_interference', 'roach_motel'). |