Skip to main content

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

Create PostHog Account

  1. Go to https://posthog.com
  2. Sign up for an account or log in to your existing workspace
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

Connect to Nexus

  1. Add the PostHog server to your Nexus environment
  2. Enter your Personal API key when prompted
4

Test Connection

Start with a simple command like “Show me the top 10 events in my project” to verify the connection works properly.
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

Analyze event trends over time with customizable date ranges
Track conversion funnels to understand user journeys
Get all tracked events in your project
List all dashboards with their insights
Create new insights for data analysis

Feature Flags

List all feature flags with their current status
Create new feature flags for controlled rollouts
Enable, disable, or modify feature flag settings
Remove feature flags that are no longer needed

Experiments

List all A/B tests and their status
Create new A/B tests to compare variations
Retrieve results and performance metrics for experiments

Surveys

List all surveys with response rates
Create NPS, feedback, or custom surveys
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.
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.