MCP ServerOfficialHTTP

Ahrefs MCP Server

Ahrefs exposes its API as an MCP server at api.ahrefs.com/mcp. Backlink analysis is the obvious use — it is the dataset Ahrefs is best known for, and it is miserable to work through by hand.

Hosted URL

https://api.ahrefs.com/mcp/mcp

Suggested model

Claude Sonnet 4.5

Chat with 60+ AI models on the same workflow — switch to a different model mid-conversation and re-run the same prompt, or use Compare mode to put several side-by-side and balance quality vs. cost.

Auth

An Ahrefs API token. API access is a paid add-on on most plans and calls draw against a unit quota.

What the Ahrefs MCP server does

How models use it and what it is built for.

The server puts Ahrefs’ crawl index behind MCP tools. Backlink profiles are the centre of it: referring domains for a target, their authority, the anchor text distribution, and which links are new or lost over a window — the last one being the query that actually explains a ranking drop. Keyword data covers volume, difficulty and the SERP for a term. Site-level metrics like Domain Rating and organic traffic estimates are available for any domain, which is what makes competitive benchmarking a single question rather than a project. Because backlink data is inherently large and repetitive, it suits an agent well: asking which of four hundred new referring domains are worth noticing is pattern recognition, and a model will do it without losing interest halfway down the list.

Tools the Ahrefs MCP server exposes

Typical tools an AI model can call. Exact names vary by version.

  • backlinks — referring domains and pages for a target, with authority metrics
  • new and lost links — link changes over a time window
  • anchors — anchor text distribution across a backlink profile
  • domain metrics — Domain Rating, organic traffic and keyword estimates
  • keyword data — volume, difficulty and SERP overview for a term
  • organic keywords — the terms a domain currently ranks for

Example prompts to try

Copy any of these into MCP Agent Studio after connecting.

  • Which referring domains did we lose in the last month, and how authoritative were they?

  • Compare our Domain Rating and referring domain count against these two competitors.

  • What anchor text dominates our backlink profile, and is it over-optimised?

  • Which organic keywords did this competitor gain since the last core update?

Models on MCP Playground

This is not a single-model product: you get the same MCP connection with 60+ models (Claude, GPT, Gemini, DeepSeek, open-weight, and more), you can switch mid-conversation, and you can open Compare mode to run the same prompt against multiple models at once. The card above is a suggested starting point for this server — not the only choice.

Default pick for Ahrefs

Claude Sonnet 4.5

Backlink profiles are long, noisy lists where the signal is in a handful of rows. Sonnet 4.5 holds a large result set and picks out what actually moved.

Check an AI agent can actually use the Ahrefs MCP server

Listing tools proves the server is reachable, not that a model can work with it. Evals go further: they read every tool on the server, write a test suite from its real schemas, and run it — code decides pass/fail on the responses (schema conformance, error codes, pagination, result caps) while a scoring model grades plain-English tasks driven through the tools.

Get a pass/fail report per tool with the evidence behind each verdict — and replay the same suite after every schema change. Destructive tools are excluded from the run.

Run evals

Try the Ahrefs MCP server in your browser

Open MCP Agent Studio with the connection pre-filled. Add your token, pick any of 60+ models, and start chatting — no install required.

Open Agent Studio

Ahrefs MCP server — FAQ

Common questions about connecting, scoping and using it safely.

What is the Ahrefs MCP server?

An MCP endpoint over the Ahrefs API at api.ahrefs.com/mcp. It gives an AI assistant access to backlink profiles, link changes, anchor text, domain metrics and keyword data from the Ahrefs index.

Do I need a paid Ahrefs plan?

Yes. API access is a paid add-on on most plans and consumes units per call. This is not a tool to point an agent at speculatively — decide the question before you start the loop.

Is Ahrefs better than Semrush for this?

For backlinks, Ahrefs is generally the stronger index and the more common choice. For keyword research breadth and competitive overviews, Semrush is usually preferred. Teams that care seriously about both tend to run both.

What can an agent actually add here?

Volume handling and correlation. "Which of these six hundred lost links mattered" is mechanical filtering against authority and topical relevance — exactly what a model does well and what people skip because the export is tedious.

Can it explain a ranking drop?

It can assemble the evidence — lost links, competitor gains, keyword movement — and propose a hypothesis. Treat that as a lead, not a diagnosis: ranking changes have causes outside any backlink index, including algorithm updates and your own content changes.

Other MCP servers

More on MCP Playground

Ahrefs MCP Server — AI Agent for Backlinks and Rankings