DEVELOPERS

Consent as a primitive, not a plugin.

A typed cookie consent SDK, a REST API behind it, a CLI for your terminal, and an MCP server so an assistant can do the tedious parts. Build the interface yourself, or drop in the widget and skip it.

@katla.app/sdkREST + MCPTypeScript throughout
import { useConsentManager } from '@katla.app/sdk/react'

function Banner() {
  const {
    hasDecision, availableCategories, selected,
    toggleCategory, acceptAll, rejectAll, saveSelection,
  } = useConsentManager()

  if (hasDecision) return null

  return (
    <aside>
      {availableCategories.map((category) => (
        <Toggle
          key={category}
          label={category}
          checked={selected.includes(category)}
          onChange={() => toggleCategory(category)}
        />
      ))}
      <button onClick={acceptAll}>Accept all</button>
      <button onClick={rejectAll}>Necessary only</button>
      <button onClick={saveSelection}>Save choices</button>
    </aside>
  )
}
useConsentManager re-renders on every decisionOpen in docs →
FOUR WAYS IN

Pick the surface that fits the job.

TypeScript

SDK

Consent state, categories and decisions as a small typed client. React hooks and Next.js components on top of it.

Loads async, never render-blocking
Google Consent Mode v2 signals sent automatically
Server components and build-time cookie data on Next.js
pnpm add @katla.app/sdk
Get started with the SDK
No code

Widget

One script tag, pasted inline, when you would rather not build the UI. Themed from the dashboard; the same engine underneath.

Configured in the dashboard, live in seconds
Light, dark, or the visitor’s system theme
Move to headless later without losing consent records
<script>(function(){"use strict";var i=document.currentScript,…})();</script>
Set up the widget
Terminal

CLI

Add domains and trigger scans from your terminal. Export the classified inventory for the audit trail.

Scans wait until they finish, up to six minutes
Cookie and consent records export as CSV
Manage categories and per-locale descriptions from scripts
katla domains scan example.com
Get started with the CLI
AI assistants

MCP server

Let Claude, ChatGPT or your editor run scans, read consent stats and change configuration in plain language.

Remote server, nothing to install locally
OAuth 2.1 with your own account and its permissions
29 tools across sites, cookies, consents and compliance checks
https://api.katla.app/mcp
Connect the MCP server
MCP SERVER

Ask, instead of clicking.

Connect Claude, ChatGPT or your editor to the account you already have. Tools run as you, with your permissions - an assistant cannot reach a site you cannot.

Every tool and the permission model →
Which of our sites are below 70% consent?
katla_get_consent_stats
Two: shop.example.com at 64% and blog.example.com at 68%. On both, marketing is the category visitors turn down most.
Rescan the shop and tell me what it finds.
katla_scan_site
Done: 47 cookies on shop.example.com, 12 of them marketing and one still unclassified. Want me to classify that one?
katla_scan_site
Start a scan; katla_get_scan_status says when it is done.
katla_list_sites
Sites in the account, with verification and last scan time.
katla_list_cookies
Classified inventory with categories, providers and descriptions.
katla_get_consent_stats
Accept, reject and partial rates for a site.
katla_update_cookie_category
Reclassify a cookie; your override sticks.
katla_generate_privacy_policy
Save the company details the generated policy names.
REST API

Everything the dashboard does, over HTTP.

The dashboard, the CLI and the MCP server all talk to this. Nothing is held back for the UI.

OpenAPI spec →
GET/teamsTeams the account belongs to
GET/teams/:teamId/sitesSites with their latest scan
POST/sites/:id/scanStart a scan; poll for the result
GET/sites/:siteId/cookiesClassified inventory with confidence
GET/sites/:siteId/cookies/exportThe same inventory as JSON
GET/sites/:id/consentsConsent records with stats
PATCH/sites/:id/settingsUpdate theme, layout, regulation and Consent Mode
4.6 kB
Headless footprint

Gzipped, from our CDN in one request. The Next.js SDK can inline it instead, with no request at all.

±0 ms
LCP impact

Measured against the same page with no consent platform on it. Method on the compare page.

29
MCP tools

Sites, cookies, consents and policies, all through your account’s own permissions.

13
Policy languages

Cookie and privacy policies generated from the cookies your scan actually found.

Consent in your app before lunch.

Sign up, add a domain, run a scan, then one import. The free plan covers all of it. New to headless consent? Read the getting started guide or clone one of the example projects.