PostHog integration for AI chat
Connect your PostHog account and the Endless agent can answer product questions from your data, investigate errors, read experiments and change feature flags through PostHog's own MCP server.
What the agent can do with PostHog
- 01
Ask product questions
Query insights, trends and funnels, or write SQL against your PostHog data.
- 02
Triage errors
List the top errors, read a stack trace and update an issue's status.
- 03
Manage flags and experiments
Create and change feature flags, and read how an experiment is doing.
- 04
Look at sessions and logs
Find session replays and search logs around an issue.
- 05
Read dashboards and surveys
Open dashboards, read survey responses and check web analytics.
Things to ask
- “What were the top five errors in PostHog this week, and how many users did each affect?”
- “How many people signed up last month, by country, according to PostHog?”
- “Turn off the new-checkout feature flag in PostHog for everyone outside the beta cohort.”
- “Summarize the results of our pricing page experiment in PostHog.”
How to set it up
- 01
Open connectors
In Endless, open Settings and go to Connectors.
- 02
Connect PostHog
Connect PostHog from its card, then approve access on PostHog's sign-in page.
- 03
Ask in chat
Start a chat and ask for what you need. The agent uses PostHog when your request calls for it.
PostHog tools in its MCP documentation
PostHog's MCP documentation groups its tools by product. These are its 73 groups. Which tools the agent gets depends on your PostHog account, your plan and PostHog's server today.
Read PostHog's MCP documentation
| Group | Tools in it, in PostHog's words |
|---|---|
| Access control | 15 MCP tools |
| Actions | 5 MCP tools |
| AI observability | 96 MCP tools |
| Alerts | 8 MCP tools |
| Annotations | 6 MCP tools |
| Autoresearch | 24 MCP tools |
| Billing | 15 MCP tools |
| Business knowledge | 14 MCP tools |
| Canvas | 21 MCP tools |
| Cohorts | 6 MCP tools |
| Context wiki | 7 MCP tools |
| Conversations | 13 MCP tools |
| Core | 20 MCP tools |
| Cross-project dashboards | 3 MCP tools |
| Customer analytics | 73 MCP tools |
| Dashboards | 19 MCP tools |
| Data catalog | 20 MCP tools |
| Data pipelines | 9 MCP tools |
| Data quality | 8 MCP tools |
| Data schema | 1 MCP tool |
| Data warehouse | 27 MCP tools |
| Debug | 1 MCP tool |
| Docs | 1 MCP tool |
| Early access features | 5 MCP tools |
| Endpoints | 14 MCP tools |
| Engineering analytics | 12 MCP tools |
| Error tracking | 28 MCP tools |
| Error tracking alerts | 4 MCP tools |
| Events & properties | 3 MCP tools |
| Experiments | 50 MCP tools |
| Feature flags | 29 MCP tools |
| Feedback | 1 MCP tool |
| Field notes | 3 MCP tools |
| Function templates | 2 MCP tools |
| Functions | 14 MCP tools |
| Health | 3 MCP tools |
| Insights & analytics | 1 MCP tool |
| Integrations | 10 MCP tools |
| Logs | 21 MCP tools |
| Managed migrations | 2 MCP tools |
| Marketing analytics | 11 MCP tools |
| MCP analytics | 16 MCP tools |
| MCP registry | 2 MCP tools |
| MCP Store | 2 MCP tools |
| Messaging | 3 MCP tools |
| Metrics | 6 MCP tools |
| Notebooks | 26 MCP tools |
| Organization & project management | 4 MCP tools |
| Persons | 7 MCP tools |
| Platform Features | 26 MCP tools |
| PostHog AI | 2 MCP tools |
| PostHog Review | 4 MCP tools |
| Product analytics | 9 MCP tools |
| Query wrappers | 12 MCP tools |
| Reminders | 5 MCP tools |
| Replay vision | 52 MCP tools |
| Reverse proxy | 6 MCP tools |
| Session replays | 8 MCP tools |
| Signals | 89 MCP tools |
| Skills | 22 MCP tools |
| SQL | 1 MCP tool |
| Stamphog | 9 MCP tools |
| Streamlit apps | 12 MCP tools |
| Subscriptions | 9 MCP tools |
| Surveys | 11 MCP tools |
| Tasks | 23 MCP tools |
| Tracing | 12 MCP tools |
| Utilities | 1 MCP tool |
| Visual review | 23 MCP tools |
| Warehouse sources | 31 MCP tools |
| Warehouse suggestions | 7 MCP tools |
| Web analytics | 17 MCP tools |
| Workflows | 39 MCP tools |
Frequently asked questions
Does PostHog charge for its MCP server?
PostHog says connecting and calling its tools is free. Some tools use AI internally, can be billed as PostHog AI usage and need AI data processing turned on in your PostHog organization.
Does it work with PostHog EU?
Yes. PostHog's sign-in sends you to the right region, US or EU, for the account you log in with.
Do I need a PostHog account?
Yes. Each person in the workspace connects their own PostHog account, and the agent acts with that account's access. Nobody else in the workspace can use your connection.
Can a workspace admin turn PostHog off?
Yes. An admin can turn a connector off for the whole workspace in the Workspace tab of the connectors settings. Members choose for themselves among the connectors left on.
Can a scheduled task use PostHog?
Yes. A scheduled task can use the connectors its creator has connected, so a weekly report can read PostHog the same way a chat does.
Which chat models can use PostHog?
The chat model you pick in Endless gets the PostHog tools, so you can switch models in a conversation and keep the connection.
Related integrations
Stripe
Look up customers, payments and invoices, and run reports, from chat.
15 tools
See the integration: StripeGitHub
Search code, triage issues and review pull requests from chat.
44 tools
See the integration: GitHubLinear
Find, create and update issues and projects from chat.
38 tools
See the integration: Linear
Give your next idea a place to grow.
Start free, create a project, and bring your brand’s references together. Or book a demo to explore Endless with your team.