🚀 Don't want to self-host? Join the waitlist for our fully managed solution →
Zero setup. Zero maintenance. Just connect and automate.
🚀 Product Analytics MCP Server — 2026 Complete Version
💡 What This Unlocks
This MCP server gives AI direct access to your entire product analytics stack. Query Mixpanel, Amplitude, and PostHog from a single unified interface—no more switching between dashboards.
Instead of clicking through analytics platforms and copying CSV exports, just tell your AI what insights you need. It queries all three platforms, correlates data, and gives you actionable answers.
🎯 Analytics Power Moves
Stop context-switching between analytics tools. The AI can directly query your entire stack:
- Cross-platform funnel analysis — "Compare signup→activation funnels between Mixpanel and Amplitude for the past 30 days"
- Unified cohort intelligence — "Show me retention curves for users who tried feature X in PostHog vs Amplitude cohorts"
- Real-time feature flag monitoring — "List all PostHog feature flags and show user count in each variant"
- Power-user segmentation — "Find Mixpanel users with 10+ sessions this week, check their Amplitude engagement scores, and export as cohort"
- Custom query synthesis — "Run this HogQL query in PostHog and this JQL script in Mixpanel, compare results side-by-side"
🔗 The Real Power: Combining Tools
AI can orchestrate complex multi-platform analytics workflows:
- Query Mixpanel events → Segment by property → Export to Amplitude cohort → Track PostHog feature flag performance
- HogQL power query → JQL custom script → Amplitude chart lookup → Synthesize insights across platforms
- Compare retention curves → Identify top-performing cohorts → Deep-dive into user profiles → Generate strategic recommendations
- Monitor feature flags → Query adoption metrics → Funnel breakdown → Automated performance reports
📦 What's Inside
20 powerful API tools covering Mixpanel, Amplitude, and PostHog:
Mixpanel (7 tools)
- query_mixpanel_segmentation — Event analysis over time with property breakdowns
- query_mixpanel_funnels — Multi-step conversion funnel analysis
- query_mixpanel_retention — Cohort retention and birth/compounded analysis
- get_mixpanel_user_profile — Individual user profile lookup
- query_mixpanel_jql — Custom JQL (JavaScript Query Language) queries
- export_mixpanel_events — Raw event export with filters
- list_mixpanel_events — Event catalog and taxonomy
Amplitude (6 tools)
- query_amplitude_segmentation — Event segmentation with custom metrics
- get_amplitude_user_activity — User event stream and activity history
- list_amplitude_cohorts — All saved cohorts in project
- get_amplitude_cohort — Cohort details and member list
- query_amplitude_charts — Saved chart data retrieval
- get_amplitude_taxonomy — Event and property taxonomy
PostHog (7 tools)
- query_posthog_events — Event queries with advanced filters
- get_posthog_person — Person profile by ID or distinct_id
- list_posthog_feature_flags — All feature flags and variants
- query_posthog_insights — Trends, funnels, retention, paths analysis
- query_posthog_hogql — Custom HogQL (SQL-like) queries
- list_posthog_annotations — Project annotations and markers
All with proper error handling, automatic authentication, and TypeScript types.
API Foundations:
- Mixpanel Query API (REST)
- Amplitude Analytics API (REST)
- PostHog API (REST + HogQL)
🚀 Quick Start
Option 1: Claude Desktop (Local)
-
Clone and build:
git clone https://github.com/BusyBee3333/Product-Analytics-MCP-2026-Complete.git cd product-analytics-mcp-2026-complete npm install npm run build -
Get your API credentials:
Mixpanel:
- Log into Mixpanel
- Go to Settings → Project Settings → Service Accounts
- Create service account with query permissions
- Copy Project ID and Secret
Amplitude:
- Log into Amplitude
- Go to Settings → Projects → [Your Project]
- Copy API Key and Secret Key from General tab
PostHog:
- Log into PostHog
- Go to Project Settings → API Keys
- Create Personal API Key
- Copy API Key and Project ID
-
Configure Claude Desktop:
On macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonOn Windows:
%APPDATA%\Claude\claude_desktop_config.json{ "mcpServers": { "product-analytics": { "command": "node", "args": ["/ABSOLUTE/PATH/TO/product-analytics-mcp-2026-complete/dist/index.js"], "env": { "MIXPANEL_PROJECT_ID": "your_project_id", "MIXPANEL_SERVICE_ACCOUNT_SECRET": "your_secret", "AMPLITUDE_API_KEY": "your_api_key", "AMPLITUDE_SECRET_KEY": "your_secret_key", "POSTHOG_API_KEY": "phx_...", "POSTHOG_PROJECT_ID": "12345" } } } }Note: You can configure just one platform or all three. The server auto-detects available credentials and enables tools accordingly.
-
Restart Claude Desktop
Option 2: Deploy to Railway
- Click the button above
- Set environment variables for platforms you want to use
- Use the Railway URL as your MCP server endpoint
Option 3: Docker
docker build -t product-analytics-mcp .
docker run -p 3000:3000 \
-e MIXPANEL_PROJECT_ID=your_project_id \
-e MIXPANEL_SERVICE_ACCOUNT_SECRET=your_secret \
-e AMPLITUDE_API_KEY=your_api_key \
-e AMPLITUDE_SECRET_KEY=your_secret_key \
-e POSTHOG_API_KEY=phx_... \
-e POSTHOG_PROJECT_ID=12345 \
product-analytics-mcp
🔐 Authentication
Mixpanel
- Auth method: Basic auth (service account)
- Format:
project_id:secret(base64) - Required env vars:
MIXPANEL_PROJECT_ID,MIXPANEL_SERVICE_ACCOUNT_SECRET - Endpoints: Query API (https://mixpanel.com/api/2.0) and Ingestion API (https://api.mixpanel.com)
- Rate limits: Varies by plan (typically 60 req/hour for free, higher for paid)
Amplitude
- Auth method: Basic auth (API key + secret)
- Format:
api_key:secret_key(base64) - Required env vars:
AMPLITUDE_API_KEY,AMPLITUDE_SECRET_KEY - Endpoints: Dashboard API (https://amplitude.com/api/2)
- Rate limits: 360 requests per hour (free/growth), higher for enterprise
PostHog
- Auth method: Bearer token (Personal API Key)
- Format:
Bearer phx_... - Required env vars:
POSTHOG_API_KEY,POSTHOG_PROJECT_ID - Endpoints: Cloud API (https://app.posthog.com/api/) or self-hosted
- Rate limits: 480 requests per minute (cloud), unlimited (self-hosted)
The MCP server handles all authentication automatically—just set the environment variables.
🎯 Example Prompts for Product Teams
Once connected to Claude, use natural language. Here are real product analytics workflows:
Cross-Platform Analysis
- "Compare signup funnel conversion rates between Mixpanel and Amplitude for the last 30 days"
- "Show me PostHog feature flag 'new-onboarding' adoption vs Mixpanel activation event counts"
- "Query retention in all three platforms for users who signed up in January 2026"
Power User Workflows
- "Run this JQL script in Mixpanel: [paste script]. Then find those users in Amplitude and show their activity"
- "Export all Mixpanel events for 'purchase_completed' last week, cross-reference with PostHog person properties"
- "List all PostHog insights of type FUNNELS, then recreate the top one in Mixpanel for comparison"
Cohort & Segmentation
- "Show me all Amplitude cohorts with 'power_user' in the name, get their IDs, query Mixpanel for their event volumes"
- "Find Mixpanel users with 10+ sessions this month, check if they exist in PostHog, list their feature flag exposure"
- "Get PostHog persons who triggered event X, look up their profiles in Mixpanel, summarize common properties"
Custom Queries
- "Run this HogQL query in PostHog: SELECT * FROM events WHERE event = 'signup' AND timestamp > now() - INTERVAL 7 DAY"
- "Execute Mixpanel segmentation for 'page_view' event, group by $browser, last 14 days"
- "Query Amplitude event taxonomy, filter for events containing 'checkout', show me property schemas"
Feature Flag Intelligence
- "List all PostHog feature flags, show rollout percentage and user counts for each variant"
- "Check PostHog feature flag 'beta_feature' exposure, query Mixpanel for event counts from exposed users"
- "Find users in PostHog flag 'experiment_v2' variant B, get their Amplitude retention data"
Real-Time Monitoring
- "Export Mixpanel events from the last hour, filter for errors, check if affected users are in Amplitude"
- "Query PostHog events for 'payment_failed' in the last 24h, get user profiles from all platforms"
- "Check Amplitude user activity for user_id X, then query their full event stream in Mixpanel"
🛠️ Development
Prerequisites
- Node.js 18+
- npm or yarn
- Accounts on Mixpanel, Amplitude, and/or PostHog
Setup
git clone https://github.com/BusyBee3333/Product-Analytics-MCP-2026-Complete.git
cd product-analytics-mcp-2026-complete
npm install
cp .env.example .env
# Edit .env with your API credentials
npm run build
npm start
Testing
npm test # Run all tests
npm run test:watch # Watch mode
npm run test:coverage # Coverage report
Project Structure
product-analytics-mcp-2026-complete/
├── src/
│ └── index.ts # Main server implementation
│ # - MixpanelClient
│ # - AmplitudeClient
│ # - PostHogClient
│ # - 20 tool definitions
│ # - Handler routing
├── dist/ # Compiled JavaScript
├── package.json
├── tsconfig.json
└── .env.example
🐛 Troubleshooting
"Mixpanel API error: 401"
- Verify service account credentials are correct
- Check that service account has query permissions
- Ensure Project ID matches the secret's project
"Amplitude API error: 403"
- Confirm API Key and Secret Key are from the same project
- Check that keys haven't been revoked or expired
- Verify project access permissions
"PostHog API error: 401"
- Ensure Personal API Key is active (check Settings → API Keys)
- Verify Project ID is correct (visible in project settings URL)
- Check that API key has project-level permissions
"Rate limit exceeded"
- Mixpanel: 60 req/hour (free), wait or upgrade plan
- Amplitude: 360 req/hour (growth), wait or upgrade to enterprise
- PostHog: 480 req/min (cloud), upgrade or use self-hosted
"At least one analytics platform must be configured"
- Set credentials for Mixpanel, Amplitude, OR PostHog
- You don't need all three—server works with any combination
- Verify environment variables are spelled correctly
"Tools not appearing in Claude"
- Restart Claude Desktop after updating config
- Check that the path in
claude_desktop_config.jsonis absolute (not relative) - Verify the build completed:
ls dist/index.js - Check Claude Desktop logs:
tail -f ~/Library/Logs/Claude/mcp*.log
"Unknown tool error"
- Ensure the tool name matches the platform you configured
- Example:
query_mixpanel_segmentationrequires Mixpanel credentials - Check server startup logs for "Total tools available" count
📖 Resources
- Mixpanel Query API Docs — Official API reference
- Amplitude Analytics API Docs — Dashboard API guide
- PostHog API Docs — REST API and HogQL reference
- MCP Protocol Spec — How MCP servers work
- Claude Desktop Docs — Installing and configuring Claude
- MCPEngage Platform — Browse 30+ business MCP servers
🤝 Contributing
Contributions are welcome! Please:
- Fork the repo
- Create a feature branch (
git checkout -b feature/retention-analysis) - Commit your changes (
git commit -m 'Add cross-platform retention comparison') - Push to the branch (
git push origin feature/retention-analysis) - Open a Pull Request
📄 License
MIT License - see LICENSE for details
🙏 Credits
Built by MCPEngage — AI infrastructure for business software.
Want more MCP servers? Check out our full catalog covering 30+ business platforms including Segment, Google Analytics, Heap, and more.
Questions? Open an issue or join our Discord community.