How to Use Ahrefs MCP for Link Research: A Step-by-Step Guide

Ahrefs MCP is a hosted server that lets Claude and ChatGPT pull live backlink data into a chat. Learn the setup, the API unit costs, and the prompts for link gaps.
Quick answer: Ahrefs MCP is a hosted server that lets an AI assistant such as Claude or ChatGPT pull live Ahrefs data into a chat, so you can ask for backlink stats, referring domains, and link gaps in plain English. It runs on Ahrefs Lite plans and up, it costs API units per call, and setup takes about ten minutes once you have a paid plan.
TL;DR: Connect the hosted server once, approve the consent screen, then ask the assistant for the exact link data you need. Keep prompts narrow so each call returns few rows and uses few API units.
Key takeaways
- Ahrefs MCP is a hosted server at a single URL, and local setup is no longer supported, according to Ahrefs' own MCP documentation.
- It is available on paid plans starting from Lite, which costs $129 a month and includes 200,000 API units a month, according to Ahrefs' pricing page as of November 2026.
- Each call costs at least 50 API units, and the units are shared across MCP, Ahrefs Connect, and direct API use, according to Ahrefs' MCP documentation.
- Lite returns at most 100 rows per request, Standard returns 250, and Advanced returns 500, according to a November 2026 comparison of SEO MCP servers.
- Ahrefs MCP covers 20 tool groups, from Site Explorer and Keywords Explorer to Rank Tracker, Site Audit, Brand Radar, and Web Analytics, according to a November 2026 review of the official server.
- Asking for backlink stats, referring domains, lost links, and link gaps covers most link research jobs without opening the Ahrefs dashboard at all.
What Ahrefs MCP is and what it can read
MCP stands for Model Context Protocol, an open standard that lets an AI tool connect to a third-party API in a consistent way. Ahrefs MCP is Ahrefs' own hosted server for that standard. It lets an AI agent query the Ahrefs API and enrich its answers with real Ahrefs data, such as keyword research and backlink profiles, according to Ahrefs' MCP documentation.
The server is remote only. It runs at https://api.ahrefs.com/mcp/mcp over Streamable HTTP, and Ahrefs states that local setup is no longer supported. The older local server repository was archived on February 24, 2026, according to a November 2026 comparison of SEO MCP servers. Ignore any tutorial that tells you to run it through npx with an API key, because that path is outdated.
The server exposes 20 tool groups, according to a November 2026 review of the official server. The groups that matter for link research are Site Explorer, which holds backlink and referring domain data, Keywords Explorer, which holds keyword and difficulty data, and Rank Tracker, which holds ranking history. There is also a Search Console group that returns keywords, pages, positions, and performance history from your own Search Console data.
One limit matters more than the tool list. Ahrefs states that using the MCP endpoint through custom scripts, bridges, or standalone clients is not permitted. The server is built for interactive chat with an AI assistant, not for automation, according to Ahrefs' MCP documentation. If you want scheduled jobs or scripts, use the public API instead.
Plans, API units, and row limits
Ahrefs MCP is available on Lite, Standard, Advanced, and Enterprise plans. There is no extra fee for the server itself. You pay with the API units that come with your plan, and the same pool feeds MCP, Ahrefs Connect, and direct API use.
According to Ahrefs' MCP documentation and a November 2026 comparison of SEO MCP servers, the allowances are:
- Lite at $129 a month: 200,000 API units a month, at most 100 rows per request, according to the November 2026 comparison.
- Standard at $249 a month: 800,000 API units a month, at most 250 rows per request, according to the November 2026 comparison.
- Advanced at $449 a month: 2,000,000 API units a month, at most 500 rows per request, according to the November 2026 comparison.
Every call costs a minimum of 50 API units, and the exact amount depends on how complex the request is. A simple backlink count costs near the minimum, while a wide export with many fields costs more. Documented free endpoints and cached responses consume no units, according to the November 2026 comparison.
That math sets a practical budget. On Lite, 200,000 units at 50 units a call buys about 4,000 simple calls a month, according to the November 2026 comparison. In practice, most link research sessions use far fewer, because one well-formed question returns the whole answer. The risk is not one call, it is asking for everything at once.
| Plan | Monthly price | API units per month | Max rows per request | Best for link research |
|---|---|---|---|---|
| Lite | $129 | 200,000 | 100 | One site, small lists |
| Standard | $249 | 800,000 | 250 | Several competitors |
| Advanced | $449 | 2,000,000 | 500 | Large prospect lists |
According to Ahrefs' MCP documentation, the hosted server runs at one URL and is available on Lite plans and up. According to a November 2026 comparison of SEO MCP servers, Lite includes 200,000 API units a month, each call costs at least 50 units, and a single request returns at most 100 rows on Lite. Source: Ahrefs, What is Ahrefs MCP (2026).
How to connect it in Claude
Setup has three steps: add the server, approve the consent screen, and ask a test question. The steps below are for Claude, which Ahrefs lists as a supported client with its own connector. ChatGPT, Copilot Studio, and n8n are also supported, according to a November 2026 comparison of SEO MCP servers.
First, check that your Ahrefs plan is Lite or higher. A free Ahrefs Webmaster Tools account does not include MCP access, because the server is only open to paid plans starting from Lite, according to Ahrefs' MCP documentation.
Second, add the server to Claude. In Claude Code, run this command in your terminal:
claude mcp add ahrefs https://api.ahrefs.com/mcp/mcp -t http
In Claude Desktop, add the same URL as a remote MCP server in the settings. Ahrefs publishes full setup guides for ChatGPT, Claude, Cursor, and Copilot Studio, according to the Ahrefs MCP page.
Third, approve the consent screen. Connecting shows an authorization screen, and approving it creates an API key in your Ahrefs account that is scoped to MCP, according to a November 2026 comparison of SEO MCP servers. The key is tied to the MCP scope, so it cannot be used for other API work.
Fourth, ask a test question that needs one call. A good first prompt is: "How many referring domains does example.com have, and what are the top 10 by Domain Rating?" If the answer comes back with real numbers, the connection works. If it asks you to paste data instead, the server is not connected.
Link research prompts that work
The quality of the answer depends on the quality of the prompt. Vague prompts return wide tables that burn units. Narrow prompts return the exact rows you need. Ask for one domain, one metric, and one limit in each question.
Start with a profile check. Ask: "Give me the backlink stats for example.com: live backlinks, all-time backlinks, live referring domains, and Domain Rating." That one call tells you whether the site is worth deeper work. A site with few referring domains and a low Domain Rating is a different job from a site with thousands of each.
Next, ask who links to a competitor but not to you. This is the link intersect job, and it is the highest-value use of the server for prospecting. Ask: "List the referring domains that link to competitor-a.com and competitor-b.com but not to example.com, ordered by Domain Rating, limit 50." The assistant compares the domain lists and returns only the gaps, which become your outreach list.
Then check what you are losing. Ask: "Show me the referring domains example.com lost in the last 90 days, with the linking page and the anchor text." Lost links are often the cheapest links to win back, because the page already linked to you once. How to track backlinks covers the follow-up routine once you have the lost-link list.
Finally, check the anchors. Ask: "Show me the top 20 anchor texts pointing to example.com and the share of each." A profile full of exact-match commercial anchors looks bought, while a mix of brand names, URLs, and natural phrases looks earned. That check takes one call and it shapes every outreach decision after it.
Reading the results without fooling yourself
MCP returns Ahrefs data, and Ahrefs data has limits. The index is large but it is not the whole web, and it is not Google's index. Treat the numbers as direction, not as a census.
Watch the row cap. On Lite, a request returns at most 100 rows, according to a November 2026 comparison of SEO MCP servers. If you ask for 500 referring domains on Lite, you get the top 100 and nothing tells you the rest exist. Ask for the top 100 by Domain Rating first, then ask for the next band with a filter, such as domains with a Domain Rating between 30 and 50.
Watch the difference between backlinks and referring domains. One domain can link to you from 100 pages, which counts as 100 backlinks but one referring domain. Domain Rating is built from referring domains, not from raw backlink counts, so a jump in backlinks with no new domains means little.
Watch the date on the data. Ahrefs updates its index continuously, but a link found today may have been placed weeks ago. When you compare two sites, compare numbers pulled on the same day, or the comparison is meaningless.
Off-site mentions matter beyond links now. According to an Ahrefs study of 10,000 brands published November 3, 2026, off-site mentions correlate with AI visibility, with Reddit mentions showing a correlation near 0.75. That finding means a link research session should also ask which brands get mentioned where, not only which sites link to whom.
Common mistakes with Ahrefs MCP
- Asking for everything at once. A prompt with no limit returns the widest table the plan allows and costs the most units. Set a limit on every question.
- Comparing numbers from different days. Pull competitor and target data in the same session so the index state matches.
- Trusting the row cap as the full list. On Lite, 100 rows is a cap, not a count, according to a November 2026 comparison of SEO MCP servers. Ask for bands if you need more.
- Using it for automation. Ahrefs does not permit custom scripts or bridges against the MCP endpoint, according to its MCP documentation. Use the public API for scheduled work.
- Skipping the consent check. If the assistant starts asking you to paste Ahrefs exports, the server is not connected, and no amount of rephrasing will fix it.
- Treating MCP data as Google data. Ahrefs measures its own index, so a link Ahrefs has not found yet still counts in Google. Check Google Search Console for the links Google itself reports.
Frequently Asked Questions
What is Ahrefs MCP?
Ahrefs MCP is Ahrefs' hosted Model Context Protocol server. It lets an AI assistant such as Claude or ChatGPT query the Ahrefs API and return live keyword, backlink, and domain data inside a chat, according to Ahrefs' MCP documentation. It runs at one URL over Streamable HTTP, and local setup is no longer supported.
How much does Ahrefs MCP cost?
The server itself has no extra fee. It is available on Lite plans and up, with Lite at $129 a month including 200,000 API units a month, according to a November 2026 comparison of SEO MCP servers. Each call costs at least 50 API units, and the units are shared with Ahrefs Connect and direct API use.
Which AI tools work with Ahrefs MCP?
Claude, ChatGPT, Copilot Studio, and n8n are supported, according to a November 2026 comparison of SEO MCP servers. Ahrefs publishes full setup guides for ChatGPT, Claude, Cursor, and Copilot Studio. Claude has a listed connector, and ChatGPT has a listed app plus a custom route.
Can Ahrefs MCP find link gaps between me and a competitor?
Yes. Ask for the referring domains that link to two competitors but not to you, ordered by Domain Rating, with a limit. The assistant compares the lists through the Site Explorer tools and returns only the gaps, which become your prospect list for outreach.
Why does the assistant ask me to paste Ahrefs data?
That means the MCP server is not connected. Check that your plan is Lite or higher, re-add the server URL, and approve the consent screen, which creates an MCP-scoped API key in your Ahrefs account, according to Ahrefs' MCP documentation. A free Ahrefs Webmaster Tools account does not include MCP access.
How many rows can one Ahrefs MCP request return?
Lite returns at most 100 rows per request, Standard returns 250, and Advanced returns 500, according to a November 2026 comparison of SEO MCP servers. If you need more, ask for bands, such as domains with a Domain Rating between 30 and 50, instead of one wide request.
Expert verdict
Best for: link builders who already pay for Ahrefs Lite or higher and want competitor backlink data inside a chat without exporting CSV files.
Not for: teams on a free plan, or anyone who needs scheduled automation, because Ahrefs does not permit scripts or bridges against the MCP endpoint, according to its MCP documentation.
Pros: live Ahrefs data in plain English; link intersect and lost-link checks in one question; no CSV exports.
Cons: every call costs at least 50 API units; Lite caps each request at 100 rows; the data is from the Ahrefs index, not from Google.
What link velocity is helps you read the growth numbers MCP returns, because a sudden jump in new referring domains means something different from steady growth. Ask MCP for new and lost referring domains per month before you judge a trend.
How to find broken backlinks is the natural next step after a lost-link check, because a broken link on a page that once linked to you is a replacement opportunity. Ask MCP for the lost links first, then check which ones broke.
Bottom line
Connect the hosted server once, keep every prompt narrow with a limit, and use the answers for link gaps, lost links, and anchor checks. Watch your API units and your row cap, and treat the numbers as Ahrefs data, not Google data.
Sources
The BacklinkPrice Team researches backlink prices, publisher sites and link building tools. We check prices and plans against each provider's own pages and date them, so you know how current the numbers are.
More from BacklinkPrice TeamRelated guides




