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.
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
mcp-gm
wanna develop an app ❓
bitbucket
Bitbucket MCP - A Model Context Protocol (MCP) server for integrating with Bitbucket Cloud and Server APIs
mcp-arr
MCP server for *arr media management suite
Pare
Dev tools, optimized for agents. Structured, token-efficient MCP servers for git, test runners, npm, Docker, and more.
python-notebook
Lightweight Python Notebook MCP - Enable AI assistants to create, edit, and view Jupyter notebooks via Model Context Protocol
amplitude
MCP server for Amplitude Analytics integration with AI assistants. Enables Claude and other MCP clients to track events, pageviews, signups, and revenue through natural language requests.