| name | posthog-automation |
| description | Automate PostHog tasks via Rube MCP (Composio): events, feature flags, projects, user profiles, annotations. Always search tools first for current schemas. |
| type | skill |
| created | 2026-02-27T00:00:00.000Z |
| domain | productivity |
| category | automation |
| risk | critical |
| source | community |
| tags | ["skill","productivity","automation","posthog"] |
PostHog Automation via Rube MCP
Automate PostHog product analytics and feature flag management through Composio's PostHog toolkit via Rube MCP.
Prerequisites
- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)
- Active PostHog connection via
RUBE_MANAGE_CONNECTIONS with toolkit posthog
- Always call
RUBE_SEARCH_TOOLS first to get current tool schemas
Setup
Get Rube MCP: Add https://rube.app/mcp as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.
- Verify Rube MCP is available by confirming
RUBE_SEARCH_TOOLS responds
- Call
RUBE_MANAGE_CONNECTIONS with toolkit posthog
- If connection is not ACTIVE, follow the returned auth link to complete PostHog authentication
- Confirm connection status shows ACTIVE before running any workflows
Core Workflows
1. Capture Events
When to use: User wants to send event data to PostHog for analytics tracking
Tool sequence:
POSTHOG_CAPTURE_EVENT - Send one or more events to PostHog [Required]
Key parameters:
event: Event name (e.g., '$pageview', 'user_signed_up', 'purchase_completed')
distinct_id: Unique user identifier (required)
properties: Object with event-specific properties
timestamp: ISO 8601 timestamp (optional; defaults to server time)
Pitfalls:
distinct_id is required for every event; identifies the user/device
- PostHog system events use
$ prefix (e.g., '$pageview', '$identify')
- Custom events should NOT use the
$ prefix
- Properties are freeform; maintain consistent schemas across events
- Events are processed asynchronously; ingestion delay is typically seconds
2. List and Filter Events
When to use: User wants to browse or search through captured events
Tool sequence:
POSTHOG_LIST_AND_FILTER_PROJECT_EVENTS - Query events with filters [Required]