KosmoKrator

analytics

Mixpanel Analytics MCP Integration for Vercel AI SDK

Connect Mixpanel Analytics to Vercel AI SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.

7 functions 7 read 0 write API key auth

Connect Mixpanel Analytics to Vercel AI SDK

Use KosmoKrator as a local integration gateway for Vercel AI SDK agents and scripts.

Create an MCP client that starts or connects to the KosmoKrator gateway for the selected integration. The gateway is local, scoped to this integration, and starts with --write=deny so Vercel AI SDK can inspect read-capable tools without receiving write access by default.

Mixpanel Analytics MCP Config for Vercel AI SDK

Prefer CLI JSON calls when a workflow only needs one deterministic integration operation.

{
  "mcpServers": {
    "kosmokrator-mixpanel": {
      "type": "stdio",
      "command": "kosmo",
      "args": [
        "mcp:serve",
        "--integration=mixpanel",
        "--write=deny"
      ]
    }
  }
}

Run the Gateway Manually

kosmokrator mcp:serve --integration=mixpanel --write=deny

Why Use KosmoKrator Here

Scoped tools

Expose only Mixpanel Analytics instead of a broad multi-service tool list.

Local credentials

Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.

Write policy

Start read-only, then opt into ask or allow for trusted workspaces.

Mixpanel Analytics Tools Visible to Vercel AI SDK

Vercel AI SDK sees stable MCP tool names generated from the Mixpanel Analytics integration catalog.

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

Related Mixpanel Analytics Pages