Ahrefs for AI agents

Ahrefs is an SEO platform offering backlink data, keyword research and site audits. Marketers and SEOs use it to research rankings and diagnose technical search issues. Connect it once through Arc0, and your agent, or Claude, ChatGPT and Cursor, can use it through one MCP endpoint, limited to what each user approved.

MarketingOAuth 2.0MCP + RESTahrefs.com
AUDIT LOG · AHREFSPOLICY: acme-support
09:41:07 · claude · u_8f2read
ahrefs.list_best_by_external_links
List best by external links✓ allowed · 212ms
09:41:08 · claude · u_8f2read
ahrefs.get_serp_overview
Get serp overview✓ allowed · 164ms
09:41:09 · claude · u_8f2write
ahrefs.batch_url_analysis
Batch Url Analysis✓ approved · approved by user
EVERY AHREFS CALL, ON THE RECORD
01 · USE CASES

What agents do in Ahrefs.

01

Check a domain's backlinks

Pull the backlink profile for a domain to see who is linking to it and with what anchor text.

02

Review organic keyword rankings

List the keywords a site ranks for organically to spot opportunities or drops in visibility.

03

Run a site audit check

Pull the latest site audit results for a project to flag technical SEO issues.

02 · ACTIONS

40 Ahrefs actions, graded by risk.

Every Ahrefs action is tagged read, write or destructive, so one policy covers the whole app and new actions inherit the right default.

read

30

Look things up. Allowed by default.

  • ahrefs.get_serp_overview
    Get serp overview
  • ahrefs.get_url_rating_history
    Get url rating history
  • ahrefs.get_site_audit_projects
    Get site audit projects
  • ahrefs.list_best_by_external_links
    List best by external links
  • ahrefs.search_suggestions_explorer
    Search suggestions explorer
  • ahrefs.get_site_explorer_country_metrics
    Get site explorer country metrics
  • ahrefs.get_site_explorer_linked_anchors_external
    Get site explorer linked anchors external
  • ahrefs.fetch_all_backlinks
    Fetch all backlinks
  • ahrefs.retrieve_anchor_data
    Retrieve anchor data
  • ahrefs.retrieve_related_terms
    Retrieve related terms
  • ahrefs.retrieve_outlinks_stats
    Retrieve outlinks stats
  • ahrefs.retrieve_volume_history
    Retrieve volume history
  • ahrefs.retrieve_paid_pages_data
    Retrieve paid pages data
  • ahrefs.retrieve_organic_keywords
    Retrieve organic keywords
  • ahrefs.fetch_competitors_overview
    Fetch competitors overview
  • ahrefs.retrieve_crawler_ip_ranges
    Retrieve crawler ip ranges
+ 14 MORE

write

10

Create and change things. Allow, or ask the user first.

  • ahrefs.batch_url_analysis
    Batch Url Analysis
  • ahrefs.domain_rating_history
    Domain rating history
  • ahrefs.linked_anchors_explorer
    Linked anchors explorer
  • ahrefs.backlinks_stats_retrieval
    Backlinks stats retrieval
  • ahrefs.explore_keywords_overview
    Explore keywords overview
  • ahrefs.pages_by_traffic_overview
    Pages by traffic overview
  • ahrefs.domain_rating_for_site_explorer
    Domain rating for site explorer
  • ahrefs.explore_linked_domains_of_a_site
    Explore linked domains of a site
  • ahrefs.explore_keyword_volume_by_country
    Explore keyword volume by country
  • ahrefs.explore_matching_terms_for_keywords
    Explore matching terms for keywords

destructive

0

Delete, cancel or archive. Ask first, or deny outright.

  • No destructive actions.
03 · HOW IT WORKS

Ahrefs in three steps.

  1. 01Your users connect AhrefsThey sign in to Ahrefs on Arc0 Connect, under your brand, and approve the access you ask for.
  2. 02You set the rulesReads run, and writes like “batch Url Analysis” can wait for the user to approve.
  3. 03Any agent can actYour agent calls Ahrefs through the Arc0 SDK or MCP, and so can Claude, ChatGPT and Cursor. Every call lands on the audit log.
POLICY.TS
await arc0.policies.set('ahrefs', {
  read: 'allow',
  write: 'ask',        // batch_url_analysis
  destructive: 'deny',  
})

# Claude Code: the same connection, one URL
$ claude mcp add --transport http arc0 \
    https://mcp.arc0.ai/u/u_8f2
04 · AUTH AND DATA

How Ahrefs connects.

Users sign in to Ahrefs on Arc0 Connect and approve the scopes you request. Build with Arc0’s Ahrefs OAuth app, or bring your own so the Ahrefs consent screen names you. Tokens refresh automatically, and you can export them whenever you want.

The same Ahrefs connection serves your agent over MCP and your own backend over REST and the proxy, so a user connects once. How Arc0 handles credentials →

AUTH
API key · OAuth 2.0
CREDENTIALS
Per-tenant encrypted vault
MODEL SEES
Results only, never credentials
AUDIT LOG
Every call, on every plan
05 · WORKS WITH

Use Ahrefs from any agent.

Claude
ChatGPT
Cursor
Codex
VS Code
OpenAI Agents SDK
Claude Agent SDK
Vercel AI SDK
Mastra
LangGraph
07 · FAQ

Ahrefs and Arc0, answered.

Q01

Can I use Ahrefs with Claude, ChatGPT or Cursor?

Yes. Connect Ahrefs to Arc0 once, then add your Arc0 MCP URL to Claude, ChatGPT, Cursor, Claude Code or any other remote-MCP client. Each assistant only gets the Ahrefs actions you allow.

Q02

How do users connect Ahrefs?

Users sign in to Ahrefs on Arc0 Connect and approve the scopes you request. Build with Arc0’s Ahrefs OAuth app, or bring your own so the Ahrefs consent screen names you. Tokens refresh automatically, and you can export them whenever you want.

Q03

Which Ahrefs actions can my agent take?

40 in total: 30 read, 10 write and 0 destructive, such as “batch Url Analysis”. Your policies decide which of them each agent may call.

Q04

Can I make my agent read-only in Ahrefs?

Yes. Allow read actions and deny writes in the Ahrefs policy. Your agent can still look things up, and any write it attempts is blocked and logged.

Q05

Can my own backend call Ahrefs too?

Yes. The same Ahrefs connection is available over REST and through the Arc0 proxy, so your product and your agent share one connection per user.

Get started

Plug Ahrefs into your agent.

Your users connect Ahrefs once, under your brand. Your agent gets 40 actions behind your policies, with every call on the record.

Free to build · MCP + REST · Audit log on every plan