Medisolv

PostHog MCP

MCP Server

Official hosted PostHog MCP access for analytics, feature flags, experiments, error tracking, dashboards, logs, SQL/HogQL, and docs search.

downloadDownload README.md
P
PostHog
Updated 2026-04-07
HostedOfficial

When to Use

Use this MCP when your agent needs to work directly with a PostHog project without leaving your AI workspace.

  • Query product analytics, funnels, paths, retention, and HogQL/SQL results
  • Create, inspect, or update feature flags, experiments, dashboards, notebooks, and surveys
  • Investigate error tracking issues, logs, and recent project activity
  • Search PostHog documentation from the MCP itself
  • Manage project-scoped PostHog resources through one authenticated connection

Prerequisites

  • A PostHog personal API key created with the MCP Server preset
  • Access to the PostHog project you want the MCP to use

To create the API key:

  • Open PostHog and create a Personal API Key
  • Choose the MCP Server preset
  • Copy the generated phx_... key into POSTHOG_PERSONAL_API_KEY

Installation

Configure via mcp.json:

{
  "mcpServers": {
    "posthog": {
      "url": "https://mcp.posthog.com/mcp",
      "headers": {
        "Authorization": "Bearer <POSTHOG_PERSONAL_API_KEY>"
      }
    }
  }
}

Security Audit

verified_user

Auth

Personal API Key or OAuth

policy

Deployment

Hosted Remote MCP