Get the FREE Ultimate OpenClaw Setup Guide →

mixpanel

MCP server for Mixpanel Analytics integration with AI assistants. Enables Claude and other MCP clients to track events, pageviews, and user profiles through conversational interfaces.

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio moonbirdai-mixpanel-mcp-server npx -y mixpanel-mcp-server --token YOUR_MIXPANEL_TOKEN

How to use

This Mixpanel MCP Server provides a set of tools that allow AI assistants to track events, page views, user signups, and update user profiles in Mixpanel via the Model Context Protocol. The server exposes tools such as mixpanel_track_event, mixpanel_track_pageview, mixpanel_track_signup, and mixpanel_set_user_profile, enabling you to instrument analytics directly from conversations with Claude or other MCP clients. To use it, start the server with your Mixpanel project token, then connect your MCP client via stdio transport. The tools will handle sending the appropriate data to Mixpanel, including optional properties and user identifiers, so you can enrich your AI-driven workflows with analytics context. The server is designed to be easily pluggable into Claude Desktop or other MCP clients and supports both token-based authentication via the token argument and optional debug mode for troubleshooting.

How to install

Prerequisites:

  • Node.js 16 or higher
  • A Mixpanel project token

NPM Installation (Recommended):

# Install globally
npm install -g mixpanel-mcp-server

# Or use directly with npx
npx mixpanel-mcp-server --token YOUR_MIXPANEL_TOKEN

Manual Installation:

# Clone the repository
git clone https://github.com/yourusername/mixpanel-mcp-server.git
cd mixpanel-mcp-server

# Install dependencies
npm install

# Run the server
node index.js --token YOUR_MIXPANEL_TOKEN

Additional notes

Tips and considerations:

  • Your Mixpanel token is sensitive; store it securely (e.g., environment variables in production) and avoid hard-coding in config files.
  • Use the --debug flag to increase logging when troubleshooting: npx mixpanel-mcp-server --token YOUR_MIXPANEL_TOKEN --debug
  • The server tokens are passed as part of the command/args in MCP config; you can adapt to your deployment method if you prefer environment-based configuration.
  • If Claude Desktop is used, ensure the Claude config.json includes the mixpanel-analytics server entry for discovery and tooling in conversations.
  • Ensure network access from your hosting environment to Mixpanel's API and verify token permissions for the events and profiles you plan to manage.

Related MCP Servers

Sponsor this space

Reach thousands of developers