KosmoKrator

analytics

Mixpanel Analytics CLI for Shell Scripts

Use the Mixpanel Analytics CLI for shell scripts with headless JSON commands, schema discovery, credentials, and permission controls.

7 functions 7 read 0 write API key auth

Mixpanel Analytics CLI for Shell Scripts

Call integration functions from shell scripts with stable JSON input and output.

Use shell scripts for small local automations that need one or more integration calls. The Mixpanel Analytics CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.

Command Shape

# Mixpanel Analytics CLI for Shell Scripts
kosmokrator integrations:configure mixpanel --set api_key="$MIXPANEL_API_KEY" --enable --read allow --write ask --json
kosmo integrations:call mixpanel.mixpanel_get_cohort '{"id":"example_id"}' --json

Discovery Before Execution

Agents and scripts can inspect Mixpanel Analytics docs and schemas before choosing a function.

kosmo integrations:docs mixpanel --json
kosmo integrations:docs mixpanel.mixpanel_get_cohort --json
kosmo integrations:schema mixpanel.mixpanel_get_cohort --json
kosmo integrations:search "Mixpanel Analytics" --json
kosmo integrations:list --json

Useful Mixpanel Analytics CLI Functions

FunctionTypeParametersDescription
mixpanel.mixpanel_get_cohort Read id Retrieve detailed information for a Mixpanel cohort by its ID. Returns cohort membership data and behavioral criteria.
mixpanel.mixpanel_get_current_user Read none Get the currently authenticated Mixpanel user. Returns account details for the API key owner — useful for verifying credentials and checking permissions.
mixpanel.mixpanel_get_event Read name, type, unit, from, to Retrieve analytics data for a specific Mixpanel event by name. Returns event counts and breakdowns over time.
mixpanel.mixpanel_get_funnel Read id Retrieve detailed conversion data for a Mixpanel funnel by its ID. Returns step-by-step conversion rates and drop-off analytics.
mixpanel.mixpanel_list_cohorts Read none List all behavioral cohorts in the Mixpanel project. Returns cohort names, IDs, and sizes.
mixpanel.mixpanel_list_events Read type, unit, from, to, limit List events from Mixpanel Analytics. Optionally filter by event type, time unit, or date range. Returns the most recent events matching the criteria.
mixpanel.mixpanel_list_funnels Read none List all funnels configured in the Mixpanel project. Returns funnel names, IDs, and basic configuration.

Automation Notes

Related Mixpanel Analytics CLI Pages