Live and accepting connections · check health

posthog-writer-agent

Built by D. Voorhees

An MCP server that gives AI coding agents accurate, sourced answers from PostHog's documentation.

This server indexes PostHog's Feature Flags, Product Analytics, and Session Replay documentation and serves it to any MCP-compatible AI tool. When your coding agent needs to know how PostHog works, it queries this server and gets current, sourced doc content instead of guessing from stale training data.

Connect

Point any MCP client (Claude Code, Claude Desktop, Cursor) at:

https://posthog-writer-agent.fly.dev/mcp

For Claude Code:

claude mcp add --transport http posthog-writer-agent https://posthog-writer-agent.fly.dev/mcp

Tools

search_posthog_docs
Semantic search across all three doc sections. Best for open-ended questions about how PostHog works.
get_configuration_guide
Step-by-step setup content for a named topic. Retrieves more context per call since configuration questions need surrounding detail.
explain_event_schema
PostHog's event schema management: typed property groups, the CLI workflow, and best practices.

Try asking your agent

"How do PostHog feature flags handle identity before a user logs in?"
Calls search_posthog_docs, returns the hash-based bucketing explanation and identity resolution guidance.
"How does PostHog decide which sessions to record when I use sampling?"
Calls search_posthog_docs, returns the deterministic session-ID hashing mechanism and trigger group composition.
"How do PostHog event schema property groups work?"
Calls explain_event_schema, returns the property group creation workflow, CLI download steps, and typed client usage.