Skip to main content Announcing Tool Policies: AI agent permissions down to the field Read the announcement
Live 153 Actions

Ahrefs MCP Server
for AI Agents

Connect your AI agent to StackOne's Ahrefs MCP server and give it 153 MCP tools out of the box. Auth, tool execution, and security all managed.

Ahrefs logo
Ahrefs MCP Server
Built by StackOne StackOne
DrataGPLocalyzeFlipMindtoolsScreenloop

Coverage

153 Agent Actions

Agents can read and write in Ahrefs. Extend your agent's capabilities with custom actions.

Authentication

Agent Tool Authentication

Per-user OAuth in one call. Your Ahrefs MCP server gets session-scoped tokens with zero credentials stored on your infra.

Agent Auth →

Security

Agent Protection

Every Ahrefs tool response scanned for prompt injection in about 2.5 ms, with 0.94 F1 on tool-response attacks, all running on a CPU.

Prompt Injection Defense →

Performance

Max Agent Context. Min Cost.

Free up to 96% of your agent's context window to enhance reasoning and reduce cost, on every Ahrefs call.

Tools Discovery →

What is the Ahrefs MCP Server?

A Ahrefs MCP server lets AI agents read and write Ahrefs data through the Model Context Protocol, Anthropic's open standard for connecting LLMs to external tools. StackOne's Ahrefs MCP server ships with 153 pre-built actions, fully extensible via the Connector Builder, plus managed authentication, prompt injection defense, observability, and agent execution runtime. Connect it from MCP clients like Claude Desktop, Claude Code, Cursor, Goose, and VS Code, or from agent frameworks like OpenAI Agents SDK, LangChain, and Vercel AI SDK.

All Ahrefs MCP Tools

Every StackOne action for Ahrefs, ready for your agent. Read and write, scoped to exactly what you need.

Topics

  • List Topics

    Returns the Ahrefs Brand Radar topics report.

  • List Topics

    Returns the Ahrefs Content Helper topics report.

Citations

  • List Citations

    Returns the Ahrefs Brand Radar citations report.

  • List Citations

    Returns the Ahrefs Brand Radar citations report.

Impressions

  • List Impressions

    Returns the Ahrefs Brand Radar impressions report.

  • List Impressions

    Returns the Ahrefs Brand Radar impressions report.

Mentions

  • List Mentions

    Returns the Ahrefs Brand Radar mentions report.

  • List Mentions

    Returns the Ahrefs Brand Radar mentions report.

Share Of Voices

  • List Share Of Voice

    Returns the Ahrefs Brand Radar share of Voice report.

  • List Share Of Voice

    Returns the Ahrefs Brand Radar share of Voice report.

Referring Pages

  • List Referring Pages

    Returns the Ahrefs Competitive Analysis referring pages report.

  • List Referring Pages

    Returns the Ahrefs Site Explorer referring pages report.

Metrics By Countrys

  • List Metrics By Country

    Returns the Ahrefs GSC Insights metrics by country report.

  • List Metrics By Country

    Returns the Ahrefs Site Explorer metrics by country report.

Pages Historys

  • List Pages History

    Returns the Ahrefs GSC Insights pages history report.

  • List Pages History

    Returns the Ahrefs Site Explorer pages history report.

Keywords

  • List Keywords

    Returns the Ahrefs GSC Insights keywords report.

  • List Keywords

    Returns the Ahrefs Management keywords report.

Overviews

  • List Overview

    Returns the Ahrefs Keywords Explorer overview report.

  • List Overview

    Returns the Ahrefs Rank Tracker overview report.

Brand Radar Prompts

  • Create Brand Radar Prompts

    Adds prompts to an Ahrefs Brand Radar report so their AI responses are tracked.

  • List Brand Radar Prompts

    Returns the Ahrefs Management brand Radar prompts report.

  • Update Brand Radar Prompts

    Updates prompts tracked by an Ahrefs Brand Radar report.

  • Delete Brand Radar Prompts

    Removes prompts from an Ahrefs Brand Radar report.

Brand Radar Reports

  • Create Brand Radar Report

    Creates a new Ahrefs Brand Radar report for tracking brand visibility in AI search.

  • List Brand Radar Reports

    Returns the Ahrefs Management brand Radar Reports report.

  • Update Brand Radar Report

    Updates the configuration of an Ahrefs Brand Radar report.

  • Delete Brand Radar Report

    Deletes an Ahrefs Brand Radar report.

