Skip to Content
GenerateSaaS

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.

CapturedEvent propertyAlways?
Tool name, duration, error state$mcp_tool_name, $mcp_duration_ms, $mcp_is_errorYes
The agent's stated goal$mcp_intent - a required context argument the SDK injects into every toolYes
Capabilities agents asked for and you do not offer$mcp_missing_capability, via the get_more_tools toolYes
Arguments and results$mcp_parameters, $mcp_responseOnly 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.