# Ahrefs MCP for AI Agents | FlyMy.AI

> Ahrefs MCP for Claude, Codex and Cursor through FlyMy.AI. Ahrefs SEO data: backlinks and referring domains, organic keywords and competitors, top pages...

Page: https://flymy.ai/mcp/ahrefs/

MCP / SEO

# Ahrefs MCP

Ahrefs SEO data: backlinks and referring domains, organic keywords and competitors, top pages, keyword ideas and difficulty, rank tracking. Connect it to Claude, Codex, Cursor or any MCP client through one FlyMy.AI MCP.

[Connect Ahrefs](https://flymy.ai/mcp/ahrefs/#connect) [What it can do](https://flymy.ai/mcp/ahrefs/#actions)

Your own API key, 48 actions, SEO

Ask your agent

```
Show the US organic keywords for my domain, with their ranking pages and positions for the latest available date.
```

Paste it into an assistant connected to FlyMy.AI. The agent picks the actions.

## What Ahrefs MCP can do

48 actions in the FlyMy.AI catalog, the most used first. Your agent finds them through search_tools and calls the one the task needs.

| Action | What it does |
|---|---|
| `ahrefs_add_keyword_list_keywords` | Add keywords to a Keywords Explorer list |
| `ahrefs_add_project_competitors` | Add competitors to a Rank Tracker project |
| `ahrefs_add_project_keywords` | Add tracked keywords to a Rank Tracker project |
| `ahrefs_all_backlinks` | List all backlinks pointing to a target |
| `ahrefs_anchors` | List anchor texts used in backlinks to a target |
| `ahrefs_backlinks_stats` | Get aggregate backlinks stats for a target (live/all refdomains, dofollow, etc.) |
| `ahrefs_batch_analysis` | Get bulk metrics for up to 100 targets in one request |
| `ahrefs_broken_backlinks` | List broken backlinks (links to dead pages) for a target |
| `ahrefs_crawled_pages` | List pages Ahrefs crawled for a target (URLs, status, on-page data) |
| `ahrefs_create_project` | Create a new Rank Tracker project |
| `ahrefs_delete_keyword_list_keywords` | Remove keywords from a Keywords Explorer list |
| `ahrefs_delete_project_competitors` | Remove competitors from a Rank Tracker project |

**Show all 48 actions**

| Action | What it does |
|---|---|
| `ahrefs_delete_project_keywords` | Remove tracked keywords from a Rank Tracker project |
| `ahrefs_domain_rating` | Get Domain Rating (DR) for a target on a date |
| `ahrefs_domain_rating_history` | Get Domain Rating (DR) history over a date range |
| `ahrefs_keyword_matching_terms` | Find keyword ideas that match/contain a seed (keyword research) |
| `ahrefs_keyword_related_terms` | Find keywords related to a seed (also-rank-for ideas) |
| `ahrefs_keyword_search_suggestions` | Get autocomplete search suggestions for a seed keyword |
| `ahrefs_keyword_volume_by_country` | Get search volume of a keyword broken down by country |
| `ahrefs_keyword_volume_history` | Get monthly search-volume history for a single keyword |
| `ahrefs_keywords_history` | Get a target's historical organic keyword counts |
| `ahrefs_keywords_overview` | Get keyword metrics (volume, difficulty, CPC, clicks) for one or more keywords |
| `ahrefs_limits_and_usage` | Get API subscription limits and usage Free, does not consume API units. |
| `ahrefs_linked_anchors_external` | List external anchor texts a target links out with |
| `ahrefs_linked_anchors_internal` | List internal anchor texts a target uses for internal links |
| `ahrefs_linked_domains` | List external domains a target links out to |
| `ahrefs_metrics` | Get Site Explorer metrics (org/paid traffic, traffic value, keywords, backlinks) for a target |
| `ahrefs_metrics_by_country` | Get organic/paid metrics broken down by country for a target |
| `ahrefs_metrics_history` | Get historical Site Explorer metrics over a date range |
| `ahrefs_organic_competitors` | List organic search competitors of a target |
| `ahrefs_organic_keywords` | List organic keywords a target ranks for |
| `ahrefs_outlinks_stats` | Get aggregate outgoing-links (external link) stats for a target |
| `ahrefs_pages_by_backlinks` | List a target's pages ranked by number of backlinks |
| `ahrefs_pages_by_internal_links` | List a target's pages ranked by number of internal links |
| `ahrefs_pages_by_traffic` | Get distribution of a target's pages by organic traffic |
| `ahrefs_pages_history` | Get indexed/ranking pages count history over a date range |
| `ahrefs_paid_pages` | List a target's paid (PPC) landing pages |
| `ahrefs_rank_tracker_competitors` | Get Rank Tracker competitors overview for a project Free, does not consume API units. |
| `ahrefs_rank_tracker_overview` | Get Rank Tracker overview (tracked keyword positions) for a project Free, does not consume API units. |
| `ahrefs_refdomains` | List referring domains linking to a target |
| `ahrefs_refdomains_history` | Get referring-domains count history over a date range |
| `ahrefs_serp_overview` | Get the SERP (top results with metrics) for a keyword Free, does not consume API units. |
| `ahrefs_site_audit_issues` | List Site Audit issues for a project (crawl problems by category) |
| `ahrefs_site_audit_projects` | List Site Audit projects with their health scores Free, does not consume API units. |
| `ahrefs_top_pages` | List a target's top pages by organic traffic |
| `ahrefs_total_search_volume_history` | Get total organic search-volume history over a date range |
| `ahrefs_update_project` | Update a Rank Tracker project's access setting |
| `ahrefs_url_rating_history` | Get URL Rating (UR) history over a date range |

## Ask your agent

Requests to paste as they are. Each one runs on the actions named under it.

**“Show the US organic keywords for my domain, with their ranking pages and positions for the latest available date.”** uses `ahrefs_organic_keywords`

**“Compare US search volume, keyword difficulty and CPC for these five keywords.”** uses `ahrefs_keywords_overview`

**“Find broken backlinks pointing to my domain and list the source pages and dead destinations.”** uses `ahrefs_broken_backlinks`

## Connect Ahrefs in a minute

One MCP for every integration. Add it once, then every MCP in the catalog is a request away.

1. 01 ### Add FlyMy.AI Add the FlyMy.AI MCP to your assistant with one of the commands below and sign in. No key to copy.
2. 02 ### Add your Ahrefs api key Paste it into the Ahrefs [connection settings](https://app.flymy.ai/mcp-configs#ahrefs) once; it stays with FlyMy.AI, never in a prompt or a chat.
  - **Ahrefs api key** - From Ahrefs - see docs. [Get credentials ->](https://ahrefs.com)
3. 03 ### Ask Paste a request from this page. Every run shows what it cost.

Claude Code

```
claude mcp add --transport http flymyai https://mcp-agents.flymy.ai/mcp
```

Then run /mcp in Claude Code and sign in.

Codex

```
codex mcp add flymy --url https://mcp-agents.flymy.ai/mcp
```

Then run codex mcp login flymy to sign in.

claude.ai and Claude Desktop

```
https://mcp-agents.flymy.ai/mcp
```

Settings, Connectors, Add custom connector: paste this URL.

## Pay per run

FlyMy.AI bills the run: the model and the tool's seconds. Calls go to your own Ahrefs account, under its plan and limits. No seats and no minimum.

[See usage pricing →](https://flymy.ai/pricing/)

## More SEO MCPs

Rankings, keywords, backlinks, site audits and link building.

### DataForSEO

DataForSEO API: live Google SERPs, keyword search volume and ideas, Labs keyword and domain metrics, backlinks, on-page audits

50 actions / no key

Link: https://flymy.ai/mcp/dataforseo/

### Collaborator

Collaborator.pro link-building marketplace: catalog of sites for guest posts with prices and SEO metrics, your deals as an advertiser or a site owner

8 actions / your API key

Link: https://flymy.ai/mcp/collaborator/

### SerpApi

Google/Bing/News SERP results via API

32 actions / your API key

Link: https://docs.flymy.ai/mcp/serpapi

### BuiltWith

BuiltWith is a web technology profiler that provides insights into the technologies used by websites, including analytics, hosting, and content management...

12 actions / your API key

Link: https://docs.flymy.ai/mcp/apps/builtwith

### Google Search Console

Search Console performance

2 actions / sign in

Link: https://flymy.ai/mcp/google-search-console/

### GTmetrix

GTmetrix is a performance testing and monitoring tool that analyzes website speed, provides detailed performance reports, and helps optimize web...

16 actions / your API key

Link: https://docs.flymy.ai/mcp/apps/gtmetrix

## Go to the source

[Ahrefs in the docs →](https://docs.flymy.ai/mcp/ahrefs), [Ahrefs connection settings →](https://app.flymy.ai/mcp-configs#ahrefs), [Every MCP in the catalog →](https://flymy.ai/mcp/#catalog), [Usage pricing →](https://flymy.ai/pricing/)

From the FlyMy.AI platform catalog of 2026-10-31: name, description, actions and setup as the platform lists them. Examples are requests to paste, not recorded runs.

---

For agents: the FlyMyAI operating guide (sign up, connect, run models, tools and agents) is https://flymy.ai/skill.md, and https://flymy.ai/llms.txt lists the other pages and the documentation.