Keyword Lists

  • Create Keyword List

    Creates a new Keywords Explorer keyword list in Ahrefs.

  • List Keyword Lists

    Returns the Ahrefs Management keyword lists report.

  • List Keyword Lists

    Returns the Ahrefs Site Explorer keyword lists report.

  • Update Keyword List

    Renames or updates an existing Ahrefs Keywords Explorer keyword list.

  • Delete Keyword List

    Deletes an Ahrefs Keywords Explorer keyword list.

Projects

  • Create Project

    Creates a new Rank Tracker project in Ahrefs.

  • List Projects

    Returns the Ahrefs Management projects report.

  • Update Project

    Updates the settings of an existing Ahrefs Rank Tracker project.

  • Delete Project

    Deletes an Ahrefs Rank Tracker project and its tracked keywords.

Project Competitors

  • Add Project Competitors

    Adds competitor domains to an Ahrefs Rank Tracker project.

  • Remove Project Competitors

    Removes competitor domains from an Ahrefs Rank Tracker project.

SERP Overviews

  • List SERP Overview

    Returns the Ahrefs Rank Tracker SERP Overview report.

  • List SERP Overview

    Returns the Ahrefs SERP Overview SERP Overview report.

Top Pages

  • List Top Pages

    Returns the Ahrefs Site Explorer top pages report.

  • List Top Pages

    Returns the Ahrefs Site Explorer top pages report.

  • List Top Pages

    Returns the Ahrefs Web Analytics top Pages report.

Channels

  • List Channels

    Returns the Ahrefs Site Explorer channels report.

  • List Channels

    Returns the Ahrefs Social Media channels report.

Sources

  • List Sources

    Returns the Ahrefs Site Explorer sources report.

  • List Sources

    Returns the Ahrefs Web Analytics sources report.

UTM Parameters

  • List UTM Parameters

    Returns the Ahrefs Site Explorer UTM parameters report.

  • List UTM Parameters

    Returns the Ahrefs Web Analytics UTM Parameters report.

Metrics

  • Get Metrics

    Returns Ahrefs Site Explorer metrics metrics.

  • Get Metrics

    Returns Ahrefs Site Explorer metrics metrics.

Social Posts

  • Create Social Post

    Creates and schedules a post on a social media channel connected to Ahrefs.

  • Update Social Post

    Updates a post previously created through Ahrefs social media management.

  • Delete Social Post

    Deletes a post previously created through Ahrefs social media management.

