getunblocked.com/integrations/posthog

Connect PostHog with Unblocked to give AI agents product analytics context

Unblocked integrates with PostHog to give AI coding agents and developers cited context from your dashboards, notebooks, surveys, experiments, and feature flags—reconciled with your code, pull requests, issues, incidents, and documentation.

PostHog integration details

Category
Data & Analytics
Indexed data
dashboards, notebooks, surveys, experiments, feature flags
Supported products
PostHog Cloud in the US and EU regions
Works with
Claude Code, Cursor, Windsurf, GitHub Copilot, Codex, OpenCode, VS Code — via one MCP server connection
Availability
Paid Unblocked plans; a team admin must connect and configure the data source
Content reviewed

What the PostHog integration adds

PostHog records how people use your product and how your team measures and improves that experience. Unblocked makes selected PostHog projects usable as cited context when an AI agent or developer needs to understand product behavior, an experiment, a survey result, or the rollout state of a feature.

PostHog context is reconciled with your code, pull requests, issues, incidents, and docs. This lets an agent connect a product signal—such as an onboarding drop-off or a change in feature adoption—to the implementation and engineering history behind it.

Once connected, any MCP-compatible coding agent—including Claude Code, Cursor, Windsurf, GitHub Copilot, and Codex—can research this context through one Unblocked MCP server connection. Unblocked is the MCP context layer; agents do not connect directly to PostHog.

What you get

  • Dashboards and notebooksGive agents the definitions, analysis, and product context your team already uses to understand performance.
  • SurveysBring customer feedback into engineering research alongside related code, issues, and documentation.
  • ExperimentsConnect experiment context to the code and pull requests that implement the tested experience.
  • Feature flagsHelp agents understand rollout context and relate a feature flag to the code paths and changes behind it.
  • Project scopingSelect the PostHog organization and projects Unblocked should reference.
  • Cited source linksAnswers link back to the original PostHog resource so developers can verify the source.
  • Cross-source synthesisCombine PostHog product analytics context with code, pull requests, issues, incidents, documentation, and conversations in one knowledge graph.
  • Permission-aware answersWhen Data Shield is enabled for PostHog, Unblocked respects each user's access to PostHog projects and resources.

How to connect PostHog to Unblocked

Need screenshots or troubleshooting?This is a concise connection summary. Follow the complete setup guide ↗

Prerequisites

  • An Unblocked account on a paid plan.
  • Team admin access in Unblocked.
  • A PostHog Cloud account in the US or EU region with access to the organization and projects you want to connect.
  • An MCP-compatible coding agent such as Claude Code, Cursor, Windsurf, GitHub Copilot, Codex, OpenCode, or VS Code to use the context in your editor.

Step 1: Connect PostHog to Unblocked

  1. In Unblocked, go to Settings → Data Sources → Connect another data source.
  2. Under Data & Analytics, select PostHog.
  3. Sign in to PostHog and authorize Unblocked using OAuth. You do not need to create or copy an API key.
  4. Select the PostHog organization and projects that Unblocked should reference.
  5. Click Save Settings. Unblocked begins ingesting dashboards, notebooks, surveys, experiments, and feature flags from the selected projects.

You can later change project access under Settings → Data Sources → PostHog. To include future projects automatically, open Manage Preferences and enable Automatically include newly created projects.

Step 2: Install the Unblocked MCP server

On macOS or Linux, one command auto-detects and configures your supported agents (Claude Code, Cursor, Windsurf, GitHub Copilot, Codex, OpenCode, VS Code):

curl -fsSL https://getunblocked.com/install-mcp.sh | bash

On Windows, or when you prefer remote MCP, add the server manually using the configuration below, or follow the manual install guide ↗.

Claude Code

Add the remote server, then run /mcp in Claude Code, select unblocked, and log in via OAuth:

claude mcp add -s user --transport http unblocked https://getunblocked.com/api/mcpsse

Cursor

Open View: Open MCP Settings → Add Custom MCP, add the server, then click Connect to authenticate via OAuth:

{
  "mcpServers": {
    "unblocked": {
      "url": "https://getunblocked.com/api/mcpsse"
    }
  }
}

Other MCP clients

Any MCP-compatible client (Windsurf, Codex, VS Code, Claude Desktop, and others) can connect to the remote server with OAuth:

https://getunblocked.com/api/mcpsse

Connect PostHog to Claude Code, Cursor, and other AI agents

To give Claude Code, Cursor, GitHub Copilot, Codex, or another MCP-compatible AI coding agent access to PostHog context, connect PostHog to Unblocked and add the single Unblocked MCP server to your agent.

Unblocked acts as the MCP context layer for your PostHog data, searching dashboards, notebooks, surveys, experiments, feature flags alongside your other connected sources and returning cited results through these tools:

  • context_researchResearches a focused question across PostHog resources, code, pull requests, issues, incidents, docs, and conversations, then returns a synthesized answer with source citations.
  • context_get_urlsFetches the full content behind a supported PostHog resource URL that an agent encounters, with links back to the original source.
  • research_taskInvestigates a broader product or engineering question across PostHog and your connected development tools, producing a research brief when you do not know which source to start from.

Questions to ask an AI agent about PostHog

Questions you (or your agent) can ask Unblocked about your PostHog data:

  • Where are users dropping out of onboarding?
  • Which platforms account for the onboarding drop-off, and what code handles that step?
  • How many users are affected by this drop-off?
  • Were there relevant pull requests or incidents during that period?
  • How has activation changed this quarter?
  • Is adoption of the new editor increasing week over week?
  • How did usage change after July 15?
  • How does our PostHog dashboard define activation?
  • Which experiment or feature flag controls this experience, and where is it implemented?

PostHog integration FAQ

What PostHog data does Unblocked index?

Unblocked indexes dashboards, notebooks, surveys, experiments, and feature flags from the PostHog projects selected by a team admin. Answers include links back to the original PostHog resources.

Can AI coding agents access PostHog through MCP?

Yes. Connect PostHog to Unblocked, then connect Claude Code, Cursor, GitHub Copilot, Codex, or another compatible agent to the Unblocked MCP server. Unblocked retrieves relevant PostHog context and returns it with citations alongside related engineering sources.

Does the Unblocked PostHog integration require an API key?

No. The integration uses OAuth, so an admin signs in to PostHog and authorizes Unblocked without creating or copying an API key.

Which PostHog regions are supported?

Unblocked supports PostHog Cloud organizations hosted in the US and EU regions.

Is the PostHog integration available on every Unblocked plan?

No. The PostHog integration is available on paid Unblocked plans, and a team admin must connect and configure it.

How does Unblocked handle PostHog permissions?

When Data Shield is enabled for PostHog, Unblocked respects each user's access to PostHog projects and resources when answering questions.

Get started with Unblocked