Mixpanel · Capability

Mixpanel Query API — Insights

Mixpanel Query API — Insights. 1 operations. Lead operation: Mixpanel Query insights. Self-contained Naftiko capability covering one Mixpanel business surface.

Run with Naftiko MixpanelInsights

What You Can Do

GET
Queryinsights — Mixpanel Query insights
/v1/insights

MCP Tools

mixpanel-query-insights

Mixpanel Query insights

read-only idempotent

Capability Spec

query-insights.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Mixpanel Query API — Insights
  description: 'Mixpanel Query API — Insights. 1 operations. Lead operation: Mixpanel Query insights. Self-contained Naftiko
    capability covering one Mixpanel business surface.'
  tags:
  - Mixpanel
  - Insights
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MIXPANEL_API_KEY: MIXPANEL_API_KEY
capability:
  consumes:
  - type: http
    namespace: query-insights
    baseUri: https://mixpanel.com/api/2.0
    description: Mixpanel Query API — Insights business capability. Self-contained, no shared references.
    resources:
    - name: insights
      path: /insights
      operations:
      - name: queryinsights
        method: GET
        description: Mixpanel Query insights
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: project_id
          in: query
          type: integer
          description: The Mixpanel project ID
          required: true
        - name: bookmark_id
          in: query
          type: integer
          description: ID of a saved report to query
    authentication:
      type: basic
      username: '{{env.MIXPANEL_USER}}'
      password: '{{env.MIXPANEL_PASS}}'
  exposes:
  - type: rest
    namespace: query-insights-rest
    port: 8080
    description: REST adapter for Mixpanel Query API — Insights. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/insights
      name: insights
      description: REST surface for insights.
      operations:
      - method: GET
        name: queryinsights
        description: Mixpanel Query insights
        call: query-insights.queryinsights
        with:
          project_id: rest.project_id
          bookmark_id: rest.bookmark_id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: query-insights-mcp
    port: 9090
    transport: http
    description: MCP adapter for Mixpanel Query API — Insights. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: mixpanel-query-insights
      description: Mixpanel Query insights
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: query-insights.queryinsights
      with:
        project_id: tools.project_id
        bookmark_id: tools.bookmark_id
      outputParameters:
      - type: object
        mapping: $.