Enterprise DNA
M MCP Servers Developer low

posthog/mcp

by Various

Official PostHog MCP Server 🦔

P

MCP

posthog/mcp

Added 1 June 2026

#analytics #feature-flags #llms #mcp #mcp-server #posthog

Overview

Connects your AI assistant to PostHog so you can ask about user behavior, product usage, or feature flag status without opening a dashboard. Query events, generate an analytics summary, or pull numbers for a report straight from a conversation. Built for teams that already track their product or website in PostHog and want faster answers from that data.

Best for

Best for
Teams already using PostHog who want quick answers on product and user behavior

Use cases

  • Ask how many users triggered a specific event this week
  • Pull a quick analytics summary for a report or standup
  • Check a feature flag's status without opening the dashboard
  • Query user or customer behavior to inform a product decision

How to use

Install

npx @posthog/wizard@latest mcp add

Tested with

Cursor, Claude Desktop, Claude Code, VS Code, Zed

Notes

An MCP server that connects PostHog analytics to AI agents. It exposes PostHog’s data model and query capabilities through the Model Context Protocol, enabling tools like Claude or VS Code to interact with analytics data.

143 stars on GitHub. Last updated 2026-01-19. Licensed MIT.

Use cases

  • Query user events and properties from PostHog
  • Generate analytics insights directly from an AI assistant
  • Automate data retrieval for dashboards and reports

Pros

  • Official integration maintained by PostHog
  • Leverages PostHog’s event and person data
  • Written in TypeScript for type safety

Cons

  • Requires a running MCP-compatible client
  • Limited to data already in PostHog
  • Relatively new project with small community (143 stars)

Indexed from awesome-mcp-servers-punkpeye and enriched against its public facts.

Pros

  • Official integration maintained by PostHog
  • Leverages PostHog’s event and person data
  • Written in TypeScript for type safety

Cons

  • Requires a running MCP-compatible client
  • Limited to data already in PostHog
  • Relatively new project with small community (143 stars)
Free 27-page guide

Get the free Developer’s Field Guide

A 27-page field guide to the AI coding workflow with Claude. Claude Code, MCP servers, the prompt patterns that work, and what to delegate. Free.

Enter your work email. We send it straight over, plus a few short notes worth knowing. Unsubscribe any time.

No spam. Unsubscribe any time.

Running a business, not writing the code? See the MCP servers picked for operators, and get your first one wired up with us.

Operator picks