Blog
guide

How to Connect Your Data to Grok Bot: Every Source, Step by Step

Musthaq Ahamad
Musthaq Ahamad
How to Connect Your Data to Grok Bot: Every Source, Step by Step

Grok Bot is xAI's bot builder: a persistent agent that keeps context, runs skills, and reaches your apps through plugins. It has no MCP config file and no settings form for servers, so you add one by asking the bot in chat. Point it at Sequel once and it can query every database, warehouse, analytics tool, ad platform, and CRM you have connected, joined across sources in a single answer.

TL;DR

Setup methodOne chat message to your bot. No config file, no settings form
AuthOAuth. The bot posts a connect card, you sign in to Sequel
Setup timeUnder 2 minutes for the bot, a few minutes per data source
Repeat per source?No. Add Sequel once, then connect sources in Sequel
Sources available18 and counting, from Postgres to Instagram
Access levelRead-only, with each query surfaced before it runs
Unattended runsSupported, including scheduled bot tasks

Why Grok Bot is different from Grok chat

The three Grok surfaces add MCP servers in three different ways, and the steps do not carry over:

SurfaceWhere you add a server
Grok Bot (bot builder)Ask the bot in chat. Verify under Settings → Plugins → Yours
Grok chat (grok.com)Plugins → New Connector → Custom
Grok Build (terminal agent)grok mcp add

This guide covers Grok Bot. The Grok chat variant is included at the end of step two.

Step 1: 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 2: Connect your data sources in Sequel

Everything the bot can reach is whatever you have connected in Sequel. Sign in to sequel.sh and open Data Sources.

Sequel Data Sources page

Click New Connection and pick a connector.

Choose a connector

Each source has its own short setup. Pick yours:

Databases and warehouses

SourceAuthGuide
PostgreSQLConnection stringConnect PostgreSQL to Grok Bot
MySQLConnection stringConnect MySQL to Grok Bot
ClickHouseHost, port, user, passwordConnect ClickHouse to Grok Bot
BigQueryGoogle OAuth, read-onlyConnect BigQuery to Grok Bot
Cloudflare D1Cloudflare OAuth, d1.readConnect Cloudflare D1 to Grok Bot

Analytics and SEO

SourceAuthGuide
Google Analytics 4Google OAuthConnect Google Analytics to Grok Bot
Google Search ConsoleGoogle OAuthConnect Search Console to Grok Bot
AhrefsAPI keyConnect Ahrefs to Grok Bot
PostHogPersonal API key, read scopesConnect PostHog to Grok Bot
MixpanelService accountConnect Mixpanel to Grok Bot
AmplitudeAPI key and secretConnect Amplitude to Grok Bot

Revenue, CRM and content

SourceAuthGuide
StripeRestricted read-only keyConnect Stripe to Grok Bot
PolarOrganization access tokenConnect Polar to Grok Bot
Dodo PaymentsRead-only API keyConnect Dodo Payments to Grok Bot
HubSpotHubSpot OAuthConnect HubSpot to Grok Bot
Apollo.ioMaster API keyConnect Apollo to Grok Bot
Google SheetsGoogle OAuth, drive.fileConnect Google Sheets to Grok Bot
InstagramInstagram Login OAuthConnect Instagram to Grok Bot

You only add Sequel to the bot once. Every source you connect afterwards is available immediately, with nothing to change on the Grok side.

Step 3: Ask your bot a question that spans sources

Attach @sequel and ask:

Which landing pages lost the most organic clicks in the last 30 days?
Join GA4 sessions with our Postgres signups and show conversion by channel.
Which Meta campaigns drove revenue that actually landed in Stripe last month?

The last two are the ones a single tool cannot answer. The agent pulls from each source, reconciles the identifiers, and returns one table.

What this unlocks

  • One setup, every source: the bot does not need to learn a new integration each time you connect something.
  • Unattended digests: a server you add works in scheduled runs, so a daily metrics summary becomes a bot schedule rather than a person's Monday.
  • Cross-source answers: blended CAC, channel-to-revenue, usage-to-billing, questions that normally take three exports.
  • No credentials in chat: OAuth means your database passwords and provider tokens stay encrypted inside Sequel.
  • Read-only by default: each query is surfaced before it runs, and scoped credentials enforce it upstream where the provider supports them.

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.
A source is missing from answersIt is not connected in Sequel. Add it under Data Sources and ask again.
The bot asks you for a database passwordDo not give it one. Sequel holds credentials; the bot only ever gets an OAuth session.

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.

Which data sources can Grok Bot query through Sequel?

Any source you have connected in Sequel. Today that includes PostgreSQL, MySQL, ClickHouse, BigQuery, Cloudflare D1, Google Sheets, Google Analytics 4, Google Search Console, Ahrefs, PostHog, Mixpanel, Amplitude, Stripe, Polar, Dodo Payments, HubSpot, Apollo.io, and Instagram.

Do I have to repeat the setup for every data source?

No. You add Sequel to the bot once. Every source you connect in Sequel after that is available to the bot immediately, with no change on the Grok side.

Does the bot work unattended?

Yes. A server you add is available to every bot on your account and works in scheduled and background runs, which is what makes a daily metrics digest possible.

Can the bot write to my databases?

No. Sequel is read-only by default and surfaces each query before it runs. Where the upstream provider supports scoped credentials, read-only is enforced on their side too.

Can it join data across sources in one answer?

Yes, and that is the point. Ask one question that spans Search Console, GA4, and your database, and the agent pulls from each and reconciles them in a single answer.

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.