No-Code

Connect to enterprise-grade MCP servers instantly!Klavis MCP Servers - No Code CreationGet Started →

For Developer

Follow the instructions below to integrate Mixpanel MCP server to your AI application using our API or SDK.

Prerequisites

1. Create a Mixpanel MCP Server

Use the following endpoint to create a new remote Mixpanel MCP server instance:

Request

from klavis import Klavis
from klavis.types import McpServerName

klavis_client = Klavis(api_key="<YOUR_API_KEY>")

# Create a Mixpanel MCP server instance
mixpanel_server = klavis_client.mcp_server.create_server_instance(
    server_name=McpServerName.MIXPANEL,
    user_id="<YOUR_USER_ID>",
    platform_name="<YOUR_PLATFORM_NAME>",
)

Response

{
  "serverUrl": "https://mixpanel-mcp-server.klavis.ai/sse?instance_id=<instance-id>",
  "instanceId": "<instance-id>"
}
serverUrl specifies the endpoint of the Mixpanel MCP server, which allows you to track events and analyze user behavior through the Mixpanel analytics platform.
instanceId is used for authentication and identification of your server instance.

2. Configure Mixpanel Service Account Credentials

To use the Mixpanel MCP Server, you need to configure it with your Mixpanel service account credentials.

Setting up Mixpanel Service Account

curl --request POST \
  --url https://api.klavis.ai/mcp-server/instance/set-auth \
  --header 'Authorization: Bearer <YOUR_KLAVIS_API_KEY>' \
  --header 'Content-Type: application/json' \
  --data '{
  "instanceId": "<YOUR_INSTANCE_ID>",
  "authData": {
    "data": {
      "serviceaccount_username": "<YOUR_MIXPANEL_SERVICE_ACCOUNT_USERNAME>",
      "serviceaccount_secret": "<YOUR_MIXPANEL_SERVICE_ACCOUNT_SECRET>"
    }
  }
}'

Response

{
  "success": true,
  "message": "<string>"
}

Explore MCP Server Tools

For more details about tool input schema, use the list_tool API.