MCP serversAnalytics & researchLeer en español

Official · PostHogRemotely (HTTPS)OAuth or API keyCan make changes

Set up the PostHog MCP server

Query product funnels, web traffic, HogQL insights, feature flags and experiments in PostHog.

Before you start

  1. Sign in to PostHog (US or EU cloud) and select the project you want to inspect.

  2. Use OAuth sign-in or generate a scoped Personal API Key (phx_...) if needed.

Add it to your client

  1. Open Settings › Connectors in Claude web or Claude Desktop.

  2. Click Add custom connector and paste https://mcp.posthog.com/mcp.

  3. Complete OAuth sign-in in your browser, or supply your PostHog API key if your client uses header auth.

  4. Enable the PostHog connector in your chat tools menu and verify the available tools.

https://mcp.posthog.com/mcp

What you can do

  • Run HogQL queries, funnel breakdowns and web analytics reports.
  • Check signup attribution by referrer, UTM campaign and landing page.
  • Inspect or manage insights, feature flags, experiments and error tracking.
Try asking

“Break down our signups by utm_source and utm_campaign in PostHog over the past 30 days.”

What it can change

Can read analytics and also create insights, dashboards or update feature flags depending on your authorized scopes.

Pair PostHog MCP + Spica Post MCP

Measure real product signups per social channel in PostHog MCP, then ask Spica Post MCP to double down on the formats and networks converting best.

Combined prompt

“Find which social UTM campaigns converted best in PostHog this month, then ask Spica Post to draft four posts around those topics.”

Questions

What is PostHog's official MCP endpoint?

PostHog hosts its official remote MCP server at https://mcp.posthog.com/mcp (registered as com.posthog/mcp).

Can PostHog MCP run custom analytics queries?

Yes. It supports HogQL queries, funnels, insights and web analytics directly from your AI client.

Pair your stack with one remote OAuth MCP for social publishing.

Start 7 days free

Works with the assistant you already use: Claude, ChatGPT, Gemini, Grok and more.