MCP Analytics

Add PostHog MCP analytics to a TypeScript, JavaScript, or Python MCP server. Instruments the server so every tool call, agent intent, and failure is captured as a $mcp_* event — the @posthog/mcp Node SDK for TS/JS, or posthog.mcp (shipped inside the posthog package) for Python. Detects the server style (official MCP SDK Server/McpServer/FastMCP, mcp-handler, @rekog/mcp-nest, jlowin fastmcp, or a custom HTTP/edge dispatcher) and wires in the matching instrumentation, credentials, and graceful shutdown.

JSONbored 01f0537 11 files · 88.3 KB Updated

File contents

JSONbored/metagraphed/tree/main/.claude/skills/mcp-analytics commit 01f05374d5

Frequently asked questions

npx skillmds@latest add jsonbored/mcp-analytics