seo Official server available

Ahrefs MCP Server

The official Ahrefs MCP connects backlink, keyword and traffic data to Claude and ChatGPT. Hosted remote server, works from the Lite plan and uses API units.

Pricing
paid
Page updated

No extra fee for the MCP, but it uses your plan's API units: 100k on Lite, 400k on Standard, 1M on Advanced, 2M on Enterprise.

View docs
https://api.ahrefs.com/mcp/mcp
Website

Ahrefs now runs a hosted MCP server at https://api.ahrefs.com/mcp/mcp. You add that URL to Claude, ChatGPT or another client, approve the consent screen with your Ahrefs login, and the AI can pull data from the Ahrefs API: backlinks, keywords, organic traffic, the stuff you'd normally click through Site Explorer and Keywords Explorer for.

Heads up if you set this up last year: the old local server (ahrefs/ahrefs-mcp-server, npm @ahrefs/mcp) is archived on GitHub. Use the hosted one. Any paid plan from Lite up gets access.

Here's where it earns its keep. Ask Claude to pull the referring domains of your three closest competitors, find the domains that link to at least two of them but not to you, and sort by Domain Rating. That's a link-building prospect list in one message, and you can ask follow-ups without exporting a single CSV.

Watch your API units. Every call spends units from the same monthly pool as the Ahrefs API: 100,000 on Lite, 400,000 on Standard, 1,000,000 on Advanced. Lite also caps you at 100 rows per request. Workspace admins can set a monthly unit limit per MCP key, which I'd do before handing it to the whole team. The server only reads data, so it can't break anything in your account.

Official vs community Ahrefs MCP

Ahrefs MCP (official, hosted)

Remote server URL: https://api.ahrefs.com/mcp/mcp

The hosted server is the only official option now. The earlier local package (@ahrefs/mcp, repo ahrefs/ahrefs-mcp-server) is archived. Skip community servers that scrape Ahrefs' free tools by solving CAPTCHAs: they break often and Ahrefs doesn't support them.

What you can ask it

  • “Find domains that link to at least two of competitor-a.com, competitor-b.com and competitor-c.com but not to mysite.com. Sort by Domain Rating.”
  • “What are the top 20 pages on competitor.com by organic traffic, and which keywords drive each one?”
  • “Give me keyword ideas for "linkedin ads for b2b" with volume and KD. Keep anything under KD 20.”
  • “Compare Domain Rating, referring domains and organic traffic for these five sites in a table.”
  • “Which new backlinks did mysite.com get in the last 30 days, and which ones did we lose?”
  • “Pull the keywords where competitor.com ranks 1-3 and I rank 4-15, so I know what to refresh first.”

Features

  • Hosted remote server over Streamable HTTP, nothing to install
  • Backlinks and referring domains for any domain or URL
  • Keyword volume, difficulty and SERP data from the Ahrefs index
  • Domain Rating, organic traffic estimates and top pages for competitors
  • OAuth consent flow that creates a dedicated MCP-scoped API key in your account
  • Per-key monthly API unit limits that workspace admins can set
  • Read-only: it pulls data and can't change anything in your Ahrefs account

How to set up the Ahrefs MCP Server

Works with: Claude, Claude Code, ChatGPT, Copilot Studio, n8n, Lovable, Manus, Le Chat

1. You need a paid Ahrefs plan, Lite or higher. 2. Claude Code: add the remote server:
claude mcp add ahrefs https://api.ahrefs.com/mcp/mcp -t http
Launch Claude, run /mcp, pick Ahrefs and authenticate. Log in to Ahrefs, pick your workspace and click Allow. 3. Claude web or desktop, ChatGPT and others: add https://api.ahrefs.com/mcp/mcp as a connector and approve the Ahrefs consent screen. Ahrefs has step-by-step guides for Claude, Claude Mobile, ChatGPT, Copilot Studio, n8n, Lovable, Manus and Le Chat in its MCP docs. 4. Optional: in Ahrefs โ†’ Account settings โ†’ API keys, set a monthly unit limit on the MCP key. 5. Ask a test question, like "What's the Domain Rating of ahrefs.com?", to confirm it's connected.

Alternatives

Semrush MCP

Semrush's official hosted server, if your team pays for Semrush instead of Ahrefs.

DataForSEO MCP

Pay-per-request backlink, keyword and SERP data with no SEO tool subscription.

FAQ

Is there an official Ahrefs MCP server?
Yes. Ahrefs hosts it at https://api.ahrefs.com/mcp/mcp. The old local npm package @ahrefs/mcp is archived, so use the hosted server.
Which Ahrefs plan do I need for MCP?
Any paid plan from Lite up. Lite gets 100,000 API units a month and 100 rows per request; higher plans get more of both.
How do I connect Ahrefs to Claude?
Add https://api.ahrefs.com/mcp/mcp as a connector in Claude, or run claude mcp add ahrefs https://api.ahrefs.com/mcp/mcp -t http in Claude Code, then log in and click Allow.
Does the Ahrefs MCP cost extra?
No separate fee, but every call spends Integration API units from your plan. Admins can cap units per MCP key.
Can I call the Ahrefs MCP from my own scripts?
No. Ahrefs says using the MCP endpoint through custom scripts or bridges isn't permitted. Use the Ahrefs API for that.

Added: 2026-03-08 ยท Last reviewed: 2026-09-22