MCP Servers
PostHog logo

PostHog

GA

Explore product analytics, session replays, and feature flags in one place so agents can debug and understand user behavior.

MCP ServersProduct AnalyticsSession ReplayFeature Flags

How it works

Every agent request passes through Ferentin policy before it reaches PostHog.
  1. AI agentAsks for something
  2. Ferentin policies
    • OAuth 2.0 consent
    • Granular scope selection
    • Audit logging
  3. PostHog MCP serverAuthorized connection
  4. Governed resultMasked, logged, returned

What you can do with PostHog

  • Discover

    Search and browse what exists, without opening the content itself.

    37 tools

  • Access

    Read content and metadata, subject to masking policy.

    48 tools

  • Manage

    Create, update, organise and remove items.

    8 tools

Technical capabilities114 tools

Discover

  • List tracing attribute values
  • List tracing span attributes
  • List tracing service names
  • List all cohorts
  • List dashboard widget catalog
  • Search documentation
  • List error tracking alerts
  • Get all experiments
  • List shared experiment metrics
  • List heatmap interactions for a page
  • List saved heatmaps
  • Query insight
  • Get all insights
  • List clustering jobs
  • List evaluations
  • List evaluation report configs
  • List prompts
  • List review queue items
  • List taggers
  • List trace reviews
  • List alert events
  • List log alerts
  • List log attribute values
  • List log attributes
  • Query logs sparkline
  • List persons
  • Query tracing spans
  • Query error tracking issue
  • Query error tracking issue events
  • Query error tracking issues list
  • Get LLM trace
  • Query logs
  • List scheduled changes for feature flags
  • List session recording playlists
  • List session summaries
  • List individual survey responses with resolved question text.
  • List usage metrics

Access

  • Count spans
  • Retrieve trace spans
  • Get cohort
  • Get dashboard
  • Get all dashboards
  • List data pipeline health issues
  • Get experiment details
  • Get all experiments (deprecated)
  • Get experiment results
  • Get shared experiment metric
  • Get all feature flags
  • Get feature flag definition
  • Get feature flag activity log
  • Look up feature flag keys by ID
  • Get dependent feature flags
  • Get feature flag evaluation reasons
  • Get my evaluated feature flags
  • Get feature flag status
  • Get LLM costs
  • Get a saved heatmap
  • Get insight
  • Get insight activity log
  • Get recent insight activity across the project
  • Get most-viewed insights
  • Get clustering job
  • Get evaluation
  • Get evaluation report config
  • Get prompt
  • Get review queue item
  • Get trace review
  • Get log alert
  • Count logs
  • Count logs by time bucket
  • Get person cohorts
  • Get person
  • Get person property values
  • Get project
  • Get a scheduled change
  • Get session recording
  • Get session recording playlist
  • Get session summary
  • Get a specific survey by ID.
  • List surveys in the project (server-side search + filters).
  • Get usage metric
  • Get user
  • Get saved query
  • List saved queries
  • Get run history

Manage

  • Run dashboard insights
  • Execute SQL query
  • Get sync job logs
  • Test feature flag evaluation
  • Get user blast radius
  • List evaluation report runs
  • List services with stats
  • Summarize survey responses (per question, or survey-wide headline).

Other

  • Break down spans by attribute value
  • Aggregate span statistics
  • Trace duration distribution (histogram)
  • Span counts over time (sparkline)
  • Aggregate span call tree
  • List connected GitHub sources
  • Calculate experiment running time
  • Get experiment velocity stats
  • Get experiment timeseries results
  • Discover tables and sync methods for a source
  • List sync jobs for a source
  • Get sessions behind heatmap coordinates
  • Get my LLM spend analysis
  • Test Hog tagger code
  • PR lifecycle timeline
  • List pull requests with CI status
  • Summarize session recording
  • Get response statistics for a specific survey.
  • Get aggregated response statistics across all surveys.
  • Summarize web analytics
  • Per-workflow CI health

Overview

PostHog is an all-in-one product analytics platform combining event analytics, session replay, feature flags, and experimentation.

Ferentin integration

Once OAuth2 authorization is granted, an AI agent can run analytics queries, review session replays, and manage feature flags to investigate product behavior.

