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 Get Organizations

Get the organizations the user has access to.

Posthog Get Organization Details

Get the details of the active organization.

Posthog Switch Organization

Change the active organization from the default organization. You should only use this tool if the user asks you to change the organization - otherwise, the default organization will be used.

Posthog Get Projects

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

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 project - otherwise, the default project will be used.

Posthog Get Feature Flags

Get all feature flags in the project.

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 flag_id will be used.

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 to add it to their codebase, Use the 'posthog_search_docs' tool to find...

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 percentage is set to 100 for the group you want to target. To disable a feature flag,...

Posthog Delete Feature Flag

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

Posthog Get Dashboards

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

Posthog Get Dashboard

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

Posthog Create Dashboard

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

Posthog Update Dashboard

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

Posthog Delete Dashboard

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

Posthog Add Insight To Dashboard

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

Posthog Get Experiments

Get all experiments in the project.

Posthog Get Experiment

Get details of a specific experiment by ID.

Posthog Get Experiment Results

Get comprehensive experiment results including all metrics data (primary and secondary) and exposure data. This tool fetches the experiment details and executes the necessary queries to get complete...

Posthog Create Experiment

Create a comprehensive A/B test experiment. PROCESS: 1) Understand experiment goal and hypothesis 2) Search existing feature flags first 3) Help user define success metrics 4) Use...

Posthog Update Experiment

Update an existing experiment by ID. Can update name, description, lifecycle state, variants, metrics. To restart a concluded experiment, set end_date=null, conclusion=null. To make it draft again,...

Posthog Delete Experiment

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

Posthog Get Insights

Get all saved analytics insights (charts, reports, dashboards tiles) in the project. Insights are saved queries showing trends, funnels, retention, paths, and other visualizations. Filter by...

Posthog Get Insight

Get a specific insight by ID.

Posthog Query Insight

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

Posthog Create Insight

Create an insight from a query that you have previously tested with 'posthog_run_query'. You should check the query runs before creating an insight. Do not create an insight before running the query,...

Posthog Update Insight

Update an existing insight by ID. Can update name, description, filters, and other properties. You should get the insight before updating it to see its current query structure, and only modify the...

Posthog Delete Insight

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

Posthog Run Query

Run analytics queries to analyze events, pageviews, sessions, and user behavior. Use this to answer questions about event volume, metrics, conversion rates, trends over time, and funnels. Supports...

Posthog Generate Hogql

Generate HogQL (SQL) from natural language questions about your analytics data. Use when you need complex event analytics, custom aggregations, or queries that can't be expressed as simple...

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 provided, it defaults to 7. The results are sorted by model name.

Posthog Get Surveys

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

Posthog Get Survey

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

Posthog Get Survey Stats

Get response statistics for a specific survey. Includes detailed event counts (shown, dismissed, sent), unique respondents, conversion rates, and timing data. Supports optional date filtering.

Posthog Get Surveys Global Stats

Get aggregated response statistics across all surveys in the project. Includes event counts (shown, dismissed, sent), unique respondents, conversion rates, and timing data. Supports optional date...

Posthog Create Survey

Creates a new survey in the project. Surveys can be popover or API-based and support various question types including open-ended, multiple choice, rating, and link questions. Once created, you should...

Posthog Update Survey

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

Posthog Delete Survey

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

Posthog List Errors

List error tracking issues grouped by fingerprint. Returns aggregated statistics including exception types, counts, first/last seen timestamps, and unique users/sessions affected.

Posthog Get Error Details

Get detailed information about a specific error issue including stack traces, occurrence counts, affected users/sessions, and metadata. Useful for debugging and analyzing specific error patterns.

Posthog List Event Definitions

Retrieve all event definitions for the project. Events are the foundation of PostHog analytics - use this to discover what events are being tracked before creating queries, funnels, or experiments....

Posthog List Properties

Retrieve property definitions for events, persons, or groups. Properties are metadata attached to events and users - use this to discover available dimensions for filtering, breakdowns, and targeting...

Posthog Search Docs

Search the PostHog documentation for how to implement features, integrate SDKs, or use PostHog features. Use this when you need to help users add PostHog to their codebase or understand how to use...

Provider Information

CategoryAnalytics & Insights
Auth TypeFIELDS
AddedNovember 16, 2025
UpdatedJanuary 14, 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