Blog
guide

How to Connect Mixpanel to Grok Bot Using Sequel

Musthaq Ahamad
Musthaq Ahamad
How to Connect Mixpanel to Grok Bot Using Sequel

Mixpanel is built around picking a report type and filling in drop-downs, which is fine until you need five variations of the same question. Grok Bot is xAI's bot builder, an agent that keeps context and reaches your tools through plugins. Connect Mixpanel through Sequel and you describe the report instead of assembling it.

TL;DR

What you're connectingA Mixpanel project to Grok Bot
Setup timeAbout 6 minutes
Setup methodOne chat message. Grok Bot has no MCP config file
Auth to MixpanelService account username and secret, read access
Auth to the botOAuth to Sequel. No key in the chat
Also neededNumeric project ID and region (us or eu)
Access levelRead-only query and export

What You'll Accomplish

Once this is wired up, you can ask your bot:

  • "How many users completed Subscription Started last week, by plan?"
  • "Show the signup to activation funnel conversion for the past 30 days."
  • "Compare DAU for iOS and Android over the last 60 days."

Prerequisites

  • A Sequel account: sign up free at sequel.sh
  • A Mixpanel service account with project-level read access
  • Your numeric project ID and the project's region
  • A Grok account with a bot you can send messages to

Step 1: Connect Mixpanel to Sequel

In Mixpanel, go to Organization Settings → Service Accounts and create an account with project-level read access. Copy the username and the secret, which is shown only once.

Then sign in to sequel.sh, open Data Sources, click New Connection, and choose Mixpanel.

Choose a connector

FieldWhat to enter
Service Account usernameLooks like my-sa.abc123.mp-service-account
Service Account secretThe secret shown at creation
Project IDThe digits after /project/ in any Mixpanel URL
Regionus for mixpanel.com, eu for eu.mixpanel.com

Sequel uses the username and secret as HTTP Basic auth and pings the project to confirm.

What you get, all read-only:

ToolWhat it returns
EventsEvent names tracked in the project
Event propertiesProperties on a given event
SegmentationCounts, uniques, sums, averages, grouped by any property
FunnelsSaved funnels, or conversion over any custom step sequence
Raw exportRow-level events bounded by date range and event name

Step 2: Add Sequel to Grok Bot

Grok Bot has no MCP config file and no settings form to fill in. You add a server by asking the bot.

Open a chat with your bot and send this:

Add a custom MCP server called sequel at https://api.sequel.sh/mcp

Say custom server explicitly. Leave those words out and the bot searches the plugin marketplace instead of registering your endpoint.

Sequel's Grok Bot install card

The bot reads the name and URL back to you. Check both, confirm, and it posts a connect card in the chat. Click Authorize, sign in to Sequel, and approve access. The OAuth token stays on the connector side, so there is no API key to copy and nothing to keep in sync.

To confirm it registered, open Settings → Plugins → Yours. Every server on your account is listed there, including the ones you added by chat.

Grok's plugins panel

Then attach it to a task: type @ in the chat and pick sequel.

Using Grok chat rather than a bot? The steps do not carry over. On grok.com, open Plugins → New Connector → Custom, set the name to Sequel and the Server URL to https://api.sequel.sh/mcp, click Add Connector, and sign in.

Grok custom connector form

Step 3: Ask Grok Bot About Your Mixpanel Data

Attach @sequel and ask:

How many users completed Subscription Started last week, broken down by plan?
Show the signup to activation funnel conversion for the past 30 days, by acquisition source.
Compare daily active users on iOS and Android over the last 60 days.

What You Can Do Now

  • Report variations on demand: ask the same question five ways without rebuilding a chart.
  • Scheduled product digests: the bot works unattended, so weekly activation numbers land on their own.
  • Drop-off hunting: "Which funnel step loses the most users, and has that changed?" in one message.
  • Event discovery: "What events do we track, and which have gone quiet?" catches tracking regressions.
  • Cross-source joins: with Stripe connected, compare activation in Mixpanel against revenue that actually landed.

Troubleshooting

SymptomLikely fix
The bot searched the marketplace instead of adding the serverResend the message with the words "custom server" in it.
The server is not listed under Settings → Plugins → YoursThe registration did not complete. Resend the message and confirm the name and URL when the bot reads them back.
The bot answers without touching your dataYou did not attach it. Type @ in the chat and pick sequel before asking.
401 Unauthorized on connectRe-check the service account username and secret. If the secret is lost, create a new service account.
Connects but returns no dataConfirm the project ID and region match. A US project queried against EU returns empty results.
A report comes back emptyLoosen filters and confirm events exist in the range. Dates use the project timezone.

Related Guides

Try Sequel

Build your company brain.

Sequel connects the systems your company runs on and learns how your team defines every metric, so any AI agent can answer from it. Free for up to 3 seats, no credit card required.

Get started free

Frequently asked questions

How do I add Sequel to Grok Bot?

Ask the bot. Send "add a custom MCP server called sequel at https://api.sequel.sh/mcp", confirm the name and URL it reads back, then click Authorize on the connect card and sign in to Sequel. Say "custom server" explicitly so the bot adds the endpoint instead of searching the plugin marketplace.

Do I need a Sequel API key for Grok Bot?

No. Sequel is a remote MCP server with OAuth. The bot posts a connect card, you authorize in the browser, and the token stays on the connector side. There is no key to paste into a chat.

Is this the same as Grok chat or Grok Build?

No, and the steps do not carry over. Grok chat on grok.com adds servers under Plugins, New Connector, Custom. Grok Build is the terminal coding agent and uses grok mcp add. Grok Bot is the bot builder, where you add servers by asking the bot.

What Mixpanel credentials does Sequel need?

A service account username and secret, your numeric project ID, and the project's region (us or eu). Create the service account under Organization Settings and Service Accounts with project-level read access.

The secret is only shown once. What if I lost it?

Create a new service account in Mixpanel and use the fresh credentials. Secrets cannot be re-displayed.

Why do queries return nothing even though the key works?

Region mismatch is almost always the cause. A US project queried against the EU host returns 401s or empty results. Switch the region and re-test.

Can the bot modify my Mixpanel reports?

No. The connector ships query and export tools only. It cannot create or change reports, funnels, or cohorts.

Is raw event export rate limited?

Yes, to 60 queries per hour per project. Keep raw export ranges narrow and use segmentation for aggregate questions.

Written by

Musthaq Ahamad
Musthaq Ahamad

Co-founder and CEO of Sequel. Previously built developer tools and data infrastructure. Passionate about making data accessible for everyone.