Ahrefs MCP

Research keywords, backlinks and competitors with Ahrefs data, in chat

The Ahrefs MCP is Ahrefs' official hosted server. It gives Claude the Ahrefs API: Site Explorer, Keywords Explorer, backlinks and SERP data. It's the one for competitor research: what they rank for, who links to them and what changed.
It's available on paid Ahrefs plans from Lite up, and every call spends API units from your plan. If you pay for Semrush instead, use Semrush. With no SEO subscription, DataForSEO sells similar data per call.
Site Explorer
Organic keywords, top pages and traffic for any domain
Keywords Explorer
Volume, difficulty and keyword ideas for any topic
Backlinks
Referring domains, new and lost links, broken backlinks
SERP data
Who ranks for a keyword and how strong each page is
Prompts to try
When to use
  • You already pay for Ahrefs and want its data in the chat
  • You research competitors' keywords and backlinks often
  • You want to join competitor data with your own Search Console data
When not to use
  • You pay for Semrush, not Ahrefs: use Semrush
  • You have no SEO subscription: DataForSEO is pay per call
  • You only need your own site's search data: Search Console is free

Watch out

  • Every call spends API units from your plan, and big pulls spend them fast. Ask for top 50, not everything.
  • Keys created through MCP sign-in default to 200,000 units a month. Workspace admins can change the cap per key.
  • Each plan also limits rows per request, so lower tiers return shorter lists.

Install

Terminal

Loading editor...

claude mcp add ahrefs https://api.ahrefs.com/mcp/mcp -t http
Run /mcp in Claude Code and sign in. Ahrefs shows a consent screen and creates an API key tagged for MCP. In claude.ai, add Ahrefs under Settings → Connectors. Ahrefs also has setup guides for ChatGPT, Copilot Studio, Lovable, n8n and others.
© 2026 Paralect, Inc 651 N Broad St, Suite 206, Middletown, 19709, Delaware, United States