š Feature: PostHog MCP connector preset
š Feature description
Add PostHog to the Connectors catalog as a remote MCP preset, so agents can work with a user's PostHog projects (insights, trends, feature flags, experiments, errors, and HogQL queries) after one OAuth sign-in.
PostHog runs a hosted MCP server at https://mcp.posthog.com/mcp. It answers an unauthenticated request with a 401 that points to OAuth metadata, and its authorization server supports dynamic client registration, which is exactly what the preset list requires (see the inclusion rules at the top of docsgpt/connectors/presets/mcp.yaml). Users don't need to register an app or paste an API key.
š¤ Why is this feature needed?
Product teams ask "how many people used the new export button last week?" or "is the new-onboarding flag on for everyone?". PostHog answers from live analytics. Today they would have to set it up as a custom MCP server by hand.
āļø How do you aim to achieve this?
This is a small, self-contained change. No Python code is needed beyond the catalog entry:
- Add an entry to
docsgpt/connectors/presets/mcp.yaml, following the existing ones (e.g. Sentry or Stripe):key: mcp:posthog,name: PostHog, a one-linedescriptionicon: posthog,category: devmcp_url: https://mcp.posthog.com/mcp,auth_kind: mcp_oauthcapabilities:[read], or[read, write]if the server exposes tools that change thingsdocs_url: https://posthog.com/docs/model-context-protocol
- Add the icon at
frontend/src/assets/connectors/posthog.svg(use PostHog's official brand mark). - Add the description key
settings.connectors.descriptions.mcp_posthogto all seven locale files infrontend/src/locale/(de en es jp ru zh zh-TW). - Add PostHog to the preset lists in
docs/content/Sources/Connectors/index.mdx(the "MCP presets" section) anddocs/content/Tools/mcp-tools.mdx. - If a test lists or validates the presets (see
tests/connectors/test_catalog.py), update it.
Before choosing capabilities, sign in once and look at the server's tools/list to see which tools read and which ones write.
Notes for PostHog:
- The server routes US and EU accounts automatically, so one URL is enough.
- Some tools need "AI data processing" enabled in the PostHog organization settings. The free plan is enough to test.
Other presets are being added in parallel this month and touch the same YAML and locale files, so expect to rebase on main before merge.
Acceptance criteria
- PostHog appears on the Connectors page with its icon and description in every locale.
- Connecting it opens PostHog's OAuth sign-in, and the connection then works as an agent tool.
ruff check .,python -m pytest tests/connectorsandcd frontend && npm run lintpass.
šļø Additional Information
Please attach a screenshot of the PostHog card on the Connectors page and of an agent using one of its tools. UI work follows frontend/DESIGN.md. Vercel (#2874) is a similar issue, so it's a useful reference.
Hey Iām well familiar with posthog,,,so would like to work on it,,, can I get assign to it?
Hey @arc53-machine can I be assigned this issue?
Hi! I'd like to work on this for Hacktoberfest ā I have the preset entry, icon, locales, docs, and catalog test ready to go. Could you please assign it to me? Thanks!
PR #2924 already addresses this issue, so I haven't assigned it. You can help by reviewing or testing that PR.
Automated triage. A maintainer will follow up.