Skip to content

[mega-issue] MCP Analytics #64016

Description

@lucasheriques

MCP analytics helps teams see how agents and users actually use their MCP servers. It captures sessions, tool calls, errors, and intent, so you can debug, measure real usage, and understand what people are trying to do.

It answers the questions a team building MCP tools actually has:

  • which tools get called, and which are slow or erroring?
  • what are people trying to do, at the level of "find a churn cohort", not "ran query_run 14 times"?
  • where do conversations stall or fall through to feedback?

Not a goal: replacing LLM analytics/AI o11y. Generation traces, prompt/response inspection, and cost belong there.

Want this for your MCP server?

If you're building an MCP server and want analytics on it, drop a comment here and we'll reach out. We're looking for teams to pilot with and build alongside.

A few things stay internal (a Slack canvas, PostHog only): mainly the list of folks we're talking to for pilots.

Current status

SDKs

Install & onboarding

  • npx -y @posthog/wizard@latest mcp-analytics instruments an existing TS/JS server automatically.
  • In-app onboarding is event-gated: the product detects $mcp_initialize / $mcp_tool_call and flips to the dashboard when data arrives.

Product

  • Dashboard (KPIs, activity, per-tool usage/error charts, client harness breakdown), sessions with LLM intent summaries, tool quality (per-tool error rate, latency percentiles, failures, description drift), and intent clustering with per-cluster journeys.
  • The whole product is queryable over MCP too (session list, tool stats, intent clusters, missing-capability reports).
  • Known gap, explicit goal: robust session tracking for stateless, serverless, and multi-replica deployments — where in-process session state doesn't survive between tool calls, sessions today can degrade to one call each. Server-side stitching plus $mcp_conversation_id is the direction.

Docs & landing page

Roadmap note: near-term priorities move through sprint planning rather than living in this issue; see the comments for research and findings that feed it.

Links

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions