LabscoMCP early access ↗
PostHog avatar✓ Official

setting-up-a-custom-rest-source

MCP connection required★ 59 on GitHub
part of posthog/ai-pluginby posthog

For an API that PostHog has never heard of: you describe in one file how to log in and which addresses to fetch, and try it against live data before anything is switched on.

WHEN TO USE

SCOPE

USE FOR

  • Reach an internal service's own API that nothing else can read.
  • Set up bearer-token, API-key, HTTP-basic, or OAuth2 authentication for a data import.
  • See exactly which rows come back before any of it gets saved.
  • Handle an API whose records are nested per parent, like responses grouped by account.

NOT FOR

  • Not for an API that already has a native PostHog connector — check the connector list first.
  • Not for writing back to the source API — it only ever reads data out.