posthog.com
posthog.com logo

PostHog

Integrates with the PostHog analytics platform to list projects and create timestamped annotations for tracking signific...

Created byApr 22, 2025

PostHog MCP Server

A Model Context Protocol (MCP) server for interacting with PostHog. Create annotations and manage projects directly through Claude Desktop!

Features

  • List Projects: View all available PostHog projects in your organization
  • Create Annotations: Add annotations to your PostHog projects with optional timestamps [this list can be much longer, anything our api has basically...]

Setup

  1. Prerequisites
  1. Installation
  1. Configuration
  1. Claude Desktop Setup

Usage

After setup, you'll see a hammer icon in Claude Desktop. The following commands are available:

List Projects

Ask Claude:

Get and Search for Insights

Ask Claude:
"List my PostHog insights" or "Search for revenue insights in my PostHog"

Search for documentations online

You can ask:
  • "how can i do reverse proxy in nextjs in posthog?"

Create Annotation

Using the Project ID you get from the list of projects, ask Claude:
or with a specific date:

Troubleshooting

  • If the hammer icon doesn't appear, restart Claude Desktop
  • Check logs at ~/Library/Logs/Claude/mcp*.log (macOS) or %APPDATA%\Claude\logs (Windows)
  • Verify your PostHog API key has the correct permissions
  • Make sure all paths in claude_desktop_config.json are absolute paths

Contributing

Feel free to open issues and PRs! We follow PostHog's contribution guidelines.

PostHog MCP Server

A Model Context Protocol (MCP) server for interacting with PostHog. Create annotations and manage projects directly through Claude Desktop!

Features

  • List Projects: View all available PostHog projects in your organization
  • Create Annotations: Add annotations to your PostHog projects with optional timestamps [this list can be much longer, anything our api has basically...]

Setup

  1. Prerequisites
  1. Installation
  1. Configuration
  1. Claude Desktop Setup

Usage

After setup, you'll see a hammer icon in Claude Desktop. The following commands are available:

List Projects

Ask Claude:

Get and Search for Insights

Ask Claude:
"List my PostHog insights" or "Search for revenue insights in my PostHog"

Search for documentations online

You can ask:
  • "how can i do reverse proxy in nextjs in posthog?"

Create Annotation

Using the Project ID you get from the list of projects, ask Claude:
or with a specific date:

Troubleshooting

  • If the hammer icon doesn't appear, restart Claude Desktop
  • Check logs at ~/Library/Logs/Claude/mcp*.log (macOS) or %APPDATA%\Claude\logs (Windows)
  • Verify your PostHog API key has the correct permissions
  • Make sure all paths in claude_desktop_config.json are absolute paths

Contributing

Feel free to open issues and PRs! We follow PostHog's contribution guidelines.