---
title: "Ask AI agents about your analytics"
description: "Pug's MCP server at /mcp lets Claude Code, Cursor and other MCP clients run insights, browse events and look up profiles with a project's private key."
date: 2026-07-16
tags: ["MCP"]
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.pug.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# Ask AI agents about your analytics

Pug serves its analytics API as a [Model Context Protocol](/mcp/) server at
`/mcp`, so an agent can answer a question about your data without you writing
the query.

## New

- Twelve read-only tools run insights, browse events and activity, look up
  profiles by Pug ID or by your own ID, and check an erasure request.
- A client connects with a project's private key, sent as `x-api-key` or as a
  bearer token.

Source: https://docs.pug.sh/changelog/2026-07-16-mcp-server/index.mdx
