All docs
Reference

Ahrefs tools: every read and write tool the agent and MCP can call

TL;DR

28 read and 2 write tools. Read and write support for the operations listed.

Support and limitations

  • Read and write support for the operations listed.
  • Permissions: the connected login's role and the permissions it granted decide what each tool can read or change. A tool the login cannot use answers with what is missing; it never works around it.
  • Approvals: in the app, changes wait for approval unless the task runs with auto-approve. Over MCP and REST they follow the credential's setting (an API key applies ordinary changes at once unless it is set to require approval; a third-party OAuth connection waits). 1 write is marked “Person approves”: it waits for a person on every lane — only the workspace's own OAuth app and an API key an admin set to apply changes you can't take back skip that wait. Forbidden Rules can block any of them.
  • Operations the platform's API does not offer, and operations not in the catalog, are not available through these tools.

Read tools (28)

ToolWhat it does
ahrefs__limits_and_usageThe connected Ahrefs plan and its API units: the workspace's monthly limit and usage, this app's cap and usage, the reset date and when the connection expires.
ahrefs__domain_ratingDomain Rating and Ahrefs Rank of a site on a date.
ahrefs__site_metricsOrganic and paid search metrics of a site (keywords, traffic, traffic value — USD cents).
ahrefs__backlinks_statsBacklink and referring-domain counts (live and all time).
ahrefs__backlinksBacklinks of a site or page (default fields url_from, url_to, anchor, domain_rating_source, traffic, is_dofollow, first_seen, last_seen).
ahrefs__refdomainsReferring domains (default fields domain, domain_rating, dofollow_links, links_to_target, first_seen, last_seen).
ahrefs__anchorsAnchor texts pointing at a site.
ahrefs__organic_keywordsKeywords a site ranks for in Google (default fields keyword, best_position, best_position_url, volume, sum_traffic, keyword_difficulty, cpc).
ahrefs__top_pagesA site's pages by organic traffic (default fields url, sum_traffic, keywords, top_keyword, top_keyword_best_position, value).
ahrefs__organic_competitorsSites competing for the same organic keywords (default fields competitor_domain, keywords_common, keywords_competitor, share, traffic, domain_rating).
ahrefs__metrics_historyOrganic / paid traffic and cost over time.
ahrefs__domain_rating_historyDomain Rating over time.
ahrefs__keywords_overviewSearch volume, difficulty, CPC (USD cents), clicks and traffic potential of keywords (default fields keyword, volume, difficulty, cpc, traffic_potential,…
ahrefs__matching_termsKeyword ideas containing the seed terms.
ahrefs__related_termsRelated keyword ideas (also rank for / also talk about).
ahrefs__search_suggestionsSearch-box suggestions for the seed keywords.
ahrefs__keyword_volume_historyMonthly search volume of ONE keyword over time.
ahrefs__serp_overviewThe Google results page for ONE keyword with each result's metrics (default fields position, url, title, domain_rating, url_rating, backlinks, refdomains,…
ahrefs__list_projectsThe connected account's Rank Tracker projects (project_id, name, target url, keyword count).
ahrefs__list_project_keywordsThe keywords tracked in one Rank Tracker project (with location and tags).
ahrefs__list_project_competitorsThe competitors of one Rank Tracker project.
ahrefs__rank_tracker_overviewTracked keyword positions of a Rank Tracker project on a date, with the change since date_compared (default fields keyword, position, position_prev,…
ahrefs__rank_tracker_competitorsCompetitors' positions on the tracked keywords of a Rank Tracker project.
ahrefs__site_audit_projectsSite Audit projects with their health score and URLs with errors / warnings / notices.
ahrefs__site_audit_issuesThe issues a Site Audit project found (name, importance, pages affected, new / removed since date_compared).
ahrefs__site_audit_pagesPages of a Site Audit crawl, optionally only those with one issue (Page explorer).
ahrefs__batch_analysisDomain Rating, backlinks, referring domains and organic metrics for up to 100 sites or pages in ONE request (cheaper than one call each).
ahrefs__getAny documented GET of Ahrefs API v3 by path on the connection (e.g. site-explorer/pages-history, keywords-explorer/volume-by-country, management/locations)…

Write tools (2)

A write marked “Person approves” waits for a person on every lane; the others follow the approval setting of the app or the credential.

ToolApprovalWhat it does
ahrefs__add_project_keywordsApproval settingAdd keywords to a Rank Tracker project (they count against the Ahrefs plan's tracked keywords).
ahrefs__remove_project_keywordsPerson approvesRemove tracked keywords from a Rank Tracker project — their ranking history in that project goes with them, so a person decides on every lane.

Authorized raw requests

ahrefs__raw_request takes a request in Ahrefs's own format and routes it through the family's own gateway tool, so the same account binding, approvals and refusals apply. It needs the tools:raw scope and is found through search_tools or the REST tool list. It reads only: Ahrefs' API is read-only here.

Frequently asked questions

How many Ahrefs tools are there?
30: 28 read and 2 write, of which 1 always wait for a person. The list on this page is the complete catalog for Ahrefs.
Can an agent call the Ahrefs API directly?
ahrefs__raw_request takes a request in Ahrefs's own format and routes it through the family's own gateway tool, so the same account binding, approvals and refusals apply. It needs the tools:raw scope and is found through search_tools or the REST tool list. It reads only: Ahrefs' API is read-only here.
Use the Ahrefs tools

Run them through the in-app agent, or call them from Claude, ChatGPT, Codex or Cursor over the hosted MCP server.