---
title: "Ahrefs MCP server: backlink and keyword data for AI agents"
description: "Install the Ahrefs MCP server in an Aldena project with an API key, and agents pull backlinks, organic keywords and competitor data into their work."
url: "https://aldena.ai/mcp-servers/ahrefs"
---

# Put Ahrefs backlink and keyword data in front of your content agents

Ahrefs MCP server. Install the Ahrefs MCP server in an Aldena project with an API key, and agents pull backlinks, organic keywords and competitor data into their work.

- **Sign-in**: API key
- **Installs as**: `ahrefs`
- **Transport**: Streamable HTTP
- **Last verified**: 2026-11-28

Ahrefs is where most SEO teams look up backlinks, ranking keywords and keyword difficulty. Its MCP server gives an agent the same data, read with your Ahrefs MCP key, so the research step of writing content no longer means exporting CSVs from Site Explorer and Keywords Explorer.

In an Aldena project the data sits next to the code. A content agent asked to refresh a stale guide pulls the organic keywords the page used to rank for, checks which competitor pages overtook it and how many referring domains they have, and rewrites the page in the repository during the same run. It opens the change as a pull request through the [GitHub connector](https://aldena.ai/integrations/github), so a person reviews the copy before anything goes live, and the [policy on each tool](https://aldena.ai/features/human-in-the-loop) decides which Ahrefs calls run without asking.

Ahrefs pairs naturally with a scheduler. Once the page ships, the same agent can draft the announcement in the [AdaptlyPost MCP server](https://aldena.ai/mcp-servers/adaptlypost), or log the target keywords in a base through the [Airtable MCP server](https://aldena.ai/mcp-servers/airtable) so the next run knows which pages it already covered. API calls spend from the allowance tied to the key, so ask agents for the reports you actually need rather than a full crawl of every competitor.

## With Ahrefs, your agents can

- Look up a domain's backlinks, referring domains and Domain Rating
- List the organic keywords a page or site ranks for
- Pull keyword ideas with search volume and difficulty for a topic
- Compare your site's organic footprint against a competitor's

## Try asking

- “Using Ahrefs, find the keywords competitor.com ranks for in the top 10 that our blog doesn't rank for at all, and group them by topic.”
- “Which referring domains linked to our docs in the last 30 days, and which of them have the highest Domain Rating?”
- “Pull Ahrefs keyword ideas for 'remote mcp servers' and draft an outline that targets the three with the best volume to difficulty ratio.”

## Server

- **Server URL**: `https://api.ahrefs.com/mcp/mcp`
- **Website**: [ahrefs.com](https://ahrefs.com)
- **MCP docs**: [Ahrefs MCP docs](https://docs.ahrefs.com/en/mcp/docs/introduction)

## How to connect Ahrefs

1. **Open Marketplace.** In a project, open Settings → Connectors → MCP servers and press Marketplace.
2. **Install Ahrefs.** Search for Ahrefs and press Install. Aldena adds it as `ahrefs`.
3. **Paste your API key.** The server URL and Header name `Authorization` come prefilled. Aldena sends the Token as typed, so follow the Ahrefs docs: often `Bearer <key>`, sometimes another Header name.
4. **Let agents use it.** Agents find its tools with `mcp_search` and call them with `mcp_call`. Each tool gets its own row in the project's permissions.

## Related MCP servers

- [AdaptlyPost MCP server](https://aldena.ai/mcp-servers/adaptlypost): Schedule social posts, answer the inbox, and read engagement analytics.
- [Airtable MCP server](https://aldena.ai/mcp-servers/airtable): Read and update bases, tables, and records.
- [Amplitude MCP server](https://aldena.ai/mcp-servers/amplitude): Query product analytics events, charts, and cohorts.
- [Astro Docs MCP server](https://aldena.ai/mcp-servers/astro-docs): Search the Astro framework documentation.
- [All MCP servers](https://aldena.ai/mcp-servers)

## FAQ

### How do I connect the Ahrefs MCP server to Aldena?

Install Ahrefs from the project's MCP marketplace. Because it signs in with a key, Aldena opens the add form with the server URL already filled in; in the Token field, enter Bearer followed by an Ahrefs MCP key, then save. The value is encrypted at rest and never sent back to the browser.

### What can agents do with Ahrefs data in a project?

Research is the common case: an agent pulls a competitor's ranking keywords and the backlinks to a page, then writes or updates the page in the project's repository. Because each conversation gets its own sandbox, the same agent that read the data can open the pull request with the new copy.

### Does the Ahrefs MCP server change anything in my Ahrefs account?

Its purpose is reading SEO data, and every call spends from the API allowance that comes with the key. In Aldena each Ahrefs tool still gets its own allow, ask or deny row, so you can deny any tool you don't want agents to call and it disappears from their view.
