# PostHog MCP for AI Agents | FlyMy.AI

> PostHog MCP for Claude, Codex and Cursor through FlyMy.AI. PostHog product analytics: insights, events, persons, feature flags. 17 actions, your own API key.

Page: https://flymy.ai/mcp/posthog/

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.

[Connect PostHog](https://flymy.ai/mcp/posthog/#connect) [What it can do](https://flymy.ai/mcp/posthog/#actions)

Your own API key, 17 actions, Analytics 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.

| Action | What it does |
|---|---|
| `posthog_create_annotation` | Create an annotation (event marker). |
| `posthog_create_cohort` | Create a cohort (user segment). |
| `posthog_create_feature_flag` | Create a feature flag. |
| `posthog_get_cohort` | Get one cohort (user segment). Returns cohort definition, membership count, and filters. |
| `posthog_get_feature_flag` | Get one feature flag. |
| `posthog_get_insight` | Get one insight (saved query/dashboard). |
| `posthog_get_me` | Get the authenticated PostHog user account. |
| `posthog_get_person` | Get one person (user profile). |
| `posthog_list_annotations` | List annotations (event markers on insight graphs). |
| `posthog_list_cohorts` | List cohorts (user segments). |
| `posthog_list_events` | List events. |
| `posthog_list_feature_flags` | List feature flags. |

**Show all 17 actions**

| Action | What it does |
|---|---|
| `posthog_list_insights` | List insights (saved analytics queries/dashboards). |
| `posthog_list_persons` | List persons (user profiles). |
| `posthog_list_projects` | List all projects accessible to this user. |
| `posthog_query_events` | Query events with HogQL or SQL. Submit a HogQL or SQL query string and receive results. |
| `posthog_update_feature_flag` | Update 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](https://app.flymy.ai/mcp-configs#posthog) once; they stay with FlyMy.AI, never in a prompt or a chat.
  - **PostHog personal API key** - PostHog - Settings - Personal API keys. [Create key ->](https://posthog.com/settings/account-api-keys)
  - **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.

[See usage pricing →](https://flymy.ai/pricing/)

## More Analytics and data MCPs

Product analytics, BI dashboards and databases.

### 21Risk

21RISK is a web application that simplifies working with checklists, audits, and actions, facilitating compliance and risk management processes

9 actions / your API key

Link: https://docs.flymy.ai/mcp/apps/21risk

### AI or Not

AI or Not - detect AI-generated/deepfake image, video, audio or text

5 actions / no setup

Link: https://docs.flymy.ai/mcp/aiornot

### Amplitude

Amplitude analytics: event segmentation, funnels, retention, cohorts

51 actions / your API key

Link: https://flymy.ai/mcp/amplitude/

### Baremetrics

Baremetrics subscription analytics: sources, MRR/ARR metrics, customers, subscriptions, plans

8 actions / your API key

Link: https://docs.flymy.ai/mcp/baremetrics

### Baserow

Baserow is an open-source database tool that lets teams build no-code data applications, collaborate on records, and integrate with other services for data...

2 actions / your API key

Link: https://docs.flymy.ai/mcp/apps/baserow

### beaconcha.in

Beaconchain is a platform providing real-time data and analytics for the Ethereum 2.0 Beacon Chain, offering insights into validators, blocks, and network...

2 actions / your API key

Link: https://docs.flymy.ai/mcp/apps/beaconchain

## Go to the source

[PostHog in the docs →](https://docs.flymy.ai/mcp/posthog), [PostHog connection settings →](https://app.flymy.ai/mcp-configs#posthog), [Every MCP in the catalog →](https://flymy.ai/mcp/#catalog), [Usage pricing →](https://flymy.ai/pricing/)

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.

---

For agents: the FlyMyAI operating guide (sign up, connect, run models, tools and agents) is https://flymy.ai/skill.md, and https://flymy.ai/llms.txt lists the other pages and the documentation.
