PostHog MCP server

Ask about PostHog insights, dashboards, flags and experiments. Each change waits for your approval.

Tools
24 (14 read, 10 write)
Transport
Remote (HTTP)
Sign-in
Sign in with PostHog
Made by
PostHog
RevampKey connects PostHog in one click and adds its 5 skills. No config file. Free for Mac, Windows and Linux. Already installed? Open PostHog in RevampKey

Get RevampKey to connect PostHog

RevampKey is a free desktop app for Mac, Windows and Linux. Install it, sign in, and PostHog is one click away with its skills already attached.

Download RevampKey

Not now? Use the skills in your current tool

for s in essentials dashboard-consolidation experiment-results-review feature-flag-audit funnel-and-retention-analysis; do
  curl -fsSL --create-dirs -o .claude/skills/posthog-$s/SKILL.md https://revampkey.com/marketplace/posthog/skills/$s/SKILL.md
done
All PostHog skills

What the PostHog MCP server does

PostHog is a product analytics platform. It stores your analytics, errors, session replays and business data, so you can query it and act on it. Product and engineering teams use it to see how people use their apps, find bugs, and ship changes behind feature flags. Developers and product managers are among the teams shipping with it.

Connect PostHog to RevampKey and you can ask about your insights, dashboards, feature flags and experiments. Ask what an insight shows or what is on a dashboard. Ask a plain question and the agent writes a HogQL query, runs it, and summarizes the rows. Ask for an experiment's results or a flag's definition. Connecting uses PostHog's own sign-in page.

The agent asks before it changes anything. It can add insights to dashboards, create, update or delete dashboards, create, update or delete feature flags, create experiments, and update or delete insights. Before each of these ten kinds of change, it asks you first. Nothing changes until you say yes.

What you can do with PostHog and an AI agent

Check how a checkout experiment is doing

Your team runs an experiment on the checkout page. You ask the agent for the experiment and its results. It finds the experiment in PostHog, reads its results, and summarizes what they show in a few sentences. It reads only, so nothing in PostHog changes.

Turn a plain question into a HogQL query

A product manager wants to know how many people signed up each week last month. She types the question in plain English. The agent writes a HogQL query for it, runs the query, and reports the rows it gets back. If she wants a different cut, she asks again and the agent runs a new query.

Add an insight to a dashboard

You want the signup insight on your onboarding dashboard. Ask the agent to add it. The agent finds the insight and the dashboard, then asks you to approve the change before it adds the insight to the dashboard. Say no and nothing changes. You can ask it to show the dashboard's current tiles first.

How to set up the PostHog MCP server

Pick your app. RevampKey needs no config file; the others need one command or a config line.

About 1 minute · Sign in with PostHog

  1. Install RevampKey for Mac, Windows or Linux and sign in.

  2. Open Connectors, search for PostHog and click Connect. Approve access on PostHog's own sign-in page. RevampKey never sees your password.

  3. Ask in plain language. The 5 PostHog skills come with the connector. The agent asks before it changes anything.

  4. Download RevampKeyConnect PostHog · 1 click

    Get RevampKey to connect PostHog

    RevampKey is a free desktop app for Mac, Windows and Linux. Install it, sign in, and PostHog is one click away with its skills already attached.

    Download RevampKey

    Not now? Use the skills in your current tool

    for s in essentials dashboard-consolidation experiment-results-review feature-flag-audit funnel-and-retention-analysis; do
      curl -fsSL --create-dirs -o .claude/skills/posthog-$s/SKILL.md https://revampkey.com/marketplace/posthog/skills/$s/SKILL.md
    done
    All PostHog skills

Using a different MCP client?

Add a new remote (HTTP) MCP server in its settings and paste this URL. Sign in with PostHog the first time it connects.

Server URLhttps://mcp.posthog.com/mcp

Skip the config file

In RevampKey, PostHog is one click: sign-in and the server and the 5 skills are set up for you.

Download RevampKey

PostHog agent skills

Playbooks that teach the agent how to do real PostHog work, step by step. RevampKey adds them when you connect; any Agent Skills tool can use them.

See all 5 skills in detail →

What to ask once PostHog is connected

Plain words work. Copy one to try it.

  • “Show me all my dashboards and which insights are on the onboarding one.”
  • “Find the insight that tracks trial signups and show me its latest results.”
  • “Write a HogQL query that counts signups per day for the last 14 days and run it.”
  • “List my feature flags and show me the definition of the mobile checkout flag.”
  • “How is the checkout experiment doing? Show me its results.”
  • “Our PostHog has 46 dashboards and most of them look like copies. Can you help me clean them up without breaking anything anyone uses?”Consolidate your PostHog dashboards with AI
  • “Is the checkout button experiment a real winner, or should we keep it running?”Review PostHog experiment results with AI
  • “Audit the feature flags in our production project and tell me which ones we can safely remove.”Audit PostHog feature flags with AI
  • “Show me how many new users reached first project creation within 7 days of signing up, split by platform.”Funnel and retention analysis in PostHog

