What your AI apps can do with PostHog
- Query product analytics
- Work with feature flags and error insights
PostHog MCP tools
44 tools, taken from the publisher's documentation on 29 October 2026. The server decides what it offers and can add or rename tools at any time; after you connect, Toolstile shows the current list.
| Tool | What it does |
|---|---|
docs-search | Searches PostHog documentation |
organizations-get | Lists organizations and projects you can access |
projects-get | Lists organizations and projects you can access |
query-trends | Runs trends, funnel or retention queries |
query-funnel | Runs trends, funnel or retention queries |
query-retention | Runs trends, funnel or retention queries |
insights-list | Lists saved insights, reads one, or runs its query |
insight-get | Lists saved insights, reads one, or runs its query |
insight-query | Lists saved insights, reads one, or runs its query |
execute-sql | Runs a SQL query |
dashboards-get-all | Lists dashboards or reads one |
dashboard-get | Lists dashboards or reads one |
insight-create | Creates an insight or dashboard |
dashboard-create | Creates an insight or dashboard |
dashboard-delete | Deletes a dashboard or insight |
insight-delete | Deletes a dashboard or insight |
query-error-tracking-issues-list | Lists error tracking issues |
query-error-tracking-issue | Reads an issue and its events, including stack traces |
query-error-tracking-issue-events | Reads an issue and its events, including stack traces |
error-tracking-issues-partial-update | Updates an issue, such as its status |
error-tracking-assignment-rules-create | Creates a rule that assigns future issues |
feature-flag-get-all | Lists flags or reads one |
feature-flag-get-definition | Lists flags or reads one |
create-feature-flag | Creates a feature flag |
update-feature-flag | Changes a flag's settings or release rules |
feature-flag-rules-update | Changes a flag's settings or release rules |
feature-flag-roll-out-to-everyone | Rolls a flag out to all users |
delete-feature-flag | Deletes one or many flags |
feature-flags-bulk-delete-create | Deletes one or many flags |
experiment-list | Lists experiments or reads results |
experiment-results-get | Lists experiments or reads results |
experiment-launch | Launches, ends or ships an experiment variant |
experiment-end | Launches, ends or ships an experiment variant |
experiment-ship-variant | Launches, ends or ships an experiment variant |
query-session-recordings-list | Finds and reads session recordings |
session-recording-get | Finds and reads session recordings |
session-recording-bulk-delete | Deletes session recordings in bulk |
query-logs | Queries or counts logs |
logs-count | Queries or counts logs |
surveys-get-all | Lists surveys or reads responses |
surveys-responses-list | Lists surveys or reads responses |
persons-list | Lists people or reads one person's properties |
persons-retrieve | Lists people or reads one person's properties |
persons-bulk-delete | Deletes persons in bulk |
Suggested starting access
Toolstile read each PostHog tool's description and wrote these starting selections by hand. They are a suggestion reviewed by Toolstile, not a guarantee: PostHog decides what each tool does and can change it, so check that a selection fits each app before you save it.
Read dashboards, flags and experiments
Search PostHog's docs and read projects, dashboards, feature flags and the experiment list. Trend, funnel and retention queries, saved insights, experiment results, error-tracking queries and raw SQL wait for approval.
- Allow:
docs-search,organizations-get,projects-get,dashboards-get-all,dashboard-get,feature-flag-get-all,feature-flag-get-definition,experiment-list - Require approval:
execute-sql,query-error-tracking-issue,query-error-tracking-issue-events,insight-query,insights-list,insight-get,query-trends,query-funnel,query-retention,experiment-results-get,query-error-tracking-issues-list
In the access editor, choosing a suggestion adds the listed tools this server offers to your draft. Existing access stays as it is, blocks and approval requirements stay in force, and the suggestion doesn't grant tool names the server adds later. Nothing is saved until you choose Save changes.
Suggested access for each AI app
The documentation this list comes from doesn't mark PostHog's tools as read-only or destructive. Read each tool's description and decide per app before allowing it.
Coding agent in Claude Code or Cursor. Allow the read tools so the agent can look things up without stopping, and require approval for tools that change shared data.
Chat or research app in Claude Desktop. Allow reading and searching. Allow writes only where you want the app to act for you.
Unattended agent, such as a scheduled Codex job. No one is watching the session, so keep it narrow: allow what the job needs, require approval for changes and block the rest.
Blocked tools are removed from the tool list an app sees, so it won't try them. Because rules apply per app, the same PostHog connection can be broad in one app and read-only in another, and the credential stays in Toolstile instead of each app's config file.
How it works with Toolstile
- Connect once. Add PostHog to a workspace (browser sign-in). Toolstile keeps the credential, so no agent config holds it.
- Choose access per app. Give Claude Code every PostHog tool, give Cursor only the read tools, or keep PostHog away from an app entirely.
- Share approved accounts. Teammates use the connection without copying tokens, and you can remove access in one place.
- Review activity. See which app called which tool and when, so you can tighten access with evidence.
Add the PostHog MCP server to an AI app
Through Toolstile, every AI app uses one gateway entry, whichever servers you connect. In Claude Code:
claude mcp add --transport http toolstile 'https://mcp.toolstile.com/mcp'Then connect PostHog in your workspace and choose which of its tools that app may use. Client setup covers Codex, Cursor and Claude Desktop.
To connect directly instead, add the PostHog endpoint to each app separately. In Claude Code:
claude mcp add --transport http posthog 'https://mcp.posthog.com/mcp'In Cursor's mcp.json:
{
"mcpServers": {
"posthog": {
"url": "https://mcp.posthog.com/mcp"
}
}
}Some servers accept only clients they have approved, or need a token header. Check the PostHog MCP documentation for what your client needs.
Before you connect
A PostHog account. Sign-in selects the accessible organization and region.
Server details
| Detail | Value |
|---|---|
| Publisher | PostHog |
| Endpoint | https://mcp.posthog.com/mcp |
| Authentication | Browser sign-in |
| Categories | Marketing & research, Development |
| Tool list | 44 tools, observed 29 October 2026 (docs) |