Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

exploring-mcp-sessions

Skill by PostHog

Investigates individual PostHog MCP sessions, the ordered tool calls one agent made in a single run. It helps trace what the agent was trying to do and where it failed. Intended for people who run or monitor MCP servers on PostHog.

  • Score 84
  • 41k stars
  • NOASSERTION
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install exploring-mcp-sessions

Built from the published package, never by AI.

git clone --depth 1 https://github.com/PostHog/posthog /tmp/posthog && mkdir -p ~/.claude/skills && cp -r /tmp/posthog/products/mcp_analytics/skills/exploring-mcp-sessions ~/.claude/skills/exploring-mcp-sessions

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install exploring-mcp-sessions in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill explores single PostHog MCP sessions. A session is the set of $mcp_tool_call events that share a $session_id, ordered by timestamp. It gives the assistant typed tools to list recent sessions, read one session's tool calls in order, and generate an LLM summary of the agent's goal.

The skill also explains when to fall back to HogQL through posthog:execute-sql, for example to find errored sessions, resolve effective tool names, or run cross-session aggregations. It documents date-window and sorting quirks so results match the PostHog sessions UI. It is aimed at developers and operators who want to understand how AI agents use their MCP server.

Written from the project's SKILL.md and checked against it.

What it can do

  • posthog:mcp-analytics-sessions-listLists sessions with one row per session, newest first.
  • posthog:mcp-analytics-sessions-tool-callsReturns one session's tool calls in chronological order, with errors and durations.
  • posthog:mcp-analytics-sessions-generate-intentGenerates an LLM summary of a session's goal and caches it after the first call.
  • posthog:execute-sqlRuns HogQL for errored sessions, effective tool names and cross-session queries.

What you need

  • A PostHog project that records $mcp_tool_call events
  • The posthog:execute-sql tool for SQL queries

Try asking

  • What did MCP session abc123 do, step by step?
  • Which MCP sessions had errors in the last 7 days?
  • What was the agent's goal in this MCP session?

Good to know

  • The session detail tools look back 7 days by default unless date_from is passed.
  • The session list has no error filter or error count, so error questions need SQL.
  • The distinct_id_count field always returns 0.
  • Goal summaries need LLM summarisation to be configured, otherwise the tool returns 503.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: products/mcp_analytics/skills/exploring-mcp-sessions/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md8 KB

Alternatives to exploring-mcp-sessions

All alternatives →
kaggle-cliKaggle
94

Guides an assistant through the Kaggle CLI, covering competitions, datasets, notebooks, models, benchmarks, authentication and quota. It is for people who use the kaggle command-line tool.

AAA Skill 7.7k
bigquery-bigframesgoogle
94

Generates Python code that uses BigQuery DataFrames (BigFrames) for data processing, analysis and machine learning on BigQuery. It is meant for Python data tasks, and the source says to use bigquery-basics for SQL-first workflows.

AAA Skill 25k
data-loadingmicrosoft
94

Discovers connected data sources and proposes loading options when a workspace lacks the data a question needs. Suited to users who want to connect database, warehouse or cloud sources from the chat.

AAA Skill 18k
data-manager-api-setupgoogle
94

Guides developers through enabling the Data Manager API, setting up Application Default Credentials, and installing its client libraries. Built for developers who are getting started with the API and need local environment and access setup.

AAA Skill 25k
managed-airflow-dag-authoringgoogle
94

Guides authoring and validating Apache Airflow DAGs for Managed Service for Apache Airflow (MSAA), formerly Cloud Composer. Built for developers who create or extend Airflow DAGs in these environments.

AAA Skill 25k
data-feedsdavila7
94

Extracts structured JSON data from over 40 websites, including Amazon, LinkedIn, Instagram, TikTok, Facebook and YouTube. Built on Bright Data's Web Data APIs, it returns product details, profiles, reviews, posts and comments from a URL.

AAA Skill 34k

Compare with kaggle-cli, bigquery-bigframes or data-loading

exploring-mcp-sessions: common questions

Why does a PostHog MCP session show no tool calls?

The detail tools default to a 7-day lookback. Pass the session_start from the list row as date_from to load older sessions.

How can I find which MCP sessions failed?

The session list cannot filter by errors, so the skill uses a SQL query on $mcp_is_error with HAVING errors > 0.

What is a PostHog MCP session?

An MCP session is one agent run, made up of the $mcp_tool_call events that share the same $session_id.

How do I install exploring-mcp-sessions?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is exploring-mcp-sessions free?

The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.

Is exploring-mcp-sessions safe to use?

It scores 84 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to exploring-mcp-sessions?

Similar skills: kaggle-cli, bigquery-bigframes, data-loading, data-manager-api-setup.

exploring-mcp-sessions Install

Add to stack

Loading.