What the agent can do in PostHog

24 tools in 5 groups. Reading needs no approval; RevampKey asks before every change.

Dashboards
Find your dashboards and read what each one holds. Create, update, or delete a dashboard, or add an insight to one. Each of these changes waits for your approval.dashboards-get-alldashboard-getdashboard-createdashboard-updatedashboard-deletedashboard-reorder-tilesadd-insight-to-dashboard
Insights
Find and list insights, read one, and run it for current results. Changes to an insight, such as updating or deleting it, wait for your approval.insights-get-allinsight-getinsight-queryinsight-create-from-queryinsight-updateinsight-delete
HogQL queries
Turn a plain question into a HogQL query and run it. The agent reads the rows that come back and summarizes them for you. You do not need to write HogQL yourself.query-generate-hogql-from-questionquery-run
Feature flags
List your feature flags and read the definition of any one. Create, update, or delete a flag after you approve each change.feature-flag-get-allfeature-flag-get-definitioncreate-feature-flagupdate-feature-flagdelete-feature-flag
Experiments
List experiments, read one, and read its results. Creating a new experiment waits for your approval.experiment-get-allexperiment-getexperiment-results-getexperiment-create

All 24 PostHog MCP tools

Show all 24 tools14 read, 10 create and change

Read (14) Run without asking

  • dashboard-get
  • dashboard-reorder-tiles
  • dashboards-get-all
  • experiment-get
  • experiment-get-all
  • experiment-results-get
  • feature-flag-get-all
  • feature-flag-get-definition
  • insight-create-from-query
  • insight-get
  • insight-query
  • insights-get-all
  • query-generate-hogql-from-question
  • query-run

Create and change (10) RevampKey asks before each one

  • add-insight-to-dashboard
  • create-feature-flag
  • dashboard-create
  • dashboard-delete
  • dashboard-update
  • delete-feature-flag
  • experiment-create
  • insight-delete
  • insight-update
  • update-feature-flag

PostHog MCP in RevampKey vs other tools

RevampKeyClaude CodeCursorVS Code
SetupOne clickOne terminal commandEdit mcp.jsonEdit mcp.json
Sign-inIn the app/mcp → AuthenticateBrowser promptBrowser prompt
PostHog skillsAdded on connectCopy into .claude/skillsCopy into the projectCopy into the project
Needs a terminalNoYesNoNo

PostHog MCP server FAQ

How do I connect PostHog to an AI agent?

You need a PostHog account. Click Connect in RevampKey, then approve access on PostHog's own sign-in page using OAuth. PostHog routes you to the US or EU data region based on the account you log in with. Connecting is free, but some tools may be billed as PostHog AI spend.

What can an AI agent do in PostHog?

The agent can read insights, dashboards, feature flags, experiments and query results. It can also run HogQL queries from your questions. It can create, update or delete dashboards, create, update or delete feature flags, add insights to dashboards, update or delete insights, and create experiments. Each of these waits for your approval. It works only through the 24 PostHog tools this connector provides.

Will the AI agent change my PostHog data without asking?

No. Before the agent runs any of the 10 tools that create, change or delete, it asks you first and names the object involved. Read-only tools run without that step. Check the agent's answers against PostHog before you act on them.

Can I ask PostHog questions in plain English without writing HogQL?

Yes. PostHog's query tools turn your question into a HogQL query and run it. The agent then summarizes the rows it gets back. You do not need to write HogQL yourself. Ask about signups, dashboards or any other data PostHog stores.

What is the PostHog MCP server URL?

The PostHog MCP server URL is https://mcp.posthog.com/mcp. It uses the Streamable HTTP transport, so any client that supports remote MCP servers can connect to it.

How does the PostHog MCP server authenticate?

With PostHog's own sign-in (OAuth). You approve access in your browser; no password is shared with the client.

What can an AI agent do with the PostHog MCP server?

It exposes 24 tools: 14 that read and 10 that create or change things. In RevampKey the agent asks before it runs any tool that changes data.

Are there agent skills for PostHog?

Yes. 5 SKILL.md playbooks teach an agent how to do real PostHog work step by step. RevampKey installs them when you connect PostHog; for Claude Code, Cursor or Codex you can copy them into your project.

Connect PostHog in under a minute

Download RevampKey for Mac, Windows or Linux, sign in, and PostHog is one click away, with its skills already attached, along with every other connector in the marketplace.

Download RevampKeyConnect PostHog · 1 click

Get RevampKey to connect PostHog

RevampKey is a free desktop app for Mac, Windows and Linux. Install it, sign in, and PostHog is one click away with its skills already attached.

Download RevampKey

Not now? Use the skills in your current tool

for s in essentials dashboard-consolidation experiment-results-review feature-flag-audit funnel-and-retention-analysis; do
  curl -fsSL --create-dirs -o .claude/skills/posthog-$s/SKILL.md https://revampkey.com/marketplace/posthog/skills/$s/SKILL.md
done
All PostHog skills