MCP + PostHog Analytics Demo
MCP server instrumented with PostHog for product analytics, error tracking, and (optionally) feature flags.
This repo is a companion to the tutorial published in https://posthog.com/tutorials/mcp-analytics
Power your agent
Install from the publisher. Not a PlugMCP endpoint.
Host a copy with our keys and logs.
No packaged release in the registry yet. Follow the repository README.
Remote URL or a command on your machine? How the two installs differ
Run on PlugMCP
A new server you create. It is not this listing's official endpoint. Use the publisher install when you want their URL and their credentials.
LaunchFrom the publisher
MCP server instrumented with PostHog for product analytics, error tracking, and (optionally) feature flags.
This repo is a companion to the tutorial published in https://posthog.com/tutorials/mcp-analytics
MCP server instrumented with PostHog for product analytics, error tracking, and (optionally) feature flags.
npm install
Create .env:
POSTHOG_API_KEY=phc_***
POSTHOG_HOST=https://us.i.posthog.com
npm run build
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%/Claude/claude_desktop_config.json
Add to claude_desktop_config.json:
{
"mcpServers": {
"analytics-demo": {
"command": "/absolute/path/to/node",
"args": ["/absolute/path/to/mcp-posthog-analytics/build/index.js"],
"env": {
"POSTHOG_API_KEY": "phc_***",
"POSTHOG_HOST": "https://us.i.posthog.com"
}
}
}
}
Use absolute paths (which node, pwd).
In Claude Desktop, run a few tools (success + errors).
Check PostHog → Activity → Live events for: - mcp_tool_executed - captured exceptions
MCP server instrumented with PostHog for product analytics, error tracking, and (optionally) feature flags.
Tools
No tool list yet. Remote servers get one after the first health check.
FAQ
Copy the stdio config for Cursor, Claude Desktop, Claude Code, or VS Code on this page. It uses the publisher's install, not a PlugMCP proxy.
No required environment variable is listed on this record.
MCP Posthog Analytics runs locally over stdio.
Last checked 2026-11-05. MCP server instrumented with PostHog for product analytics, error tracking, and (optionally) feature flags.