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.

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.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

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.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

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.

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.