Frequently asked about PostHog

What can AI agents do with PostHog through Ferentin?
Ferentin exposes 114 PostHog MCP tools to your AI agents, grouped as Discover (37 tools), Access (48 tools) and Manage (8 tools). Every call is checked against your Ferentin policies before it reaches PostHog.
How does Ferentin secure PostHog access?
Requests through the PostHog integration are covered by OAuth 2.0 consent, granular scope selection and audit logging. These controls are applied by Ferentin, not by PostHog, so they hold across every connected agent.
What permissions does the PostHog integration require?
The PostHog integration requests 115 OAuth 2.0 scopes: action:read (read access); action:write (elevated access); account:read (read access); account:write (elevated access); activity_log:read (read access); agents:read (read access); agents:write (elevated access); alert:read (read access); alert:write (elevated access); annotation:read (read access); annotation:write (elevated access); approvals:read (read access); batch_export:read (read access); batch_export:write (elevated access); business_knowledge:read (read access); business_knowledge:write (elevated access); cohort:read (read access); cohort:write (elevated access); comment:read (read access); dashboard:read (read access); dashboard:write (elevated access); early_access_feature:read (read access); early_access_feature:write (elevated access); endpoint:read (read access); endpoint:write (elevated access); engineering_analytics:read (read access); error_tracking:read (read access); error_tracking:write (elevated access); evaluation:read (read access); evaluation:write (elevated access); event_definition:read (read access); event_definition:write (elevated access); experiment:read (read access); experiment:write (elevated access); experiment_holdout:read (read access); experiment_holdout:write (elevated access); experiment_saved_metric:read (read access); experiment_saved_metric:write (elevated access); external_data_source:read (read access); external_data_source:write (elevated access); feature_flag:read (read access); feature_flag:write (elevated access); file_system:read (read access); file_system:write (elevated access); group:read (read access); health_issue:read (read access); heatmap:read (read access); heatmap:write (elevated access); hog_flow:read (read access); hog_flow:write (elevated access); hog_function:read (read access); hog_function:write (elevated access); insight:read (read access); insight:write (elevated access); insight_variable:write (elevated access); integration:read (read access); integration:write (elevated access); llm_analytics:read (read access); llm_analytics:write (elevated access); llm_prompt:read (read access); llm_prompt:write (elevated access); llm_provider_key:read (read access); llm_skill:read (read access); llm_skill:write (elevated access); logs:read (read access); logs:write (elevated access); marketing_analytics:read (read access); mcp_analytics:read (read access); mcp_analytics:write (elevated access); metrics:read (read access); notebook:read (read access); notebook:write (elevated access); organization:read (read access); organization:write (elevated access); organization_member:read (read access); person:read (read access); person:write (elevated access); project:read (read access); project:write (elevated access); property_definition:read (read access); query:read (read access); replay_scanner:read (read access); replay_scanner:write (elevated access); session_recording:read (read access); session_recording:write (elevated access); session_recording_playlist:read (read access); session_recording_playlist:write (elevated access); signal_scout:read (read access); signal_scout:write (elevated access); subscription:read (read access); subscription:write (elevated access); survey:read (read access); survey:write (elevated access); tagger:read (read access); tagger:write (elevated access); ticket:read (read access); ticket:write (elevated access); task:read (read access); task:write (elevated access); tracing:read (read access); field_note:read (read access); field_note:write (elevated access); usage_metric:read (read access); usage_metric:write (elevated access); user:read (read access); user:write (elevated access); user_interview:read (read access); user_interview:write (elevated access); visual_review:read (read access); visual_review:write (elevated access); warehouse_table:read (read access); warehouse_table:write (elevated access); warehouse_view:read (read access); warehouse_view:write (elevated access); web_analytics:read (read access)
How do I connect PostHog to Ferentin?
Open the Ferentin admin console, add PostHog as a new connection and authenticate with OAuth 2.0. You then choose which permissions and which tools your agents may use, and the connection goes live for everyone covered by your policies.
Is the PostHog integration generally available?
Yes. The PostHog integration is generally available on Ferentin, including the free tier.