Skip to content

MCP server · Indie SaaS infrastructure

PostHog MCP server

PostHog's official MCP server that lets an agent query events, run insights, and inspect feature flags in your PostHog project.

Official
npm package (runs locally)

Verified · editorial policy

PostHog MCP server TL;DR

TL;DR
Server
PostHog MCP server
Vendor
PostHog
Category
Indie SaaS infrastructure
Distribution
npm package (runs locally)
TL;DR
PostHog's official MCP server exposes product analytics, insights, and feature flag state as MCP tools. The agent can ask questions like 'how many users hit the diagnostic page yesterday' or 'which flag is gating onboarding' and get a structured answer grounded in your PostHog project, not a guess.
Founder fit
If you are already using PostHog for product analytics, this server turns Claude into a competent product-analyst pair. Drop in a question about activation, retention, or a specific event and let the assistant write the insight against your real project rather than hallucinating numbers.
Last verified
May 22, 2026

What an agent can do with it

Query events and insights

Run structured insight queries and inspect event volume by name and property.

Inspect feature flags

Read flag state, payloads, and rollouts the agent has permission to see.

Trace funnels and retention

Surface funnel conversion and retention cohort answers without leaving the chat.

Why an indie SaaS founder cares

If you are already using PostHog for product analytics, this server turns Claude into a competent product-analyst pair. Drop in a question about activation, retention, or a specific event and let the assistant write the insight against your real project rather than hallucinating numbers.

Install

Access: Requires a PostHog personal API key with appropriate scopes.

Claude Desktop

Add the following block to your claude_desktop_config.json and restart Claude:

{
  "mcpServers": {
    "posthog": {
      "command": "npx",
      "args": ["-y", "@posthog/mcp-server"]
    }
  }
}

Cursor

Add the following block to .cursor/mcp.json in your home directory or project root:

{
  "mcpServers": {
    "posthog": {
      "command": "npx",
      "args": ["-y", "@posthog/mcp-server"]
    }
  }
}

Install snippets are derived from the vendor's published distribution shape. If your client is neither Claude Desktop nor Cursor, see the vendor docs for client-specific configuration.

PostHog MCP server – FAQ

Does the agent see PII in events?

It sees whatever your PostHog project sees. If you mask or filter PII at ingest, the agent is bound by the same view.

Vercel MCP server

Vercel's official MCP server that lets an agent inspect deployments, read logs, and reason about projects on your Vercel account.

Supabase MCP server

Supabase's official MCP server that lets an agent inspect schemas, run read queries, and reason about your Postgres database.

Stripe MCP server

Stripe's official MCP server that lets an agent query and act on your Stripe account through scoped API access.

Want an agent that knows your SaaS offer?

Install the UnlockSaaS MCP server alongside this one and the assistant can diagnose your live landing page, pull funnel and pricing teardowns of competitors, and walk the Brunson Playbook with you.

Browse more

Browse every MCP server

Last verified . This entry describes the publicly documented behaviour of PostHog MCP server at that date. No quoted vendor copy, no fabricated tool counts, no paid placement. See the canonical vendor page at posthog.com/docs/llm-observability. If anything on this page is wrong or out of date, email maryan@unlocksaas.com and we will fix it.

🚀 Explore Our Network

Full disclosure: UnlockSaaS is one of ten small products built and run by one independent operator. These are the other nine.

60 days
To First Paying Customer
7 steps
Proven Playbook
100%
Money-Back Guarantee
$49
Founding Price /mo

You shipped. Nobody paid. The playbook breaks the pattern or the code refunds you automatically.

Get Free Diagnosis

Refund runs from your dashboard, not a support ticket — the server re-checks eligibility and issues it through Stripe automatically.