Ahrefs MCP Server

Official

Pull live Ahrefs backlink, keyword and site-audit data straight into your AI assistant.

Remote serverstreamable-httpsse

What is the Ahrefs MCP server?

Ahrefs' official hosted MCP server exposes Site Explorer, Keywords Explorer, Rank Tracker and Site Audit data to AI agents over streamable HTTP. That is what the ahrefs mcp server brings to an AI assistant: the same capability, reachable through the Model Context Protocol rather than a separate app or dashboard.

The short version

Ahrefs' official hosted MCP server exposes Site Explorer, Keywords Explorer, Rank Tracker and Site Audit data to AI agents over streamable HTTP.

Getting it running

Because this one is hosted, setup is mostly authentication — you point your client at the endpoint and approve access. Nothing runs on your machine, so there is no runtime to keep patched.

The tools it exposes

The server publishes 12 tools. What each one is for:

  • get_backlinks — Return backlinks for a target domain or URL, with referring domain and anchor detail
  • list_issues — List SEO issues detected for a Site Audit project so an agent can prioritise fixes
  • site-explorer-overview (tool group) — Core Site Explorer metrics: Domain Rating, backlink and outlink stats, organic and paid overview, metrics history
  • site-explorer-reports (tool group) — Detailed reports covering backlinks, referring domains, anchors, organic keywords and competitors, top pages and linked domains
  • keywords-explorer (tool group) — Keyword overview, volume by country and over time, matching and related terms, and search suggestions
  • serp-overview (tool group) — SERP overview for a given keyword
  • rank-tracker (tool group) — Rank Tracker overview and competitor position reports
  • site-audit (tool group) — Site Audit projects, issues, page explorer and page content
  • web-analytics-overview (tool group) — Web Analytics stats and charts for a connected property
  • gsc (tool group) — Google Search Console keywords, pages, positions and performance history
  • batch-analysis (tool group) — Analyse multiple targets in a single request
  • subscription-info (tool group) — Report your current subscription limits and API unit usage

What it needs from you

An Ahrefs subscription on the Lite plan or higher, plus an MCP client that supports remote servers over streamable HTTP.

Things to watch

  • Your data travels to the provider's service, so the usual questions apply about what you send and what they retain.
  • With 12 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch Ahrefs.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

How it compares

This sits in the search and retrieval group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Ahrefs's toolset — get_backlinks, list_issues, site-explorer-overview (tool group) and 9 more — is a fair guide to whether it matches your workflow. It is maintained by Ahrefs rather than a third party, which usually means auth handling and breaking changes are dealt with faster.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

What you can do with it

Competitor backlink teardown

Ask the assistant to pull referring domains and anchor profiles for two or three rivals, then have it cluster the results into outreach targets you have not already covered.

Turning a site audit into a work queue

Fetch open Site Audit issues, let the model group them by template and severity, and export the result as tickets rather than reading a 400-row table by hand.

Content gap research before a brief

Combine Keywords Explorer volumes with organic-keyword reports for competing pages so a writer starts from evidence instead of intuition.

Weekly ranking narrative

Have an agent read Rank Tracker movements and Search Console performance, then write the two-paragraph summary a stakeholder actually reads.

Available tools

ToolWhat it does
get_backlinksReturn backlinks for a target domain or URL, with referring domain and anchor detail.
list_issuesList SEO issues detected for a Site Audit project so an agent can prioritise fixes.
site-explorer-overview (tool group)Core Site Explorer metrics: Domain Rating, backlink and outlink stats, organic and paid overview, metrics history.
site-explorer-reports (tool group)Detailed reports covering backlinks, referring domains, anchors, organic keywords and competitors, top pages and linked domains.
keywords-explorer (tool group)Keyword overview, volume by country and over time, matching and related terms, and search suggestions.
serp-overview (tool group)SERP overview for a given keyword.
rank-tracker (tool group)Rank Tracker overview and competitor position reports.
site-audit (tool group)Site Audit projects, issues, page explorer and page content.
web-analytics-overview (tool group)Web Analytics stats and charts for a connected property.
gsc (tool group)Google Search Console keywords, pages, positions and performance history.
batch-analysis (tool group)Analyse multiple targets in a single request.
subscription-info (tool group)Report your current subscription limits and API unit usage.

How to install the Ahrefs MCP server

claude mcp add ahrefs https://api.ahrefs.com/mcp/mcp -t http

Configuration

An Ahrefs subscription on the Lite plan or higher, plus an MCP client that supports remote servers over streamable HTTP.

Example prompts to try

  • Compare the referring domain growth of ahrefs.com and semrush.com over the last six months and tell me who is winning links in the 'SEO tools' topic.
  • List the top 20 pages on my site by organic traffic and the keyword driving each one.
  • Pull the open issues from my Site Audit project and group them into a prioritised fix list for the dev team.
  • What organic keywords does competitor.com rank in the top 5 for that my site does not rank for at all?

Frequently asked questions

No. Ahrefs hosts the server themselves, so there is no npm or pip package to install. You point your MCP client at https://api.ahrefs.com/mcp/mcp, complete the browser authorisation flow, and the connection syncs across every device signed into the same Ahrefs personal or company account.