Blog
guide

How to Connect Ahrefs to Grok Bot Using Sequel

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

Ahrefs holds the backlink and keyword data most SEO decisions rest on, and getting a cross-cut of it usually means three exports and a spreadsheet. Grok Bot is xAI's bot builder, an agent that keeps context and reaches your tools through plugins. Connect Ahrefs through Sequel and the bot pulls the reports itself, then joins them with your own traffic data.

TL;DR

What you're connectingAn Ahrefs workspace to Grok Bot
Setup timeAbout 5 minutes
Setup methodOne chat message. Grok Bot has no MCP config file
Auth to AhrefsAPI key, pasted into Sequel once
Auth to the botOAuth to Sequel. No key in the chat
Access levelRead-only reports over Ahrefs API v3
Cost noteMost reports consume Ahrefs API units, minimum 50 per request

What You'll Accomplish

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

  • "Which new referring domains did our top competitor gain in the last 30 days?"
  • "What organic keywords do we rank for in the US top 10, and what are they worth?"
  • "What's the search volume and difficulty for this list of 20 keywords?"

Prerequisites

  • A Sequel account: sign up free at sequel.sh
  • An Ahrefs account with API access on an eligible paid plan
  • An Ahrefs API key from Account settings → API keys (owners and admins only)
  • A Grok account with a bot you can send messages to

Step 1: Connect Ahrefs to Sequel

In Ahrefs, go to Account settings → API keys and create a key. Copy it.

Then sign in to sequel.sh and open Data Sources.

Sequel Data Sources page

Click New Connection and choose Ahrefs.

Choose a connector

FieldWhat to enter
Connection NameA memorable label, for example Ahrefs Main Workspace
API keyThe key you copied from Ahrefs

Click Test. Sequel validates the key against the free subscription-info endpoint, which consumes no units. Save and the connection goes live.

What you get, all read-only:

ReportWhat it returns
Domain overviewDomain Rating, organic and paid traffic, keyword counts
BacklinksIndividual inbound links with anchor text and source metrics
Referring domainsUnique linking domains and their authority
Organic keywordsKeywords a target ranks for, with position, volume, traffic
Top pagesTop pages by organic traffic and their lead keyword
Keyword researchVolume, difficulty, and CPC via Keywords Explorer

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 Ahrefs Data

Attach @sequel and ask:

What's the Domain Rating and organic traffic for our site and our three main competitors?
Show the top 50 referring domains for competitor.com, sorted by domain authority.
Which organic keywords does our site rank for in positions 4 to 10 in the US?

What You Can Do Now

  • Competitor link monitoring: the bot runs unattended, so a weekly "new referring domains" check is a schedule, not a chore.
  • Keyword prioritisation: volume, difficulty, and current position in one table instead of three exports.
  • Content gap analysis: "What do competitors rank for that we do not?" in one message.
  • Link prospecting: pull referring domains for a competitor and filter by authority.
  • Cross-source joins: pair Ahrefs rankings with Search Console clicks and revenue from your database.

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.
Test fails with an auth errorThe key is invalid or revoked. Create a fresh one under Account settings and API keys.
Reports return an access errorYour plan may lack API access or your units are exhausted. Check both in Ahrefs.
Empty results for a domainCheck the spelling and the country filter. Ahrefs may have no data for that market.

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.

Do I need a paid Ahrefs plan for the API?

The Ahrefs API is available on eligible paid plans. On other plans you get a limited set of free test queries. Validating your key is always free.

Does querying Ahrefs through the bot consume API units?

Yes. Most Ahrefs reports consume API units, with a minimum of 50 per request, billed against your plan's allowance. Broad questions cost more than narrow ones.

Who can create an Ahrefs API key?

Workspace owners and admins, under Account settings and then API keys.

Can the bot change my Ahrefs projects?

No. Sequel exposes read-only reports over the Ahrefs API v3. It cannot modify projects or settings.

Can I ask about competitor domains?

Yes. Ahrefs reports work on any domain or URL, not only ones you own, so competitor research works the same way.

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.