BLUENEXUS INTEGRATIONSCONNECTION GUIDE

Ahrefs in Claude, ChatGPT and MCP: what each can do, and how to connect

Ahrefs has an official MCP server, and it's in Claude's connector directory. Connected to Claude or ChatGPT, it can pull backlinks, organic keywords, top pages and competitors for any site, research keywords and SERPs, and read your Rank Tracker, Site Audit and Search Console data. It's included on Lite and higher plans, and most research spends your API units. This guide covers what it can do, how units work, how to connect, what to do when it fails, and what changes when an agency shares the work.

MCP (Model Context Protocol) is an open standard for plugging AI assistants into other apps. Claude and ChatGPT are a great fit for your own SEO research. BlueNexus is for when SEO is shared work.

ON YOUR OWN Claude

For an SEO or marketer who researches in Claude.

Backlinks, keywords and top pagesYes, with Ahrefs' connector
Rank Tracker, Site Audit and Search ConsoleYes, for your Ahrefs projects
CostLite and above; research spends API units
Who uses itJust you, in your own chats
ON YOUR OWN ChatGPT

For someone on the team who works in ChatGPT.

Backlinks, keywords and top pagesYes, with Ahrefs' connector
Rank Tracker, Site Audit and Search ConsoleYes, for your Ahrefs projects
CostLite and above; research spends API units
Who uses itJust you, in your own chats
WITH YOUR TEAM BlueNexus

For an agency or team where the SEO lead, writers and clients share the work.

Backlinks, keywords and top pagesYes, alongside your other apps
Rank Tracker, Site Audit and Search ConsoleYes; Rank Tracker, Search Console and Site Audit health reads don't spend units
CostLite and above; research spends API units
Who uses itYour team and your AI agents

What it can do, and what it costs

Ahrefs' MCP server covers Ahrefs' main reports, including Site Explorer, Keywords Explorer, Rank Tracker, Site Audit and Brand Radar. It runs on Ahrefs' servers. The old local package is no longer supported.

Units are the part to understand. Ahrefs says calls through MCP use units the same way direct API calls do. Each research call costs at least 50 units, more for more rows and fields, and cached results are free. Rank Tracker, management and public endpoints don't spend units. In its September 2026 update, Ahrefs doubled the monthly allowance on every plan:

  • Lite: 200,000 units, up to 100 rows per request.
  • Standard: 800,000 units, up to 250 rows.
  • Advanced: 2 million units, up to 500 rows.
  • Enterprise: custom units, no row limit.

Keyword expansion and full backlink pulls are the expensive calls. Ask the AI to check your remaining units first, or see Limits and usage in Ahrefs' account settings, and pull only the rows you need.

What Ahrefs' MCP server lets an AI do

Site ExplorerBacklinks, referring domains, organic keywords, top pages and competitors for any site.
Keywords and SERPsKeyword ideas, difficulty and volume, and who ranks for a query today.
Your projectsRank Tracker positions, Site Audit issues and Search Console data.
Brand RadarHow often your brand shows up in AI answers, if you have Brand Radar.
Works with
Ahrefs Lite, Standard, Advanced and EnterpriseClaude, ChatGPT, Claude Code, Copilot Studio and n8nYour plan's API units, shared with the API
Keep in mind
  • Most research calls spend API units, at least 50 each
  • Rows per request depend on your plan
  • Keys made by signing in stop at 200,000 units a month by default
  • The old local server is no longer supported

Connect Ahrefs to Claude or ChatGPT

Both sign in with your Ahrefs account and ask you to pick a workspace.

Connect Ahrefs to Claude

2 min

A good fit if you research SEO in Claude.

  1. 1In Claude, open Customize, then Connectors, and find Ahrefs in the directory.
  2. 2Click Connect, sign in to Ahrefs, choose your workspace and approve. No API key is needed.
  3. 3Keep Claude asking before it runs Ahrefs tools, so you see what each call will pull.
  4. 4Ask: "Use the Ahrefs MCP server to show the top 10 pages on my site by organic traffic."

Ahrefs' Claude guide covers Claude on the web and desktop. In Claude Code, run claude mcp add ahrefs https://api.ahrefs.com/mcp/mcp -t http, then type /mcp to sign in.

Connect Ahrefs to ChatGPT

5 min

A good fit if you work in ChatGPT.

  1. 1In ChatGPT on the web, open Settings, then Apps, then Advanced settings, and turn on Developer mode. Then click Create app.
  2. 2Enter https://api.ahrefs.com/mcp/mcp, choose OAuth, leave the client ID and secret blank, tick I trust this application and click Create.
  3. 3Sign in to Ahrefs, choose your workspace and approve.
  4. 4In a chat, click +, then More, turn on Ahrefs, and ask which keywords you rank for on page two.

Ahrefs' ChatGPT guide describes Developer mode, in beta for Plus and Pro on the web. If Ahrefs appears in ChatGPT's app directory for your plan, connecting from there is simpler.

For developers

