Knocklog

See which AI agents (ChatGPT, Claude, Perplexity, Gemini) visit a website, verify they are genuine, and audit how the site treats them: robots.txt, llms.txt, markdown.

Hosted MCP Server

npx add-mcp 'https://api.knocklog.ai/mcp/directory'

Installs into Claude Code, Codex, Cursor and more

Documentation

Knocklog API

The public description of the Knocklog API: analytics for AI agents. See which AI agents visit a website, whether each one is who it claims to be, what they read, and the visitors and leads AI assistants send.

Quick start

# Check how a site treats AI agents (no key)
curl "https://api.knocklog.ai/v1/scan?domain=example.com"

# Identify one request
curl -X POST "https://api.knocklog.ai/v1/classify" -H "Content-Type: application/json" \
  -d '{"user_agent": "Mozilla/5.0; compatible; GPTBot/1.4; +https://openai.com/gptbot", "ip": "20.171.206.10"}'

# Create a project: returns an ingest key, an admin key and install code
curl -X POST "https://api.knocklog.ai/v1/projects" -H "Content-Type: application/json" -d '{"domain": "example.com"}'

# Read the report
curl "https://api.knocklog.ai/v1/traffic?days=30" -H "Authorization: Bearer $KNOCKLOG_ADMIN_KEY"

The ingest key (kl_ing_…) only sends traffic and is safe in a collector on the site. The admin key (kl_adm_…) reads reports; keep it private. More in examples/.

Endpoints

EndpointWhat it doesKey
GET /v1/agentsList known AI agentsnone
POST /v1/classifyIdentify and verify one requestnone
GET /v1/scanCheck how a site treats AI agentsnone
POST /v1/scanCheck how a site treats AI agents (JSON body)none
GET /v1/plansList plansnone
POST /v1/projectsCreate a projectnone
POST /v1/eventsSend requests from a collectoringest (optional)
POST /v1/logsImport access logsingest
GET /v1/planPlan and usageingest or admin
GET /v1/trafficTraffic reportadmin
GET /v1/accountAccount overviewadmin
GET /v1/ready-filesReady-made robots.txt and llms.txt (Pro)admin
POST /v1/keys/ingestNew ingest keyadmin
POST /v1/project/summaryWeekly summary by emailadmin
POST /v1/integrationsWebhook, Slack and company emailsadmin
POST /v1/install/cloudflareInstall the collector on Cloudflareadmin
POST /v1/billing/checkoutCheckout link for a paid planadmin
POST /v1/billing/portalLink to manage the subscriptionadmin
GET /v1/badge/{project}.jsonBadge statusnone
GET /v1/badge/{project}.svgBadge imagenone

Webhooks: company.visited and lead.from_ai, signed with x-knocklog-signature (example).

For AI agents

The same features over the Model Context Protocol:

  • https://api.knocklog.ai/mcp/directory: public tools, no sign-in
  • https://api.knocklog.ai/mcp/account: one project, OAuth sign-in
  • https://api.knocklog.ai/mcp: every tool, keys as arguments

Listed in the official MCP Registry as io.github.leonlesenechal/knocklog.

Also from Knocklog

Support

Questions or a missing endpoint: open an issue or write to contact@knocklog.ai. Using the API is subject to the terms. The files in this repository are under the MIT license.