Skip to main content
MCP server CX Codex

Pug — Claude Code MCP server: analytics and setup

An MCP server for Claude Code connects an assistant to Pug product analytics. It can inspect project activity and create dashboards through chat requests.

AGPL-3.0 ★ 117 updated 2026-11-16

Install into Claude Code · Platform CLI: remote server All methods and platforms ↓
claude mcp add --transport http pug https://api.pug.sh/mcp
Open on GitHub

What Pug does

Pug lets an AI assistant read product data, including events, sessions, profiles, insights, and existing dashboards. The server can also create or edit dashboards, while analytics requests can cover funnels, retention, and trends.

Pug Cloud uses the endpoint https://api.pug.sh/mcp. Authentication works through a Pug sign-in or a project's private prv_ key sent in the x-api-key header. For a self-hosted server to offer sign-in, set PUG_API_BASE_URL.

Add the server to Claude Code over HTTP. A local Pug deployment uses PostgreSQL, NATS, and ClickHouse.

What it helps with

  • inspect project events and sessions
  • trace user profiles and activity
  • analyze a funnel or retention
  • build an analytics dashboard

Example prompts for the agent

  • Show event trends for this project over the selected period.
  • Analyze the funnel from product view to purchase.
  • Create a dashboard with a retention chart and a short results note.

How to install Pug

Platform CLI: remote server

claude mcp add --transport http pug https://api.pug.sh/mcp

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about Pug

How do I install Pug in Claude Code?

Run claude mcp add --transport http pug https://api.pug.sh/mcp. Then authenticate with a Pug sign-in or a project's private key.

What does Pug do?

It gives an AI assistant access to Pug events, sessions, profiles, insights, and dashboards. The server can also create and modify dashboards.

What does Pug need to work?

Connect with a Pug sign-in or pass a project private prv_ key in the x-api-key header. Self-hosted sign-in requires PUG_API_BASE_URL; a local Pug deployment uses PostgreSQL, NATS, and ClickHouse.

Similar MCP servers

All MCP servers for Data and databases →
signals-scout-anomaly-detection PostHog signals-scout-anomaly-detection — a skill for Claude Code detects anomalies across saved PostHog insights, including sudden spikes, metric drops, and broken trends. Tracks key dashboards against seasonality-matched baselines. CX Codex +1 318installs signals-scout-observability-gaps PostHog The signals-scout-observability-gaps skill finds meaningful events without insight, dashboard, or alert coverage. Use it to review analytics coverage as a product changes. CX Codex +1 316installs mcp-server tago-io This MCP server connects an AI assistant to TagoIO accounts. Use it to inspect devices, data, dashboards, and analyses from a coding client. CX Codex +1 ★ 9repo stars analytics-pipeline-orchestration gtmagents analytics-pipeline-orchestration — a Claude plugin that keeps analytics work in one pipeline: event instrumentation, data quality checks and dashboard patterns, split across three skills. ★ 451repo stars measure-dashboard-requirements product-on-purpose measure-dashboard-requirements is a Claude Code skill that turns a dashboard request into a specification for its questions, metrics, charts, filters, and data sources. It activates for new dashboards and formalized reporting. CX Codex +1 847installs data-analyst VoltAgent Community data-analyst extracts business insights, designs dashboards, and conducts statistical analysis. Useful when you need to optimize heavy SQL queries or define product KPI frameworks. CX Codex 837installs

Project sponsors

Companies that keep this analytics open