Skip to main content
Ahrefs is a comprehensive SEO toolset for backlink analysis, keyword research, rank tracking, and site auditing. The Ahrefs MCP server lets you access SEO data and analytics using natural language.

What Can It Do?

  • Analyze backlinks and domains with ratings, referring domains, and anchor text
  • Research keywords with volume, difficulty, SERP data, and suggestions
  • Track rankings across projects and competitors
  • Audit sites for SEO issues and page content
  • Monitor brand mentions in AI chatbot responses

Where to Use It

Add Ahrefs as a tool to any agent. The agent can then analyze SEO data conversationally, choosing the right actions based on context. To add an MCP tool to your agent:
  1. Open your agent’s configuration
  2. Click Add toolsConnect an app with MCP
  3. Search for the integration and select it
  4. Authenticate with your account
You can control which tools your agent has access to. After adding an integration, click on it to enable or disable specific tools based on what your agent needs.

In Workflows (Via Agent Node)

For automated pipelines, use an Agent Node with Ahrefs tools. This gives you the flexibility of an agent within a deterministic workflow.

As a Custom MCP Node

You can also create a standalone MCP node for a specific action. This generates a reusable node that performs one task, useful when you need the same operation repeatedly in workflows.
To create a custom MCP node:
  1. Go to your node library and search for the integration
  2. Click Create a node with AI
  3. Describe the specific action you want (e.g., “Get the domain rating for example.com”)
  4. Test the node and save it for reuse
Custom MCP nodes are single-purpose by design. For tasks that require multiple steps or dynamic decision-making, use an agent instead.

Available Tools

Site Explorer

ToolDescription
Domain RatingGet domain rating for a domain
Backlinks StatsGet backlinks statistics for a domain or URL
Outlinks StatsGet outlinks statistics for a domain or URL
MetricsGet comprehensive metrics for a domain or URL
Metrics By CountryGet metrics filtered by country for a domain or URL
Pages By TrafficGet pages by traffic for a domain or URL
Domain Rating HistoryGet domain rating history for a domain
URL Rating HistoryGet URL rating history for a URL
Refdomains HistoryGet referring domains history for a domain or URL
Pages HistoryGet pages history for a domain or URL
Metrics HistoryGet metrics history for a domain or URL
Keywords HistoryGet keywords history for a domain or URL
Total Search Volume HistoryGet total search volume history for a domain or URL
BacklinksGet backlinks for a domain or URL
Broken BacklinksGet broken backlinks for a domain or URL
RefdomainsGet referring domains for a domain or URL
AnchorsGet anchor text for a domain or URL
Organic KeywordsGet organic keywords for a domain or URL
Organic CompetitorsGet organic competitors for a domain or URL
Top PagesGet top organic pages for a domain
Paid PagesGet paid pages for a domain or URL
Best By External LinksGet pages with the most external links
Best By Internal LinksGet pages with the most internal links
Linked DomainsGet domains that are linked from the target
Outgoing External AnchorsGet external anchor texts used in outgoing links
Outgoing Internal AnchorsGet internal anchor texts used in outgoing links
Batch AnalysisBatch analyze multiple URLs or domains for SEO metrics

Keywords Explorer

ToolDescription
Keywords OverviewGet metrics for keywords from Keywords Explorer
Volume HistoryGet search volume history for a keyword
Volume By CountryGet search volume by country for a keyword
Matching TermsGet matching terms for keywords
Related TermsGet related terms for keywords
Search SuggestionsGet search suggestions for keywords
SERP OverviewGet top SERP results for a keyword

Rank Tracker

ToolDescription
Rank Tracker OverviewGet keyword rankings overview for a Rank Tracker project
Rank Tracker Competitors OverviewGet competitor rankings for a Rank Tracker project
Rank Tracker Competitors PagesGet competitor pages for a Rank Tracker project
Rank Tracker Competitors StatsGet competitor statistics for a Rank Tracker project
Rank Tracker SERP OverviewGet SERP overview for a tracked keyword in Rank Tracker

Site Audit

ToolDescription
Site Audit ProjectsList Site Audit projects with health scores
Site Audit IssuesGet SEO issues found by Site Audit
Site Audit Page ContentGet page content from a Site Audit crawl
Site Audit Page ExplorerExplore pages from a Site Audit crawl

Brand Radar

ToolDescription
Brand Radar AI ResponsesGet AI chatbot responses mentioning brands
Brand Radar Cited DomainsGet domains cited in AI responses about brands
Brand Radar Cited PagesGet pages cited in AI responses about brands
Brand Radar Impressions OverviewGet brand impression statistics from AI chatbots
Brand Radar Mentions OverviewGet brand mention statistics from AI chatbots
Brand Radar Impressions HistoryGet brand impressions over time from AI chatbots
Brand Radar Mentions HistoryGet brand mentions over time from AI chatbots
Brand Radar SOV HistoryGet share of voice history from AI chatbots
Brand Radar SOV OverviewGet share of voice overview from AI chatbots

Example Prompts

Use these with your agent or in the Agent Node: Check domain authority:
Get the domain rating for competitor.com
Analyze backlinks:
Show me the backlink stats for our website example.com
Research keywords:
Get keyword overview for "project management software"
Find competitors:
Who are the organic competitors for example.com?
Audit site health:
List all Site Audit projects and their health scores
Track brand mentions:
Show AI chatbot responses that mention our brand

Troubleshooting

IssueSolution
Agent not finding the right dataUse exact domain names without protocol (e.g., “example.com” not “https://example.com”)
Action not completingCheck that you’ve authenticated with Ahrefs
Unexpected resultsThe agent may chain multiple tools (e.g., getting domain rating first, then backlinks). Review the agent’s reasoning to understand its approach.
Tool not availableVerify the tool is enabled in your agent’s MCP configuration
Agents are smart enough to chain multiple API calls together. For example, asking “Compare our backlink profile with competitor.com” will analyze both domains then present results. If results seem off, check the agent’s step-by-step reasoning.

Need Help?


Use this integration directly in Claude or Cursor. Connect remotely via the Ahrefs MCP server using your Gumloop credentials.