← All tips
FREEMCP server

PostHog MCP prompt

Neo ZinoBy Neo Zino - builder of ClockedCode1 min readJun 28, 2026
INSTALL PROMPTPASTE INTO CLAUDE CODE
Set up the PostHog MCP server in my Claude Code so you (Claude Code) can read my
product's real analytics - what users actually do, which features land, and where
they drop off - instead of me guessing what to build next. It's a free, hosted
server and works in every project.

Safety first: check whether an MCP server for PostHog is already configured - run
`claude mcp list` and look for "posthog". If one already exists and points at
https://mcp.posthog.com/mcp, tell me, change nothing, and skip to the verify step.
Never overwrite my existing config.

(If a bare `claude ...` command is blocked inside this session, re-run just that
command with CLAUDECODE cleared: `CLAUDECODE= claude ...` on macOS/Linux, or
`$env:CLAUDECODE=''; claude ...` in PowerShell.)

STEP 0 - Make sure I have a PostHog account. PostHog is free to start (generous
free tier, no credit card). If I don't already have one, tell me to sign up at
https://posthog.com first and come back - I need to be logged in for the connect
step.

STEP 1 - Add the server. It's free and hosted, and needs NO API key - you
authenticate with a browser login, not a pasted secret. Use USER scope so it works
in every project:

  claude mcp add --transport http posthog https://mcp.posthog.com/mcp -s user

STEP 2 - Connect it. Tell me to run `/mcp` in this session and choose "posthog" -
a browser window opens to log in to PostHog and authorize the connection. PostHog
auto-routes me to my data region (US or EU) based on the account I log in with, so
the URL is the same either way - I don't change it for EU.

STEP 3 - Verify it actually works. Once I've authorized, run `claude mcp list` and
confirm "posthog" shows as connected. Then, as a real test, ask PostHog for
something small from my account - for example list my projects, or pull a recent
insight or a few recent events - so we both see you reading real analytics. Tell me
what you found.

If the browser login doesn't appear or the connection fails, the usual fixes are:
confirm I'm logged in to PostHog in that browser, re-run `/mcp` and choose
"Reconnect", and make sure my Claude Code is up to date (`claude update`). Walk me
through these one at a time rather than dumping them all at once.

When you ship a new feature, you usually have no idea what happens to it. Did people find it? Use it? Get confused and leave? You can't see any of it, so you ship the next thing on a gut feeling - and Claude Code is flying just as blind as you are, writing code with zero idea of how the product is actually being used.

PostHog MCP fixes that. PostHog is a free product-analytics tool, and its MCP server connects that real analytics data straight into Claude Code. Once it's wired in, Claude can pull the actual numbers about your product - which features get used, where people drop off, what's quietly broken - and answer from real insight instead of guesses. So instead of "what should I build next," you ask "where are people leaving and what needs fixing," and Claude reads the data and tells you.

It's free and there's no API key to paste - you authorize it with a quick browser login, and PostHog sends you to your own region (US or EU) automatically. The prompt below adds the server at user scope so it works in every project, checks whether you've already got it before changing anything, connects it, and verifies Claude can read your analytics at the end - all in about 30 seconds.

Free tools

Reference

Cheat Sheet

Every Claude Code slash command, keyboard shortcut, hook event, and CLI flag in one searchable page, checked against the version installed right now.

Try tool
Config generator

Hooks Preset Generator

Pick the automations you want, and get a validated Claude Code hooks block for settings.json, grouped and merged the same way the official examples are.

Try tool
Config generator

Permissions Generator

Pick a safe starting mode and your OS, and get a validated allow/deny permissions block for settings.json in under a minute.

Try tool
Config generator

Output Style Generator

Pick a persona and a tone, and get a valid output-style file with correct frontmatter, ready to save and switch to.

Try tool
Config generator

Subagent Generator

Describe the job in plain English, pick a specialty, and get a complete subagent file ready to save.

Try tool
Config generator

MCP Config Generator

Pick the MCP servers you use and get the exact claude mcp add commands or a ready .mcp.json block, scoped and copy-pasteable.

Try tool
Config generator

Slash Command Generator

Answer 7 quick questions and get a custom Claude Code slash command with valid frontmatter, ready to drop into .claude/commands/.

Try tool
Config generator

Statusline Generator

Toggle the segments you want, watch the exact statusline render live, then copy the tested script and settings.json block.

Try tool
Config generator

settings.json Generator

Pick permission rules, hook presets, env vars, and a model override one step at a time, then copy or download the finished settings.json.

Try tool
Config generator

CLAUDE.md Generator

Answer 7 quick questions, get a tuned CLAUDE.md for your project in 30 seconds.

Try tool
Template library

Claude Code Templates

A curated library of copy-paste Claude Code templates: subagents, hooks, slash commands, settings, and CLAUDE.md starters, each one explained and pulled from a setup that gets used every day.

Try tool
Token scanner

UsageCut

Scan your Claude Code setup in 30 seconds and see exactly what is burning your tokens - bloated context, heavy MCP servers, and settings quietly draining your usage limits.

Try tool

About ClockedCode

What is ClockedCode?

A dashboard with the full curated stack - MCP servers, skills, hooks, settings, subagents, and a tuned global CLAUDE.md - plus a generator that compiles your selections into one master prompt you paste straight into Claude Code.

Who is it for?

Anyone who already uses Claude Code. You check a few boxes and paste a prompt - no scripting, no config spelunking, no terminal gymnastics required.

Which tools are in the stack?

A hand-picked set across three jobs - tools for writing better code, tools for connecting your tools, and tools for checking your work. Every one is something I actually run day to day - curated, never padded to hit a number.

One-time really means forever?

Forever. One payment unlocks lifetime access, and updates ship to you free as the ecosystem changes. No renewal, no surprise upsell.