Tracks events, pageviews, signups and user profile updates in Mixpanel from AI assistants.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add mixpanel --env MIXPANEL_TOKEN='<MIXPANEL_TOKEN>' -- npx -y mixpanel-mcp-server --token '{{config.MIXPANEL_TOKEN}}'~/.codex/config.toml
[mcp_servers.mixpanel]
command = "npx"
args = ["-y", "mixpanel-mcp-server", "--token", "{{config.MIXPANEL_TOKEN}}"]
env = { MIXPANEL_TOKEN = "<MIXPANEL_TOKEN>" }
# codex mcp add mixpanel --env MIXPANEL_TOKEN='<MIXPANEL_TOKEN>' -- npx -y mixpanel-mcp-server --token '{{config.MIXPANEL_TOKEN}}'~/.cursor/mcp.json
{
"mcpServers": {
"mixpanel": {
"command": "npx",
"args": [
"-y",
"mixpanel-mcp-server",
"--token",
"{{config.MIXPANEL_TOKEN}}"
],
"env": {
"MIXPANEL_TOKEN": "<MIXPANEL_TOKEN>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"mixpanel": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mixpanel-mcp-server",
"--token",
"{{config.MIXPANEL_TOKEN}}"
],
"env": {
"MIXPANEL_TOKEN": "<MIXPANEL_TOKEN>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"mixpanel": {
"command": "npx",
"args": [
"-y",
"mixpanel-mcp-server",
"--token",
"{{config.MIXPANEL_TOKEN}}"
],
"env": {
"MIXPANEL_TOKEN": "<MIXPANEL_TOKEN>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"mixpanel": {
"command": "npx",
"args": [
"-y",
"mixpanel-mcp-server",
"--token",
"{{config.MIXPANEL_TOKEN}}"
],
"env": {
"MIXPANEL_TOKEN": "<MIXPANEL_TOKEN>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"mixpanel": {
"command": "npx",
"args": [
"-y",
"mixpanel-mcp-server",
"--token",
"{{config.MIXPANEL_TOKEN}}"
],
"env": {
"MIXPANEL_TOKEN": "<MIXPANEL_TOKEN>"
}
}
}
}Environment variables
MIXPANEL_TOKEN
Replace the placeholders with your own credentials and keep them out of version control.