Other (98)

  • Add Keywords To Keyword List

    Adds keywords to an Ahrefs Keywords Explorer keyword list.

  • Add Keywords To Project

    Adds keywords to an Ahrefs Rank Tracker project so their positions start being tracked.

  • Add Tags To Project Keywords

    Applies tags to keywords tracked in an Ahrefs Rank Tracker project.

  • List Batch Analysis

    Returns the Ahrefs Batch Analysis batch Analysis report.

  • List AI Responses

    Returns the Ahrefs Brand Radar AI Responses report.

  • List Cited Domains

    Returns the Ahrefs Brand Radar cited Domains report.

  • List Cited Pages

    Returns the Ahrefs Brand Radar cited Pages report.

  • List Web Pages

    Returns the Ahrefs Brand Radar web Pages report.

  • List Content Gap

    Returns the Ahrefs Competitive Analysis content gap report.

  • List Referring Domains

    Returns the Ahrefs Competitive Analysis referring domains report.

  • List Anonymous Queries

    Returns the Ahrefs GSC Insights anonymous queries report.

  • List CTR By Position

    Returns the Ahrefs GSC Insights CTR by position report.

  • List Keyword History

    Returns the Ahrefs GSC Insights keyword history report.

  • List Page History

    Returns the Ahrefs GSC Insights page history report.

  • List Pages

    Returns the Ahrefs GSC Insights pages report.

  • List Performance By Device

    Returns the Ahrefs GSC Insights performance by device report.

  • List Performance By Position

    Returns the Ahrefs GSC Insights performance by position report.

  • List Performance History

    Returns the Ahrefs GSC Insights performance history report.

  • List Positions History

    Returns the Ahrefs GSC Insights positions history report.

  • List Matching Terms

    Returns the Ahrefs Keywords Explorer matching terms report.

  • List Related Terms

    Returns the Ahrefs Keywords Explorer related terms report.

  • List Search Suggestions

    Returns the Ahrefs Keywords Explorer search suggestions report.

  • List Current Service Notices

    Returns the Ahrefs Keywords Explorer current service notices report.

  • List Volume By Country

    Returns the Ahrefs Keywords Explorer volume by country report.

  • List Volume History

    Returns the Ahrefs Keywords Explorer volume history report.

  • List Keyword List Items

    Returns the Ahrefs Management keyword list items report.

  • List Competitors

    Returns the Ahrefs Management competitors report.

  • Get Locations And Languages

    Returns Ahrefs Management locations and languages metrics.

  • List Crawler IP Ranges

    Returns the Ahrefs Public crawler IP ranges report.

  • List Crawler IP Addresses

    Returns the Ahrefs Public crawler IP addresses report.

  • List Domain Rating Top Domains

    Returns the Ahrefs Public domain rating top domains report.

  • Get Domain Rating Free

    Returns Ahrefs Public domain rating free metrics.

  • List Competitors Domains

    Returns the Ahrefs Rank Tracker competitors domains report.

  • List Competitors Overview

    Returns the Ahrefs Rank Tracker competitors overview report.

  • List Competitors Pages

    Returns the Ahrefs Rank Tracker competitors pages report.

  • List Competitors Metrics

    Returns the Ahrefs Rank Tracker competitors metrics report.

  • List Project Issues

    Returns the Ahrefs Site Audit project Issues report.

  • List Page Explorer

    Returns the Ahrefs Site Audit page explorer report.

  • List Project Health Scores

    Returns the Ahrefs Site Audit project Health Scores report.

  • Get Page Content

    Returns Ahrefs Site Audit page content metrics.

  • List Backlinks

    Returns the Ahrefs Site Explorer backlinks report.

  • List Anchors

    Returns the Ahrefs Site Explorer anchors report.

  • List Broken Backlinks

    Returns the Ahrefs Site Explorer broken Backlinks report.

  • List Crawled Pages

    Returns the Ahrefs Site Explorer crawled pages report.

  • List Domain Rating History

    Returns the Ahrefs Site Explorer domain Rating history report.

  • List Keywords History

    Returns the Ahrefs Site Explorer keywords history report.

  • List Outgoing External Anchors

    Returns the Ahrefs Site Explorer outgoing external anchors report.

  • List Outgoing Internal Anchors

    Returns the Ahrefs Site Explorer outgoing internal anchors report.

  • List Linked Domains

    Returns the Ahrefs Site Explorer linked Domains report.

  • List Metrics History

    Returns the Ahrefs Site Explorer metrics history report.

  • List Organic Competitors

    Returns the Ahrefs Site Explorer organic competitors report.

  • List Organic Keywords

    Returns the Ahrefs Site Explorer organic keywords report.

  • List Best Pages By Backlinks

    Returns the Ahrefs Site Explorer best pages by backlinks report.

  • List Best Pages By Internal Links

    Returns the Ahrefs Site Explorer best pages by internal links report.

  • List Paid Pages

    Returns the Ahrefs Site Explorer paid pages report.

  • List Refdomains

    Returns the Ahrefs Site Explorer refdomains report.

  • List Refdomains History

    Returns the Ahrefs Site Explorer refdomains history report.

  • List Total Search Volume History

    Returns the Ahrefs Site Explorer total search volume history report.

  • List Audience Overlap

    Returns the Ahrefs Site Explorer audience overlap report.

  • List Chart

    Returns the Ahrefs Site Explorer chart report.

  • List Competitor Overlap

    Returns the Ahrefs Site Explorer competitor overlap report.

  • List Geography

    Returns the Ahrefs Site Explorer geography report.

  • List Landing Pages

    Returns the Ahrefs Site Explorer landing pages report.

  • List Page Classifications

    Returns the Ahrefs Site Explorer page classifications report.

  • List Previous Pages

    Returns the Ahrefs Site Explorer previous pages report.

  • List Previous Websites

    Returns the Ahrefs Site Explorer previous websites report.

  • List Referring Subdomains

    Returns the Ahrefs Site Explorer referring subdomains report.

  • List Referring Websites

    Returns the Ahrefs Site Explorer referring websites report.

  • List Search Terms

    Returns the Ahrefs Site Explorer search terms report.

  • List URL Rating History

    Returns the Ahrefs Site Explorer URL Rating history report.

  • Get AI Responses Count

    Returns Ahrefs Site Explorer AI Responses Count metrics.

  • Get Backlinks Stats

    Returns Ahrefs Site Explorer backlinks stats metrics.

  • Get Domain Rating

    Returns Ahrefs Site Explorer domain rating metrics.

  • Get Outlinks Stats

    Returns Ahrefs Site Explorer outlinks stats metrics.

  • Get Pages By Traffic

    Returns Ahrefs Site Explorer pages by traffic metrics.

  • List Activity History

    Returns the Ahrefs Social Media activity history report.

  • List Authors

    Returns the Ahrefs Social Media authors report.

  • List Channel Metrics

    Returns the Ahrefs Social Media channel metrics report.

  • List Post Metrics

    Returns the Ahrefs Social Media post metrics report.

  • List Posts

    Returns the Ahrefs Social Media posts report.

  • Get Limits And Usage

    Returns Ahrefs Subscription Information limits and usage metrics.

  • List Browser Versions

    Returns the Ahrefs Web Analytics browser Versions report.

  • List Browsers

    Returns the Ahrefs Web Analytics browsers report.

  • List Cities

    Returns the Ahrefs Web Analytics cities report.

  • List Continents

    Returns the Ahrefs Web Analytics continents report.

  • List Countries

    Returns the Ahrefs Web Analytics countries report.

  • List Devices

    Returns the Ahrefs Web Analytics devices report.

  • List Entry Pages

    Returns the Ahrefs Web Analytics entry Pages report.

  • List Exit Pages

    Returns the Ahrefs Web Analytics exit Pages report.

  • List Languages

    Returns the Ahrefs Web Analytics languages report.

  • List Operating Systems

    Returns the Ahrefs Web Analytics operating Systems report.

  • List Operating Systems Versions

    Returns the Ahrefs Web Analytics operating Systems Versions report.

  • List Referrers

    Returns the Ahrefs Web Analytics referrers report.

  • List Source Channels

    Returns the Ahrefs Web Analytics source Channels report.

  • Get Stats

    Returns Ahrefs Web Analytics stats metrics.

  • Remove Keywords From Keyword List

    Removes keywords from an Ahrefs Keywords Explorer keyword list.

  • Remove Keywords From Project

    Removes tracked keywords from an Ahrefs Rank Tracker project.

  • Remove Tags From Project Keywords

    Removes tags from keywords tracked in an Ahrefs Rank Tracker project.

