PostHog MCP

MCP provider for https://mcp.posthog.com/mcp

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

Utilities & Tools
FIELDS

Tools From This Provider (43)

Update insight

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

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...

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...

List all events

List all tracked events in your PostHog project. Use this to discover what analytics events exist before running queries. Returns event names, descriptions, and volume data. Essential first step for...

Search docs

Use this tool to search the PostHog documentation for information that can help the user with their request. Use it as a fallback when you cannot answer the user's request using other tools in this...

Create insight from query

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

Get properties

List available properties for events or persons. Event properties include custom attributes sent with analytics events (e.g., page URL, referrer, device type). Person properties are user attributes...

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 "search-docs" tool to find documentation on...

Get organizations

Get the organizations the user has access to.

Get dashboard

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

Get feature flag definition

Get the definition of a feature flag. You can provide either the flagId or the flagKey. If you provide both, the flagId will be used.

Create dashboard

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

Get all experiments

Get all experiments in the project.

Get all survey response 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...

Get survey response 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.

Delete survey

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

Delete experiment

Delete an experiment by ID.

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. The total cost is...

Add insight to dashboard

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

Update survey

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

Get all feature flags

Get all feature flags in the project.

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...

Update dashboard

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

Switch active 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.

Delete feature flag

Delete a feature flag in the project.

Create experiment

Create a comprehensive A/B test experiment. PROCESS: 1) Understand experiment goal and hypothesis 2) Search existing feature flags with 'feature-flags-get-all' tool first and suggest reuse or new key...

Update feature flag

Update a new 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...

Get all dashboards

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

Get all surveys

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

Get all 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...

Get error details

Use this tool to get the details of an error in the project.

Generate SQL

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...

Update experiment

Update an existing experiment by ID. Can update name, description, lifecycle state, variants, metrics, and other properties. RESTART WORKFLOW: To restart a concluded experiment, set end_date=null,...

Switch active 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.

Get projects

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

Get insight

Get a specific insight by ID.

Get organization details

Get the details of the active organization.

List errors

Use this tool to list errors in the project.

Query insight

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

Delete dashboard

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

Get survey

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

Get experiment details

Get details of a specific experiment by ID.

Delete insight

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

Provider Information

CategoryUtilities & Tools
Auth TypeFIELDS
AddedDecember 2, 2025
UpdatedDecember 20, 2025
Used By Tools
43

Need Help?

Having trouble configuring PostHog MCP? Check the available resources below.

PostHog MCP MCP Server - MCP Bundles • MCP Providers