MCP analytics
PostHog MCP Analytics for the outward MCP server - one event per tool call and listing, attributed to the signed-in user, with tool payloads off by default.
With PostHog enabled, the outward MCP server reports what external agents do with it through PostHog's MCP Analytics: one $mcp_tool_call per tool invocation and one $mcp_tools_list per listing, attributed to the user whose token the agent holds. Nothing to configure beyond the PostHog key, and nothing is sent for a user who opted out.
| Captured | Event property | Always? |
|---|---|---|
| Tool name, duration, error state | $mcp_tool_name, $mcp_duration_ms, $mcp_is_error | Yes |
| The agent's stated goal | $mcp_intent - a required context argument the SDK injects into every tool | Yes |
| Capabilities agents asked for and you do not offer | $mcp_missing_capability, via the get_more_tools tool | Yes |
| Arguments and results | $mcp_parameters, $mcp_response | Only with posthog.mcpContent: true |
mcpContent ships off: tool payloads are your end users' data. Failed calls set $mcp_is_error but emit no PostHog $exception - error tracking stays on Sentry.
URL scrubbing
How password-reset and deletion tokens stay out of the URLs each analytics provider records, and the GA4 settings that keep it that way.
Analytics opt-out
One per-account switch that stops every server-side analytics report about a user, wired to the browser consent, the settings checkbox and the mobile privacy screen.