All integrations

PostHog integration, MCP and CLI

Use it in the Hyper app or from Claude, ChatGPT and any AI client.

Works with

Tools 22

13 read, 8 write, 1 destructive

PostHog product analytics tools: run HogQL (SQL) queries over events, persons, and sessions; list raw events and persons; manage cohorts, feature flags, insights, dashboards, and annotations. Requests are scoped to the Project ID and data region saved on the connection settings and authenticate with the connection's personal API key.

  • List annotations

    List annotations shown on the project's charts.

  • Get cohorts

    Retrieve a single cohort with its filters.

  • List cohorts

    List the project's cohorts.

  • Get dashboards

    Retrieve a single dashboard with its tiles.

  • List dashboards

    List the project's dashboards.

  • List events

    List raw events in reverse chronological order.

  • Get feature flags

    Retrieve a single feature flag with its targeting configuration.

  • List feature flags

    List the project's feature flags.

  • Get insights

    Retrieve a single insight with its query and computed results.

  • List insights

    List saved insights in the project.

  • Get persons

    Retrieve a single person and its properties.

  • Create annotations

    Annotate a point in time (release, incident, campaign start) so it is marked on the project's charts.

Frequently asked questions

Hyper MCP serves 22 PostHog tools from one endpoint, https://backend.hyperfx.ai/mcp/, next to the other apps you connect to Hyper. Any MCP client can use them, and the Hyper CLI runs the same tools from a terminal.

Connect PostHog once in Hyper, under Apps. Every client you add Hyper MCP to then uses that connection.

Claude Code, Claude, ChatGPT, Codex, Cursor and OpenCode, through Hyper MCP. Agents in the Hyper app use the same tools.

Yes. Of its 22 tools, 13 read, 8 write, 1 destructive. Any action can be set to require approval, and Claude asks you before every write or destructive call.

Hyper has a free 7-day trial, then 49 USD/month. See pricing.

Further reading

What is PostHog MCP?

PostHog MCP is PostHog inside Hyper MCP: 22 tools (13 read, 8 write, 1 destructive) on the same endpoint as every other app you connect to Hyper. One endpoint, one sign-in, for any AI app that supports the Model Context Protocol.

Your AI client sees about ten Hyper tools (search, describe, call_read, call_write and a few more) and finds the PostHog ones with search. Read tools run without asking; write and destructive tools ask you first in Claude.

What you can do with PostHog on Hyper

  • Feature flag

    Create, delete, get, list and update.

  • Cohort

    Create, get, list and update.

  • Dashboard

    Create, get and list.

  • Insight

    Create, get and list.

  • Annotation

    Create and list.

  • Person

    Get and list.

How to connect PostHog to your AI client

  1. 1. Create a Hyper account

    Free 7-day trial, then 49 USD/month.

  2. 2. Connect PostHog in Hyper

    Open Apps and connect it.

  3. 3. Add Hyper MCP to your client

    Paste https://backend.hyperfx.ai/mcp/ as a custom connector or remote MCP server, or run the Claude Code command above.

  4. 4. Ask for PostHog

    Your client finds the PostHog tools with search and asks before it writes.

Why use Hyper for PostHog

  • One endpoint, every app

    Connect once and get PostHog with every integration, scraper, generator and platform tool you enabled on Hyper.

  • Bring your existing setup

    Your connections, agents, tasks and skills carry over to every client.

  • Per-tool guardrails

    Turn actions on or off and require approval on each one, in every client.

  • Use Hyper from anywhere

    Claude, ChatGPT, OpenCode, Cursor, Codex and any other MCP client.