ClickClacks MCP

Connect an AI agent to read-only, token-scoped product analytics with provenance on every result.

Endpoint and authentication

POST https://app.clickclacks.io/api/v1/mcp
Authorization: Bearer cka_live_...

The server uses stateless Streamable HTTP. Create an MCP & analytics key under Settings → API access; Settings → MCP has copy-ready setup for your endpoint. Never put the raw key in source control, prompts, logs, or screenshots.

Claude Code

claude mcp add --transport http clickclacks https://app.clickclacks.io/api/v1/mcp --header "Authorization: Bearer cka_..."

Generic client

{
  "mcpServers": {
    "clickclacks": {
      "type": "http",
      "url": "https://app.clickclacks.io/api/v1/mcp",
      "headers": { "Authorization": "Bearer cka_..." }
    }
  }
}

Tools

ToolReads
overviewKPIs and visitors series
list_funnelsSaved funnel definitions and available summaries
funnel_resultsOne saved funnel in its persisted execution mode
retentionDaily, weekly, or monthly cohort grid
list_eventsEvent rows with search and cursor pagination
event_breakdownsPages, referrers, countries, and event names with event and people counts
list_segmentsSaved segment definitions and available counts
list_sourcesSources, windowed counts, and health
friction_findingsObserved friction findings by state

Every tool accepts paired optional start and end dates in YYYY-MM-DD form and defaults to the last 30 calendar days in the project’s reporting time zone.

Companies and other groups

A project with group analytics switched on also lists these tools. A group is an account your events are stamped with: a company, a workspace, a team. Answers are about companies and never identify a person.

Tool or argumentReads
list_group_typesThe group types the project shows, with their labels
list_groupsThe groups of one type with name, first and last seen, events and active members; search, sort and cursor pagination
group_profileOne group’s traits (secrets and personal data withheld), key metrics for the window and the one before, and how activity is spread across its most active members
count_byOn funnel_results, retention and event_breakdowns: a group type to count instead of people. A funnel or a retention cohort then holds companies (a company converts or returns on the events of any of its members), and the answer names what it counts. Events that carry no group of the type are left out, and the answer says what share that is. Left out, a report counts what it was saved to count.

Agency keys: every project at once

An agency owner or admin can create an agency key (cka_agency_...) in Agency settings → MCP keys. It is a Pro feature. It uses the same endpoint and reads only the projects its creator can open, checked again on every call: remove the creator from a project, or from the agency, and the key stops reading it. It is read-only, and every call is logged against the project it read.

claude mcp add --transport http clickclacks https://app.clickclacks.io/api/v1/mcp --header "Authorization: Bearer cka_agency_..."
Tool or argumentWhat it does
list_projectsThe projects the key can read: name, slug, id, time zone, sources and events this month
projectEvery tool above takes it: a project slug or id. Required unless the key reads exactly one project. Answers name the project and its time zone.
compare_projectsVisitors or events for every project, or a chosen few, over the same dates, each counted in its own time zone

Provenance and honest unavailable states

Every successful call includes the same provenance in structuredContent and text content: resolved window, applied filters, the project the key belongs to, data freshness and cache state where known, a degraded flag and reason, and a definition hash where available. Fixture or fallback report rows are never presented as customer data; the affected data is returned as null.

Ask your agent