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 keys; 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.

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