PostHog

PostHog is an open-source product analytics platform for tracking events, feature flags, experiments, session recordings, and user behavior.

This PostHog MCP server is compatible with any MCP client including Claude Desktop, Cursor, and other Model Context Protocol implementations.

Analytics & Insights
FIELDS

Tools From This Provider (43)

Posthog Run Query

Run analytics queries to analyze events, pageviews, sessions, and user behavior. Use this to answer questions about...

Posthog Get Experiments

Get all experiments in the project.

Posthog Search Docs

Search the PostHog documentation for how to implement features, integrate SDKs, or use PostHog features. Use this when...

Posthog Get Surveys

Get all surveys in the project with optional filtering. Can filter by search term or use pagination.

Posthog Get Projects

Fetches projects that the user has access to in the current organization.

Posthog Create Dashboard

Create a new dashboard in the project. Requires name and optional description, tags, and other properties.

Posthog Create Insight

Create an insight from a query that you have previously tested with 'posthog_run_query'. You should check the query...

Posthog Create Feature Flag

Creates a new feature flag in the project. Once you have created a feature flag, you should: Ask the user if they want...

Posthog Get Surveys Global Stats

Get aggregated response statistics across all surveys in the project. Includes event counts (shown, dismissed, sent),...

Posthog Get Feature Flag

Get the definition of a feature flag. You can provide either the flag_id or the flag_key. If you provide both, the...

Posthog Get Organization Details

Get the details of the active organization.

Posthog Get Experiment

Get details of a specific experiment by ID.

Posthog Add Insight To Dashboard

Add an existing insight to a dashboard. Requires insight ID and dashboard ID. Optionally supports layout and color...

Posthog Switch Project

Change the active project from the default project. You should only use this tool if the user asks you to change the...

Posthog List Errors

List error tracking issues grouped by fingerprint. Returns aggregated statistics including exception types, counts,...

Posthog Update Experiment

Update an existing experiment by ID. Can update name, description, lifecycle state, variants, metrics. To restart a...

Posthog List Event Definitions

Retrieve all event definitions for the project. Events are the foundation of PostHog analytics - use this to discover...

Posthog Get Llm Costs

Fetches the total LLM daily costs for each model for a project over a given number of days. If no number of days is...

Posthog Get Survey Stats

Get response statistics for a specific survey. Includes detailed event counts (shown, dismissed, sent), unique...

Posthog Create Survey

Creates a new survey in the project. Surveys can be popover or API-based and support various question types including...

Posthog Get Dashboards

Get all dashboards in the project with optional filtering. Can filter by pinned status, search term, or pagination.

Posthog Query Insight

Execute a query on an existing insight to get its results/data. Provide the insight ID to retrieve the current query...

Posthog Delete Feature Flag

Delete a feature flag in the project. CAUTION: This action cannot be undone.

Posthog List Properties

Retrieve property definitions for events, persons, or groups. Properties are metadata attached to events and users -...

Posthog Get Survey

Get a specific survey by ID. Returns the survey configuration including questions, targeting, and scheduling details.

Posthog Get Experiment Results

Get comprehensive experiment results including all metrics data (primary and secondary) and exposure data. This tool...

Posthog Delete Survey

Delete a survey by ID (soft delete - marks as archived).

Posthog Switch Organization

Change the active organization from the default organization. You should only use this tool if the user asks you to...

Posthog Get Insight

Get a specific insight by ID.

Posthog Delete Dashboard

Delete a dashboard by ID (soft delete - marks as deleted).

Posthog Delete Experiment

Delete an experiment by ID. CAUTION: This action cannot be undone.

Posthog Update Dashboard

Update an existing dashboard by ID. Can update name, description, pinned status or tags.

Posthog Update Insight

Update an existing insight by ID. Can update name, description, filters, and other properties. You should get the...

Posthog Create Experiment

Create a comprehensive A/B test experiment. PROCESS: 1) Understand experiment goal and hypothesis 2) Search existing...

Posthog Get Organizations

Get the organizations the user has access to.

Posthog Delete Insight

Delete an insight by ID (soft delete - marks as deleted).

Posthog Get Error Details

Get detailed information about a specific error issue including stack traces, occurrence counts, affected...

Posthog Get Insights

Get all saved analytics insights (charts, reports, dashboards tiles) in the project. Insights are saved queries showing...

Posthog Get Dashboard

Get a specific dashboard by ID. The response will include insights / tiles that are on the dashboard.

Posthog Update Survey

Update an existing survey by ID. Can update name, description, questions, scheduling, and other survey properties.

Posthog Update Feature Flag

Update a feature flag in the project. To enable a feature flag, you should make sure it is active and the rollout...

Posthog Generate Hogql

Generate HogQL (SQL) from natural language questions about your analytics data. Use when you need complex event...

Posthog Get Feature Flags

Get all feature flags in the project.

Provider Information

CategoryAnalytics & Insights
Auth TypeFIELDS
AddedNovember 16, 2025
UpdatedFebruary 23, 2026
Used By Tools
43

Quick Links

Need Help?

Having trouble configuring PostHog? Check the available resources below.

PostHog MCP Server - MCP Bundles • MCP Providers