feat(third_party): add PostHog plugin - #431
Merged
Merged
Conversation
URL-only plugin for PostHog's hosted MCP server at https://mcp.posthog.com/mcp, covering product analytics, HogQL/SQL, feature flags, experiments, error tracking, session replay, surveys, and dashboards. Auth is OAuth via oauth.posthog.com with PKCE and dynamic client registration, verified to accept every Cursor redirect set including Grok Bot mobile. Appends the marketplace.json entry and passes scripts/validate-plugins.mjs.
minupalaniappan
added a commit
that referenced
this pull request
Sep 25, 2026
revert: remove duplicate PostHog plugin (#431)
kvnloo
pushed a commit
to kvnloo/plugins
that referenced
this pull request
Sep 25, 2026
PostHog already publishes an APPROVED plugin in the public marketplace (id 730, from github.com/PostHog/ai-plugin) pointing at the same server, https://mcp.posthog.com/mcp. Two APPROVED plugins named posthog would collide in the indexer and show two cards. PGT-4565 is redirected to making PostHog's own plugin visible in Grok Bot.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this adds
A URL-only marketplace plugin for PostHog's hosted MCP server (
https://mcp.posthog.com/mcp), so agents can query product analytics and HogQL/SQL, manage feature flags and experiments, triage error tracking issues, and work with session replays, surveys, dashboards, logs, and CDP destinations. Tracked in Linear PGT-4565; 715 Grok Bot users hand-added this MCP URL in the last 30 days, so a first-party listing removes a recurring manual step.Tools (1,033 across 72 categories per PostHog's tools reference): the README documents the main ones by category —
insight-query,query-trends/query-funnel/query-retention/query-paths,execute-sql,read-data-schema,dashboards-get-all/dashboard-create,feature-flag-get-all/create-feature-flag/update-feature-flag/feature-flag-enable/feature-flag-set-release-condition-rollout,experiment-create/experiment-launch/experiment-results-get/experiment-ship-variant,query-error-tracking-issues-list/query-error-tracking-issue/error-tracking-issues-assign-partial-update,query-session-recordings-list/session-recording-get,survey-create/surveys-responses-list/surveys-summarize-responses-create,query-logs/logs-patterns,query-apm-spans/apm-trace-get,query-web-overview/query-web-stats,persons-list/cohorts-create,cdp-functions-create/data-warehouse-source-setup,organizations-get/switch-project,docs-search,generate-app-url. The full list is at https://posthog.com/docs/model-context-protocol/tools; the hosted runtime is the source of truth. Note Cursor is a "tools mode" client for this server, so every tool is registered individually.Auth verification
initializeagainsthttps://mcp.posthog.com/mcpreturns 401 with aWWW-Authenticateheader carrying aresource_metadatapointer (protected resource metadata per the MCP auth spec).https://oauth.posthog.com, supporting PKCE and dynamic client registration.grokbot://mcp/oauth/callback+https://www.cursor.com/bot/mcp/oauth/callback) and grok.com — no vendor allowlist work needed.What to review
plugin.jsonkeeps the eToro/TinyFish shape (URL-onlymcpServers,minClientVersions.cursor: 3.13.0,category: integrations) so it lists in Cursor and Grok Bot alike.https://posthog.com/favicon.svg(white-on-black in the source), rendered as the black mark on a white 192×192 tile with 16px padding. Updated: the favicon is now used as published (white mark on PostHog's black tile) rather than inverted onto white.node scripts/validate-plugins.mjspasses for all plugins; both JSON files parse..cursor-plugin/marketplace.json, so expect a trivial conflict on the array tail when merging in sequence.Out of scope
Note
Low Risk
Marketplace metadata and a new third-party plugin directory only; no changes to core Cursor code or shared runtime.
Overview
Adds a PostHog integration to the official plugin marketplace and ships a new
third_party/posthogpackage that wires Cursor to PostHog’s hosted MCP athttps://mcp.posthog.com/mcp(HTTP, OAuth viaoauth.posthog.com—no API keys in the plugin).The listing follows other URL-only third-party integrations (
plugin.json,mcp.json, README with capability categories, changelog, MIT license)..cursor-plugin/marketplace.jsongains aposthogentry afterbufferso users can install via Settings or/add-plugin posthoginstead of pasting the MCP URL manually.Reviewed by Cursor Bugbot for commit ae3e4fb. Bugbot is set up for automated code reviews on this repo. Configure here.