Skip to main content

PostHog

Overview

The PostHog server enables AI assistants to interact with PostHog, an all-in-one product analytics platform that helps teams understand user behavior, test features, and make data-driven product decisions.

How to Add PostHog

  1. 1
    Create PostHog Account
    1. Go to https://posthog.com
    2. Sign up for an account or log in to your existing workspace
  2. 2
    Create Personal API Key
    1. Go to PostHog Settings > Personal API Keys (not Project API Keys)
    2. Click Create Personal API Key
    3. Select MCP Server preset when creating the key
    4. Copy the generated API key (starts with phx_)
  3. 3
    Connect to Civic
    1. Add the PostHog server to your Civic environment
    2. Enter your Personal API key when prompted
  4. 4
    Test Connection

    Start with a simple command like "Show me the top 10 events in my project" to verify the connection works properly.

tip

Use the MCP Server preset when creating your Personal API Key for optimal permissions and security.

What You Can Do

Product Analytics

Track events, analyze trends, and understand user behavior patterns

Feature Management

Create and manage feature flags for controlled rollouts

A/B Testing

Run experiments to test product changes and measure impact

User Feedback

Create surveys to gather user insights and satisfaction metrics

Available Tools

Analytics & Insights

get_trend

Analyze event trends over time with customizable date ranges

create_funnel

Track conversion funnels to understand user journeys

list_events

Get all tracked events in your project

get_dashboards

List all dashboards with their insights

create_insight

Create new insights for data analysis

Feature Flags

list_feature_flags

List all feature flags with their current status

create_feature_flag

Create new feature flags for controlled rollouts

update_feature_flag

Enable, disable, or modify feature flag settings

delete_feature_flag

Remove feature flags that are no longer needed

Experiments

list_experiments

List all A/B tests and their status

create_experiment

Create new A/B tests to compare variations

get_experiment_results

Retrieve results and performance metrics for experiments

Surveys

list_surveys

List all surveys with response rates

create_survey

Create NPS, feedback, or custom surveys

get_survey_responses

Retrieve survey responses and analytics

Use Cases

Analytics & Insights

"Show me the trend of pageviews over the last 7 days" - Track product usage patterns.

Conversion Analysis

"Create a funnel to track users from signup to first purchase" - Understand user journeys and drop-off points.

Feature Flags

"Create a feature flag called 'new-checkout' for testing our new checkout flow" - Control feature rollouts safely.

A/B Testing

"Create an A/B test to compare two button colors on our checkout page" - Optimize product decisions with data.

User Feedback

"Create an NPS survey to measure customer satisfaction" - Gather user insights systematically.

Error Monitoring

"Show me the most common errors in the last 24 hours" - Identify and prioritize bug fixes.

Dashboard Management

"Create a new dashboard for our marketing metrics" - Organize insights by team or objective.

note

PostHog provides comprehensive product analytics including event tracking, feature flags, experiments, and surveys all in one platform. Use Personal API Keys with the MCP Server preset for secure access.


Guardrails

This server supports all 14 universal guardrails. Server-specific guardrails are coming soon.