Signing in creates a key tagged for MCP. You can also generate an MCP key in Ahrefs' account settings and pass it as a Bearer token. API keys and MCP keys aren't interchangeable, and Ahrefs doesn't allow calling the MCP endpoint from your own scripts. For code, use API v3, on Lite and higher, with a default limit of 60 requests a minute. Responses carry headers that show the units each call cost.

Who can do what

  • Units are shared. MCP, the API and Ahrefs Connect draw from one monthly pool. One teammate's big keyword run is everyone's.
  • Each key has a cap. Keys made by signing in stop at 200,000 units a month by default. An admin can change that.
  • Traffic is an estimate. Ahrefs says its organic traffic isn't taken from your Search Console data. For your own site, use the Search Console data in Ahrefs.
  • Domain Rating is changing. Ahrefs says its new DR4 rolls out in the app on 1 December 2026, so scores may shift.
  • Your data. Ahrefs' pricing page lists "no training on your data" as an Enterprise feature. On other plans, check its privacy policy. In Claude or ChatGPT, that app's settings apply.

When it doesn't work

  • 401 Unauthorized. Usually an API key where an MCP key is needed. It can also be an expired key or a lapsed subscription. Sign in with OAuth again.
  • It stopped partway through a big job. The key hit its monthly cap, or your plan ran out of units. Check in Ahrefs, or ask an admin to raise the key's cap.
  • Results stop at 100 rows. That's Lite's limit per request. Ask for a narrower list.
  • The old npm package fails. Ahrefs no longer supports the local server. Use the hosted one.
  • Traffic doesn't match Search Console. Ahrefs' traffic is an estimate, and imported Search Console data can run a few weeks behind.

With a team: Ahrefs in BlueNexus

In Claude or ChatGPT, each person connects to Ahrefs and works in their own chats. That suits one SEO. In an agency, the SEO lead finds the opportunities, writers do the work, an account manager reports to the client, and everyone spends from the same units.

BlueNexus is a shared AI workspace where people and AI agents work in the same projects, channels and tasks. The BlueNexus Ahrefs connector, our own integration, has 34 tools, 30 that read and 4 that act, for backlinks, organic keywords, top pages, competitors, keyword research, SERPs, Rank Tracker, Site Audit and Search Console data. Rank Tracker, Site Audit project health and Search Console reads don't spend units. Anything that spends units or changes a project waits for a person in Needs you.

Open Add a connector, search for Ahrefs, click Connect and follow the steps.

Illustration of the BlueNexus app with example data.

At Quillfield, an 8-person SEO and content agency in Minneapolis, each client has a project with its own chat, documents and connections. Noa, the SEO lead, is reading the November content plan for Bellwether Bikes, an online bike shop, when a question comes up: which keywords are almost on page one? Noa opens the Dock without leaving the plan and asks the SEO agent.

Illustration of the BlueNexus app with example data.

The SEO agent reads Bellwether's Search Console data in Ahrefs, which spends no units. Checking difficulty does, so the plan waits in Needs you.

Once Noa approves, the agent keeps 12 keywords and posts them in the content channel, and Pim and Sasha, the writers, take six each. The agent did the pulling and the filtering. Which pages the writers work on, and what's tracked, stays with Noa.

Illustration of the BlueNexus app with example data.

For traffic drops, see why your organic traffic dropped, and how to find out with Ahrefs. For the team, see SEO reporting for clients with Ahrefs.

Which way fits you

If you do SEO yourself, connect Ahrefs' MCP server to Claude or ChatGPT, and keep an eye on units. If you'd rather stay in Ahrefs, its Ask Ahrefs agent answers questions inside the app.

If SEO is shared work, across a lead, writers and clients, you'll get more from one shared space than from several private chats. That's what BlueNexus is built for, and you can sign up for BlueNexus to bring your team in.

Questions people ask about Ahrefs and AI

Does Ahrefs have an MCP server?

Yes. Ahrefs runs an official MCP server at api.ahrefs.com/mcp/mcp. It's in Claude's connector directory, and Ahrefs has setup guides for ChatGPT, Claude Code, Copilot Studio, n8n and others. The old local npm package is no longer supported.

Which Ahrefs plan do I need for MCP?

Lite or higher. There's no extra fee for MCP, but it spends the same API units as Ahrefs' API: 200,000 a month on Lite, 800,000 on Standard and 2 million on Advanced, after Ahrefs doubled them in its September 2026 update.

Does the Ahrefs MCP use API units?

Yes, for most research. Ahrefs says calls through MCP use units the same way direct API calls do, with at least 50 units a call. Rank Tracker, management and public endpoints are free, and cached results cost nothing.

Can I use Ahrefs in ChatGPT?

Yes. Ahrefs' guide connects it in Developer mode on ChatGPT Plus and Pro, on the web, using OAuth with no client ID or secret.

Why do I get a 401 error from the Ahrefs MCP?

Usually the wrong kind of key. Ahrefs says API keys and MCP keys aren't interchangeable. Sign in with OAuth, or generate an MCP key in Ahrefs' account settings.

Subscribe to our blog

Product insights, AI and product thinking delivered to your inbox.