Mixpanel MCP Server
About
Integrate Mixpanel analytics into your AI workflows.
Details
- Author
- moonbirdai
- Categories
- Developer Tools, Other, Marketing
Jump to
Setup
Install Mixpanel MCP Server in your MCP client (Claude Desktop, Cursor, Windsurf, and others).
Repository: https://github.com/moonbirdai/mixpanel-mcp-server
Follow the installation instructions in the repository README, then restart your MCP client.
Integrate Mixpanel analytics into your AI workflows.
Version 2.0.1 Note:Tool names now include themixpanel_prefix to prevent namespace collisions with other analytics MCP servers.
- Features
- Installation
- Quick Start
- Detailed Usage
- With Claude Desktop
- With Other MCP Clients
- Track custom events in Mixpanel
- Track page views with referrer information
- Track user signups and create user profiles
- Update existing user profiles
- Simple integration with Claude Desktop and other MCP clients
- Node.js 16 or higher
- A Mixpanel project token (get one by signing up atMixpanel)
# Install globally npm install -g mixpanel-mcp-server # Or use directly with npx npx mixpanel-mcp-server --token YOUR_MIXPANEL_TOKEN
# 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
To start using the Mixpanel MCP server with Claude Desktop:
-
Make sure Claude Desktop is installed on your machine (download fromclaude.ai/download)
Create or edit the Claude Desktop configuration file:
- macOS:~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:%AppData%\Claude\claude_desktop_config.json
Add the Mixpanel MCP server configuration:
{ "mcpServers": { "mixpanel-analytics": { "command": "npx", "args": [ "-y", "mixpanel-mcp-server", "--token", "YOUR_MIXPANEL_TOKEN" ] } } }
- Restart Claude Desktop and start tracking analytics!
After setting up the configuration file as shown in the Quick Start section, you can use the Mixpanel analytics capabilities directly in your conversations with Claude.
- "Track a custom event in Mixpanel named 'document_generated' for user 'user123'"
- "Track a page view for the homepage in Mixpanel"
- "Create a new user profile in Mixpanel for John Doe with emailjohn@example.com"
- "Update user profile information in Mixpanel for user 'user123'"
Claude will use the appropriate Mixpanel MCP tool based on your request.
This server uses the standard Model Context Protocol and can be integrated with any MCP client:
npx mixpanel-mcp-server --token YOUR_MIXPANEL_TOKEN
Connect your MCP client to the server using stdio transport
The client can discover and use the available tools (mixpanel_track_event, mixpanel_track_pageview, mixpanel_track_signup, mixpanel_set_user_profile)
The Mixpanel MCP server provides the following tools:
- event_name(string, required): The name of the event to track
- distinct_id(string, optional): User identifier. Defaults to 'anonymous'
- properties(object, optional): Additional properties to track with the event
{ "event_name": "button_clicked", "distinct_id": "user123", "properties": { "button_id": "submit_form", "page": "checkout" } }
- page_name(string, required): The name of the page viewed
- distinct_id(string, optional): User identifier. Defaults to 'anonymous'
- referrer(string, optional): The referring page
{ "page_name": "homepage", "distinct_id": "user123", "referrer": "google.com" }
Tracks a signup event and creates a user profile in Mixpanel.
- user_name(string, required): User's full name
- email(string, required): User's email address
- plan(string, optional): Signup plan. Defaults to 'free'
{ "user_name": "John Doe", "email": "john@example.com", "plan": "premium" }
Updates a user's profile properties in Mixpanel.
- distinct_id(string, required): User identifier
- properties(object, required): Profile properties to set
{ "distinct_id": "user123", "properties": { "$name": "John Doe", "$email": "john@example.com", "plan": "premium", "company": "Acme Inc" } }
Here are some practical examples of using the Mixpanel MCP server with Claude:
You: Can you track an event in Mixpanel when a user clicks the submit button? Claude: I'll track that event for you. Let me use the Mixpanel analytics tool. [Claude uses the mixpanel_track_event tool with appropriate parameters] Claude: I've successfully tracked the 'button_clicked' event in Mixpanel with the properties you specified.
You: Create a new user profile in Mixpanel for Sarah Johnson who signed up with sarah@example.com on the premium plan. Claude: I'll create that user profile in Mixpanel. [Claude uses the mixpanel_track_signup tool with appropriate parameters] Claude: I've successfully tracked the signup for Sarah Johnson and created a profile in Mixpanel with the premium plan.
- Ensure you've provided a valid Mixpanel token
- Check that Node.js is installed and is version 16 or higher
Claude Desktop not showing Mixpanel tools:
- Verify your claude_desktop_config.json file syntax
- Make sure you've restarted Claude Desktop after editing the config
- Check that the path to the server is correct
- Verify your Mixpanel token is correct
- Check your Mixpanel project settings to ensure data is being received
- Events may take a few minutes to appear in the Mixpanel interface
To run the server in debug mode for more verbose logging:
npx mixpanel-mcp-server --token YOUR_MIXPANEL_TOKEN --debug
- Your Mixpanel token is stored in the Claude Desktop configuration file. Ensure this file has appropriate permissions
- Consider using environment variables for sensitive tokens in production environments
- This server does not implement rate limiting - consider adding additional security measures for production use
- Events are sent directly to Mixpanel's API - review Mixpanel's privacy policy for data handling practices
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (git checkout -b feature/amazing-feature)
- Commit your changes (git commit -m 'Add some amazing feature')
- Push to the branch (git push origin feature/amazing-feature)
- Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
This is a web browser that enables your coding agent, such as Claude Code, to visit websites on your behalf and assist you in identifying bugs or creating UI test cases.
Windsor MCP enables your LLM to query, explore, and analyze your full-stack business data integrated into Windsor.ai with zero SQL writing or custom scripting.
Query A/B test data using the Hackle API.
Maintains user context and manages profiles using the Apache Unomi Customer Data Platform.
Kochava for Advertisers — Official MCP Server
MCP connector providing comprehensive access to Kochava's mobile measurement and attribution platform for advertisers. Includes analytics, attribution, campaign management, tracker creation, fraud detection, and reporting capabilities.
AI marketing analyst that connects Google Ads, Meta Ads, GA4, Search Console, and Stripe to audit campaigns, analyze funnels, and catch wasted ad spend from one chat.
Collective intelligence for AI shopping agents — 23 MCP tools for buyer intelligence, seller analytics, price alerts, and trend tracking.
App Store stats, installs, keywords, revenue and descriptions. B2B intelligence for SDK analysis, ad tech stacks and more.
BestAppify — Shopify App Store Intelligence
Live Shopify App Store data in your AI client — keyword rankings, competitor tracking, review intelligence and revenue analytics across 40 tools, with a free tier.
CalmSEO gives AI assistants live SEO data for keyword research, SERP checks, competitor keywords, page audits, and Google Search Console insights through MCP.
Run creator storefronts, listings, orders, content, fulfillment, and analytics through AI.
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





