Mixpanel MCP server
119 operations0 webhooks
Product analytics with Mixpanel - ingest events and user or group profiles, run Insights, funnel, retention and segmentation reports, export raw events, and manage annotations, Lexicon schemas, feature flags, experiments, warehouse imports, data pipelines, service accounts and GDPR requests.
Try Mixpanel with your agent
Connect Mixpanel, then paste this into Claude, ChatGPT or Cursor. For ideas from other apps, see the use cases.
Using Corsair, show me what you can do in Mixpanel on my account, then run one read-only example and show me the result.
Mixpanel tools and triggers
Tools are what your agent can do in Mixpanel through Corsair's MCP server. Triggers are the Mixpanel events a routine can start from.
Profiles
- ActivityRead-only
Return the event activity stream of one or more users' profiles for a date range
profiles.activity
- AppendWrite
Append a value to list properties on a user profile
profiles.append
- Batch UpdateDestructive
Apply up to 2000 mixed profile updates in one request; $unset and $delete entries remove data
profiles.batchUpdate
- DeleteDestructive
Permanently delete a user profile and its properties (events stay)
profiles.delete
- IncrementWrite
Add to (or subtract from) numeric properties on a user profile
profiles.increment
- QueryRead-only
Query user or group profiles with an expression, a cohort filter or exact distinct_ids, paged via session_id and next_page
profiles.query
- RemoveWrite
Remove a value from list properties on a user profile
profiles.remove
- SetWrite
Set properties on a user profile, creating the profile if needed
profiles.set
- Set OnceWrite
Set properties on a user profile only where they are not set yet
profiles.setOnce
- UnionWrite
Merge values into list properties on a user profile, skipping values already present
profiles.union
- UnsetDestructive
Delete properties from a user profile
profiles.unset
Experiments
- ArchiveWrite
Archive an experiment
experiments.archive
- CreateWrite
Create a draft experiment
experiments.create
- DecideDestructive
Record the decision on a concluded experiment (success and winning variant)
experiments.decide
- DeleteDestructive
Delete an experiment
experiments.delete
- Force ConcludeDestructive
Stop a running experiment now, ending exposure to its variants
experiments.forceConclude
- GetRead-only
Get one experiment
experiments.get
- LaunchDestructive
Launch an experiment: live users start getting its variants
experiments.launch
- ListRead-only
List the experiments of a workspace
experiments.list
- UnarchiveWrite
Restore an archived experiment
experiments.unarchive
- UpdateWrite
Update an experiment's fields
experiments.update
Warehouse Imports
- Create Event StreamWrite
Create an import that loads events from a warehouse table
warehouseImports.createEventStream
- Create GroupsWrite
Create an import that loads group profiles from a warehouse table
warehouseImports.createGroups
- Create Lookup TableWrite
Create an import that loads a lookup table from a warehouse table
warehouseImports.createLookupTable
- Create PeopleWrite
Create an import that loads user profiles from a warehouse table
warehouseImports.createPeople
- DeleteDestructive
Delete a warehouse import, and with delete_data the data it imported
warehouseImports.delete
- GetRead-only
Get one warehouse import with its settings
warehouseImports.get
- HistoryRead-only
List the past sync runs of a warehouse import
warehouseImports.history
- ListRead-only
List the warehouse imports of the project
warehouseImports.list
- RunWrite
Start a sync of a warehouse import now
warehouseImports.run
- UpdateWrite
Pause, resume or reschedule a warehouse import
warehouseImports.update
Events
- CountsRead-only
Aggregate counts of one or more events over time
events.counts
- ImportWrite
Import up to 2000 server-side events (service account auth, any age), validated per event unless strict is 0
events.import
- NamesRead-only
The most common event names over the last 31 days
events.names
- Property CountsRead-only
Aggregate counts of an event broken down by the values of one property
events.propertyCounts
- TopRead-only
Today's top events with counts and change against yesterday
events.top
- Top PropertiesRead-only
The top property names of an event with their counts
events.topProperties
- Top Property ValuesRead-only
The top values of one event property
events.topPropertyValues
- TrackWrite
Track up to 2000 recent events (last 5 days) with the project token, the client-side ingestion route
events.track
Lexicon
- DeleteDestructive
Delete the Lexicon schema of one event or profile type
lexicon.delete
- Delete AllDestructive
Delete every Lexicon schema in the project
lexicon.deleteAll
- Delete For EntityDestructive
Delete every Lexicon schema for events or for profiles
lexicon.deleteForEntity
- GetRead-only
Get the Lexicon schema of one event or profile type
lexicon.get
- ListRead-only
List every Lexicon schema in the project
lexicon.list
- List For EntityRead-only
List the Lexicon schemas for events or for profiles
lexicon.listForEntity
- UpsertDestructive
Create or replace the Lexicon schema of one event or profile type; metadata dropped: true makes Mixpanel drop that event at ingestion
lexicon.upsert
- Upsert ManyDestructive
Create or replace many Lexicon schemas at once; truncate deletes every schema not uploaded
lexicon.upsertMany
Pipelines
- CreateDestructive
Create a data pipeline that exports project data to a bucket or warehouse (a paid add-on that bills while it runs)
pipelines.create
- DeleteDestructive
Delete (cancel) a data pipeline
pipelines.delete
- EditWrite
Change a pipeline's event filter or settings
pipelines.edit
- ListRead-only
List the data pipelines of the project
pipelines.list
- PauseWrite
Pause a data pipeline
pipelines.pause
- ResumeWrite
Resume a paused data pipeline
pipelines.resume
- StatusRead-only
Get a pipeline's export jobs by status
pipelines.status
- TimelineRead-only
List the dates a pipeline has synced
pipelines.timeline
Annotations
- CreateWrite
Create a chart annotation marking an event on a date
annotations.create
- Create TagWrite
Create an annotation tag
annotations.createTag
- DeleteDestructive
Delete an annotation
annotations.delete
- GetRead-only
Get one annotation by id
annotations.get
- ListRead-only
List the chart annotations in the project, optionally by date range
annotations.list
- List TagsRead-only
List the annotation tags in the project
annotations.listTags
- UpdateWrite
Change an annotation's description or tags
annotations.update
Data Definitions
- CreateWrite
Create a Lexicon data definition (event, property, custom event, metric, behavior or cohort)
dataDefinitions.create
- DeleteDestructive
Delete a data definition
dataDefinitions.delete
- GetRead-only
Get one Lexicon data definition
dataDefinitions.get
- ListRead-only
List Lexicon data definitions (events, properties, metrics, cohorts) with filters, paged by cursor
dataDefinitions.list
- MergeWrite
Merge event or property definitions into one canonical definition
dataDefinitions.merge
- UnmergeWrite
Undo a merge of data definitions
dataDefinitions.unmerge
- UpdateDestructive
Update a data definition's description, display name, tags, owners or hidden/blocked/verified flags; blocked: true drops its data at ingestion
dataDefinitions.update
Feature Flags
- CreateWrite
Create a feature flag with variants and rollout rules
featureFlags.create
- DefinitionsRead-only
Get the definitions of every flag, for local evaluation in server SDKs
featureFlags.definitions
- DeleteDestructive
Delete a feature flag
featureFlags.delete
- EvaluateRead-only
Evaluate every enabled feature flag for one user and return the assigned variants
featureFlags.evaluate
- GetRead-only
Get one feature flag with its ruleset
featureFlags.get
- ListRead-only
List the feature flags of a workspace
featureFlags.list
- UpdateWrite
Replace a feature flag (full PUT: send every field); changes what live users are served
featureFlags.update
Groups
- Batch UpdateDestructive
Apply up to 200 mixed group profile updates in one request; $unset and $delete entries remove data
groups.batchUpdate
- DeleteDestructive
Permanently delete a group profile and its properties
groups.delete
- RemoveWrite
Remove a value from list properties on a group profile
groups.remove
- SetWrite
Set properties on a group profile, creating it if needed
groups.set
- Set OnceWrite
Set properties on a group profile only where they are not set yet
groups.setOnce
- UnionWrite
Merge values into list properties on a group profile, skipping duplicates
groups.union
- UnsetDestructive
Delete properties from a group profile
groups.unset
Service Accounts
- Add To ProjectsWrite
Grant service accounts access to projects with a role
serviceAccounts.addToProjects
- CreateDestructive
Create a service account and return its secret once; this mints a new credential with the given role
serviceAccounts.create
- DeleteDestructive
Delete a service account; anything using its secret stops working (including this connection, if it is this one)
serviceAccounts.delete
- GetRead-only
Get one service account of the organization
serviceAccounts.get
- ListRead-only
List the organization's service accounts
serviceAccounts.list
- List For ProjectRead-only
List the service accounts that can reach this project, with their roles
serviceAccounts.listForProject
- Remove From ProjectsDestructive
Remove service accounts from projects; they lose access at once
serviceAccounts.removeFromProjects
Data Definition Tags
- CreateWrite
Create a data definition tag
dataDefinitionTags.create
- DeleteDestructive
Delete a data definition tag (it is removed from every definition)
dataDefinitionTags.delete
- GetRead-only
Get one data definition tag
dataDefinitionTags.get
- ListRead-only
List data definition tags with their usage counts
dataDefinitionTags.list
- RenameWrite
Rename a data definition tag
dataDefinitionTags.rename
Gdpr
- Cancel DeletionWrite
Cancel a GDPR deletion job that has not started yet
gdpr.cancelDeletion
- Create DeletionDestructive
Start a GDPR/CCPA deletion job that permanently deletes all events and profile data of the given users
gdpr.createDeletion
- Create RetrievalWrite
Start a GDPR/CCPA data retrieval job that exports everything stored about the given users
gdpr.createRetrieval
- Get DeletionRead-only
Check a GDPR deletion job
gdpr.getDeletion
- Get RetrievalRead-only
Check a GDPR data retrieval job
gdpr.getRetrieval
Segmentation
- AverageRead-only
Average a numeric property of an event per time unit
segmentation.average
- NumericRead-only
Segment an event by numeric ranges of a property
segmentation.numeric
- QueryRead-only
Count an event over time, optionally segmented by a property (Segmentation report)
segmentation.query
- SumRead-only
Sum a numeric property of an event per time unit
segmentation.sum
Identity
- Create AliasWrite
Send a $create_alias event so a new id resolves to an existing distinct_id (legacy ID management)
identity.createAlias
- Create IdentityWrite
Send an $identify event linking an anonymous id to an identified id (original ID merge API)
identity.createIdentity
- MergeDestructive
Merge two distinct_ids into one user with a $merge event (original ID merge API); cannot be undone
identity.merge
Funnels
- ListRead-only
List the saved funnels with their ids and names
funnels.list
- QueryRead-only
Query a saved funnel for a date range, with optional segmentation and conversion window
funnels.query
Insights
- QueryRead-only
Read the data behind one saved Insights report by its bookmark id
insights.query
- RunRead-only
Run an ad hoc Insights query (events, funnels, retention, cohorts, formulas) without a saved report
insights.run
Lookup Tables
- ListRead-only
List the lookup tables in the project with their ids
lookupTables.list
- ReplaceDestructive
Replace every row of a lookup table with new CSV content (max 100 MB); the old rows are gone
lookupTables.replace
Retention
- FrequencyRead-only
Frequency (addiction) report: how many users did an event on how many hours or days of each period
retention.frequency
- QueryRead-only
Run a birth or compounded retention query for a date range, per day, week or month
retention.query
Audit Logs
- QueryRead-only
Query the organization's audit log (who changed what, when), filtered by user, type, service and date
auditLogs.query
Cohorts
- ListRead-only
List every saved cohort with its id, member count, visibility and description
cohorts.list
Export
- EventsRead-only
Export raw events for a date range as parsed objects, with optional event-name filter, expression filter and limit
export.events
Jql
- RunRead-only
Run a JQL script (custom JavaScript query) over events and profiles; JQL is in maintenance mode at Mixpanel
jql.run
Connect Mixpanel to Claude, ChatGPT or Cursor
- 1
Connect Mixpanel in Corsair
Add your Mixpanel API key once in Corsair. Corsair stores the credential encrypted and makes the Mixpanel API calls for your agent, so it never goes into a prompt or a config file. Connect Mixpanel
If your link lets the agent add apps, you can skip this: it gives you a sign-in link the first time it needs Mixpanel. On a ChatGPT personal plan, connect Mixpanel here first.
- 2
Add Corsair's MCP server to your agent
Every client uses the same address:
https://mcp.corsair.dev/mcpOpen Customize → Connectors → Add custom connector, paste the address, then select Connect.Add a custom MCP server with the address and choose OAuth. Personal plans get read tools only.Add to CursorOr add this to~/.cursor/mcp.json. Cursor opens Corsair to sign in the first time it connects.{ "mcpServers": { "corsair": { "url": "https://mcp.corsair.dev/mcp" } } }Run this, then run/mcpin Claude Code to sign in.claude mcp add --transport http corsair https://mcp.corsair.dev/mcpCodex, Gemini CLI, VS Code, Zed and other clients with OAuth sign-in work the same way. Clients without it, such as GitHub Copilot's coding agent, use a link's own address and an API key. Setup for every client
- 3
Sign in and choose what needs your approval
Your client opens Corsair to sign in. Pick a link: the apps your agent can use and a mode that decides what it may do without asking. In the default Cautious mode, Mixpanel's read and write operations run right away and its 29 destructive operations wait for your approval. Strict mode asks before every write and refuses destructive operations, and Read mode allows reads only.
FAQ
Install corsair and @corsair-dev/mixpanel, add the Mixpanel plugin, and connect with an API key. Then call methods like corsair.mixpanel.api.annotations.create() from your app. Corsair keeps each tenant isolated.
Yes. Mixpanel requires an API key from your Mixpanel account or developer dashboard. Create credentials with access that matches what you automate, then paste them into Corsair or connect through managed auth in Hub.
Yes. One Corsair client can hit Mixpanel, GitHub, Notion, Stripe, and the rest. Trigger Mixpanel from a webhook, push updates to Slack, or chain actions across plugins. Same tenant context across integrations, plain TypeScript.
Teams use Corsair for product analytics with Mixpanel - ingest events and user or group profiles, run Insights, funnel, retention and segmentation reports, export raw events, and manage annotations, Lexicon schemas, feature flags, experiments, warehouse imports, data pipelines, service accounts and GDPR requests. Common builds include sync jobs, admin tooling, and agents that call Mixpanel APIs from your backend.
The SDK is open source. Self-host and you pay Corsair nothing for the integration layer. Hub bills for hosted auth and execution, not per Mixpanel API call. Hub has a generous free tier. For hobby projects you can probably run the whole thing on free. Paid plans start to matter with more tenants or heavier traffic.
We maintain @corsair-dev/mixpanel in the open repo. When Mixpanel ships API changes, upgrade the package. Your call sites stay typed. You should not need to rewrite the integration layer each time.
No. Corsair does not read your Mixpanel data or hold individual access credentials. Credentials stay in your database. API calls run on your instance. We do not store Mixpanel data on your behalf.
Yes. Add https://mcp.corsair.dev/mcp as a custom connector or MCP server in Claude, ChatGPT, Cursor, VS Code, Claude Code, Codex or any client that supports remote MCP servers with OAuth sign-in, then sign in to Corsair. On ChatGPT personal plans, custom servers currently get read tools only.
Yes. Put Mixpanel on a link in Strict mode and every write waits for your approval, while destructive actions are refused. The default Cautious mode asks only before the 29 destructive Mixpanel operations. You can change a link's mode at hub.corsair.dev/me.