Analytics

PostHog MCP Server

Connect your account, then chat with AI to run tools.

Product analytics and session replay platform. Provides event tracking, feature flags, A/B testing, error monitoring, and user behavior insights.

Agent guide included

Opens MCPBundles Studio with this server selected. After sign-in, chat and run tools from the same thread.

AI Skill
SKILL.md

Domain knowledge for PostHog MCP — workflow patterns, data models, and gotchas for your AI agent.

PostHog is a full-featured product analytics platform that helps teams understand user behavior, run experiments, and manage feature rollouts. This MCP provider gives you access to PostHog's core analytics capabilities, experiment management, feature flags, surveys, and error tracking.

Core Capabilities

Analytics & Insights: Query event data, create and manage insights, run custom analytics queries to understand user behavior patterns. Access event definitions and property schemas to understand your data structure.

Experimentation: Create, manage, and analyze A/B tests and feature experiments. Get detailed results including metrics data, exposure statistics, and performance insights across variants.

Feature Management: Create, update, and delete feature flags to control feature rollouts and targeting. Manage flag states and configurations for gradual releases or targeted user segments.

User Research: Design and deploy surveys with various question types (open-ended, rating scales, multiple choice). Target specific user segments and analyze response patterns across your user base.

Error Monitoring: Track and investigate application errors, access error details, and monitor error trends across your project.

Domain Model

PostHog organizes data around projects within organizations. Events flow into projects and are analyzed through insights, experiments reference these events for success metrics, and feature flags control user experiences. The provider can switch between accessible organizations and projects as needed.

Key Considerations

Always test queries before creating insights to ensure they return expected data. When creating experiments, establish clear hypotheses and success metrics upfront. Feature flag changes can immediately impact user experience, so coordinate with your development team. Survey targeting and timing significantly affect response rates and data quality.

The provider includes extensive documentation resources covering error tracking implementation across different platforms and frameworks.

Frequently Asked Questions

What is the PostHog MCP server?

Product analytics and session replay platform. Provides event tracking, feature flags, A/B testing, error monitoring, and user behavior insights. It provides tools that AI agents can use through the Model Context Protocol (MCP).

How do I connect PostHog MCP to my AI agent?

Add the MCPBundles server URL to your MCP client configuration (Claude Desktop, Cursor, VS Code, etc.). The URL format is: https://mcp.mcpbundles.com/bundle/posthog-mcp. Authentication is handled automatically.

What authentication does PostHog MCP require?

PostHog MCP uses One-click sign in or API Key. PostHog MCP requires credentials. Connect via MCPBundles and authentication is handled automatically.

Setup Instructions

Connect PostHog MCP to any MCP client in minutes

MCP URLhttps://mcp.mcpbundles.com/bundle/posthog-mcp

One-click install:

The link prefills the Add custom connector dialog — you still review the values and click Add, then Connect to complete OAuth.

Or add manually

  1. Open claude.ai → Settings → Connectors.
  2. Click the + button and choose Add custom connector.
  3. Set Name to PostHog MCP and paste the MCP URL into Remote MCP server URL.
  4. Click Add. PostHog MCP will appear under Not connected — select it and click Connect to complete OAuth.
Name: PostHog MCP
Remote MCP server URL: https://mcp.mcpbundles.com/bundle/posthog-mcp
Authentication: OAuth

Custom connectors at claude.ai require a paid Claude plan (Pro, Max, Team, or Enterprise).

Maintain this listing

Operate PostHog? You can take over the listing's metadata.

Operate PostHog MCP?

Take over this listing's metadata — name, description, category, logo, website, contact email, and skill content. Verification is a 6-digit code we email to one of the maintainer addresses your server already publishes in /.well-known/security.txt or /.well-known/mcpbundles.json. Free, takes about a minute.

Sign up to claim

Ready to use PostHog?

Sign in to connect your credentials and start running tools from the chat.

PostHog MCP Server & Skill