Why connect PostHog to Claude?
PostHog knows what people do on your site and in your product. The ad platforms know what you paid to get them there. With Lemonado in Claude, one question can follow a visitor from the ad they clicked to the moment they activate, and Claude turns what it finds into an artifact.
All your PostHog data
Events, pageviews and their properties, ready to ask about.
Always today's numbers
Persons with UTM and referrer properties, synced from PostHog automatically, so answers use today's numbers.
Connect all your tools
Questions like "What does an activated user cost?" use PostHog and Mixpanel, GA4 at once.
How to connect PostHog to Claude
Before you start
- A PostHog account you can sign in to
- A Claude account
- A Lemonado account (the free trial works)
- 1
Connect PostHog in Lemonado
In Lemonado, open Connectors, find PostHog and sign in. Sign in to PostHog and pick the project. Choose the EU region if your PostHog lives there.
- 2
Turn on external access
In the company's settings, open External tools, turn the connection on, choose which sources it can reach and copy the server URL.
texthttps://mcp.lemonado.io/mcp - 3
Open Claude's connectors
Go to claude.ai and open Customize → Connectors. Click + Add, then Add custom connector.
- 4
Add Lemonado
Name it Lemonado and paste the server URL. Continue, review the sign-in settings Claude detects, and choose Sign in now.
texthttps://mcp.lemonado.io/mcp - 5
Sign in and turn it on
Approve access in the Lemonado window. Back in Claude, open a new chat and switch Lemonado on from the connectors menu.
- 6
Ask Claude about PostHog
Try "Split last month's spend on Google Ads, Meta and LinkedIn by the PostHog users each channel sent who finished onboarding. Show the cost per onboarded user in an artifact." Or ask: "Which pages turn visitors into signups?" or "What did the experiment teach us?"
Good to know
- Custom connectors work on Claude Free, Pro, Max, Team and Enterprise. Free accounts can add one.
- On Team and Enterprise, an owner adds the connector first under Organization settings → Connectors → Add → Custom → Web. Members then connect their own accounts.
- Remote connectors belong to your Claude account, so the same connection shows up in Claude Desktop and Cowork. Requests come from Anthropic's cloud, not your computer.
What can Claude do with PostHog?
Claude reads your PostHog numbers, explains what moved and turns the answer into an artifact you can share.
Split last month's spend on Google Ads, Meta and LinkedIn by the PostHog users each channel sent who finished onboarding. Show the cost per onboarded user in an artifact.
Done. Google Ads: $68 per activated user. Meta: $91. LinkedIn: $142, but those users invite 2x more teammates. The artifact shows it by week.
Source: PostHog + ads
Build an artifact of last month's top landing pages from PostHog web analytics, with sessions, signup rate and where those visitors came from.
Done. /pricing converts best at 8.2%. The comparison pages bring 18% of sessions at 1.1%, mostly from organic search.
Source: PostHog
Summarise our last three PostHog experiments: what we tested, the result and what we shipped.
Two winners and one flat result. The onboarding checklist lifted day 7 activation 5 points and shipped; the pricing toggle made no difference.
Source: PostHog
Describe the users who are most active after 60 days: where they came from and what they did in week one.
Most came from organic search or referrals, and 70% connected a data source and invited a teammate in their first week.
Source: PostHog
Show the landing page to signup to first dashboard funnel for last month, split by first-touch UTM source.
Google Ads visitors sign up at 6.1% but only 29% create a dashboard. Organic search visitors sign up less (3.4%) but 52% create one.
Source: PostHog
Connect PostHog to another AI app.
ChatGPT
Connect PostHog to ChatGPT
Claude Code
Connect PostHog to Claude Code
Cursor
Connect PostHog to Cursor
VS Code (GitHub Copilot)
Connect PostHog to VS Code (GitHub Copilot)
Codex
Connect PostHog to Codex
Perplexity
Connect PostHog to Perplexity
Google Antigravity
Connect PostHog to Google Antigravity
Windsurf (Devin Desktop)
Connect PostHog to Windsurf (Devin Desktop)
Zed
Connect PostHog to Zed
n8n
Connect PostHog to n8n
Other integrations for Claude
All Claude integrations- Mixpanel in ClaudeAsk Claude, ChatGPT or Cursor which campaigns bring users who stick, with Mixpanel next to your ad spend.
- Google Analytics in ClaudeAsk Claude, ChatGPT or Cursor about GA4 traffic, conversions and funnels, next to your ad spend.
- Stripe in ClaudePut Stripe revenue next to your ad spend in Claude, ChatGPT or Cursor.
- Google Ads in ClaudeAsk Claude, ChatGPT or Cursor about your Google Ads campaigns, search terms and spend.
- Amplitude in ClaudeAsk Claude, ChatGPT or Cursor which campaigns bring Amplitude users who stick around.
- Snowflake in ClaudeAsk Claude, ChatGPT or Cursor about the numbers in your Snowflake warehouse, with live ad spend next to them.
Reading this as an AI agent?
Everything an agent needs to set this up, in plain text. Paste this page's link into Claude and ask it to connect you, or copy the block.
# Connect PostHog to Claude (Lemonado MCP) - Server URL: https://mcp.lemonado.io/mcp - Transport: Streamable HTTP - Auth: OAuth; the user signs in to Lemonado in the browser. No API keys. - In Lemonado: connect the PostHog project. Sign in to PostHog and pick the project. Choose the EU region if your PostHog lives there. - In Claude: Customize → Connectors → Add custom connector ```text https://mcp.lemonado.io/mcp ``` One-click install: https://claude.ai/directory/lemonado First question to try: "Split last month's spend on Google Ads, Meta and LinkedIn by the PostHog users each channel sent who finished onboarding. Show the cost per onboarded user in an artifact." More: https://lemonado.io/integrations/posthog · https://lemonado.io/llms.txt
Frequently Asked Questions
PostHog's own server is the right tool for creating flags, launching experiments and editing insights. Lemonado does a different job: questions where PostHog data meets ad spend or Stripe revenue. Plenty of teams connect both.
Yes. PostHog's official MCP server is hosted, so Claude can use it too. It covers PostHog only. Lemonado covers PostHog plus your ad platforms, GA4 and the rest of your stack in one connection, so Claude can answer questions across them.
In Claude, open Customize → Connectors and check that Lemonado says Connected, then switch it on from the connectors menu in the chat. In Lemonado, check that PostHog is connected and External tools is on for the company. If sources are missing, check that your site keeps UTM parameters through redirects. PostHog can only record the source it sees on the first page.
Yes, if both are connected in Lemonado. One connection reaches every source you allow, so you can ask things like "Divide last month's spend on Google Ads, Meta and LinkedIn by the PostHog users each one sent who completed onboarding."
MCP is included in Lemonado's paid plans and in the free trial, so you can try it before you pay.
Still have a question?
Shoot us an email at hello@lemonado.io.
Try for freeStop fighting with data. Start feeding your AI.
Connect your data to AI and free your team from reporting and busywork.
Try Lemonado free