MCP / Analytics and data

PostHog MCP

PostHog product analytics: insights, events, persons, feature flags. Connect it to Claude, Codex, Cursor or any MCP client through one FlyMy.AI MCP.

Your own API key17 actionsAnalytics and data
Ask your agent
Read the first PostHog project-list response and show up to 10 accessible projects with their IDs.

Paste it into an assistant connected to FlyMy.AI. The agent picks the actions.

What PostHog MCP can do

17 actions in the FlyMy.AI catalog, the most used first. Your agent finds them through search_tools and calls the one the task needs.

ActionWhat it does
posthog_create_annotationCreate an annotation (event marker) .
posthog_create_cohortCreate a cohort (user segment) .
posthog_create_feature_flagCreate a feature flag .
posthog_get_cohortGet one cohort (user segment) . Returns cohort definition, membership count, and filters.
posthog_get_feature_flagGet one feature flag .
posthog_get_insightGet one insight (saved query/dashboard) .
posthog_get_meGet the authenticated PostHog user account.
posthog_get_personGet one person (user profile) .
posthog_list_annotationsList annotations (event markers on insight graphs) .
posthog_list_cohortsList cohorts (user segments) .
posthog_list_eventsList events .
posthog_list_feature_flagsList feature flags .
Show all 17 actions
ActionWhat it does
posthog_list_insightsList insights (saved analytics queries/dashboards) .
posthog_list_personsList persons (user profiles) .
posthog_list_projectsList all projects accessible to this user .
posthog_query_eventsQuery events with HogQL or SQL . Submit a HogQL or SQL query string and receive results.
posthog_update_feature_flagUpdate a feature flag . Partial update: name, active, filters, rollout_percentage.

Ask your agent

Requests to paste as they are. Each one runs on the actions named under it.

“Read the first PostHog project-list response and show up to 10 accessible projects with their IDs.”uses posthog_list_projects
“Find up to 10 saved PostHog insights with activation in the name in my selected project.”uses posthog_list_insights
“Read this saved PostHog insight and summarize its filters and cached results, noting the reported data freshness.”uses posthog_get_insight

Connect PostHog in a minute

One MCP for every integration. Add it once, then every MCP in the catalog is a request away.

  1. 01

    Add FlyMy.AI

    Add the FlyMy.AI MCP to your assistant with one of the commands below and sign in. No key to copy.

  2. 02

    Add your PostHog credentials

    Paste them into the PostHog connection settings once; they stay with FlyMy.AI, never in a prompt or a chat.

    • PostHog personal API key - PostHog - Settings - Personal API keys. Create key ->
    • PostHog project ID - Numeric project ID (Project settings, or in URLs /project/ID/).
  3. 03

    Ask

    Paste a request from this page. Every run shows what it cost.

Claude Code
claude mcp add --transport http flymyai https://mcp-agents.flymy.ai/mcp

Then run /mcp in Claude Code and sign in.

Codex
codex mcp add flymy --url https://mcp-agents.flymy.ai/mcp

Then run codex mcp login flymy to sign in.

claude.ai and Claude Desktop
https://mcp-agents.flymy.ai/mcp

Settings, Connectors, Add custom connector: paste this URL.

Pay per run

FlyMy.AI bills the run: the model and the tool's seconds. Calls go to your own PostHog account, under its plan and limits. No seats and no minimum.

Go to the source

From the FlyMy.AI platform catalog of 2026-10-31: name, description, actions and setup as the platform lists them. Examples are requests to paste, not recorded runs.