# Ahrefs — MCP Server

> Backlink and ranking data an agent can query directly, without the export step.

**Source:** https://mcpplaygroundonline.com/mcp-servers/ahrefs  
**Transport:** http  
**Requires auth:** Yes

---

## What it does

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 exposed

- 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 queries you can run

- "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?"

## Details

- **Recommended model:** anthropic/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.
- **Transport:** http
- **Authentication:** Required — An Ahrefs API token. API access is a paid add-on on most plans and calls draw against a unit quota.
- **Hosted endpoint:** https://api.ahrefs.com/mcp/mcp
- **Official source:** [Ahrefs API documentation](https://ahrefs.com/api)

## Frequently asked questions

### 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.

---

_Test this server across 40+ models on MCP Playground: https://mcpplaygroundonline.com/mcp-servers/ahrefs — free, no install._
