Analytics

PostHog MCP Server

Use Studio chat to drive this server — credentials stay in your workspace.

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

Official server
Agent guide included
One-click sign in or API Key
Start Chatting

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

https://mcp.mcpbundles.com/bundle/posthog-mcp

What is MCP?

Model Context Protocol lets AI tools call external capabilities securely through a single URL. This bundle groups tools behind an MCP endpoint that many clients can use.

Use this bundle in 3 steps

  1. Copy the MCP URL above
  2. Open your AI tool and add a new MCP/connector
  3. Paste the URL and follow any auth prompts

Claude Desktop Users

Skip the manual setup! Use the .mcpb file format for one-click installation. Check the Claude Desktop tab for setup instructions.

Pick your tool tab for exact steps

Select ChatGPT, Cursor, Claude Code, or another tab for copy-paste config.

Ready to chat with PostHog?

Same flow: Studio opens on this server after sign-in. Keep chatting to call tools from the conversation.

PostHog MCP Server & Skill