Ahrefs AI Agent Use Cases

Connect your AI agent to Ahrefs and help your team scale the marketing operations they run by hand today.

Lead Nurture Sequences

Use StackOne to connect your AI agent to your marketing automation, CRM, and email tools to automate lead nurture email sequences.

View
HubSpotSalesforceActiveCampaignKlaviyoSendGridMailchimpLemlistGmail
Campaign Performance Reports

Use StackOne to connect your AI agent to your marketing automation, email, and analytics platforms to automate campaign performance reporting.

View
HubSpotMailchimpActiveCampaignKlaviyoSalesforceBrazeSendGridMarketo
Content Repurposing

Use StackOne to connect your AI agent to your document stores, email platforms, and messaging tools to automate content repurposing and distribution.

View
Google DriveConfluenceNotionMailchimpSendGridSlackGmailMicrosoft Teams

Set Up Your Ahrefs MCP Server in Minutes

One endpoint. Any framework. Your agent is talking to Ahrefs in under 10 lines of code.

Agent Frameworks

Claude Desktop
{
  "mcpServers": {
    "stackone": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote@latest",
        "https://api.stackone.com/mcp?x-account-id=<account_id>",
        "--header",
        "Authorization: Basic <YOUR_BASE64_TOKEN>"
      ]
    }
  }
}

Check More marketing MCP Servers

FAQ

Ahrefs MCP Server FAQ

Ready to put your agents to work?