Aerostack
electrical_services

Ahrefs MCP Server — Hosted File Systems Integration

MCP Server language Hosted language Public

Analyze domains, backlinks, keywords, organic traffic, and competitor data via Ahrefs — AI-native SEO intelligence.

aerostack @aerostack verified
v0.1.0 MIT Updated Jun 28, 2026
robot_2

Use with AI AssistantsMCP

Connect Claude, Cursor, or any MCP-compatible client — then call tools directly

① Add This MCP Server

Paste into your AI client config — then all its tools are available instantly.

.claude/mcp.json
{
  "mcpServers": {
    "ahrefs": {
      "url": "https://mcp.aerostack.dev/s/aerostack/mcp-ahrefs",
      "headers": {
        "Authorization": "Bearer YOUR_AEROSTACK_TOKEN"
      }
    }
  }
}

Replace YOUR_AEROSTACK_TOKEN with your API token from the dashboard.

② Call a Tool

Ask your AI assistant to call a specific tool, or send raw JSON-RPC:

+3 more

Natural Language Prompt

“Use the _ping tool to health check — verifies the ahrefs api token is valid

Using a Workspace?

Add this MCP to your Workspace — your team shares one token, secrets are stored securely, and every AI agent in the workspace can call it without per-user setup.

add_circleAdd to Workspace

description Overview

mcp-ahrefs — Ahrefs MCP Server

Analyze domains, backlinks, keywords, organic traffic, and competitor data via Ahrefs.

Ahrefs is one of the most comprehensive SEO toolsets available, used by marketers and developers to research backlinks, track keyword rankings, audit sites, and analyze competitors. This MCP server lets your AI agents query Ahrefs data directly — turning your SEO platform into a live intelligence source for agent-driven content strategy, competitor analysis, and link building.

Live endpoint: https://mcp.aerostack.dev/s/aerostack/mcp-ahrefs


What You Can Do

  • Check Domain Rating (DR) and URL Rating (UR) to assess authority of any website or page
  • Pull backlink profiles and referring domains to understand a site's link equity and find link building opportunities
  • Discover what keywords a domain ranks for organically, including position, volume, and traffic estimates
  • Run keyword difficulty checks for content planning — know how hard a keyword is to rank for before writing
  • Find the top pages on any domain sorted by organic traffic to identify competitor content strategies

Available Tools

Tool Description
_ping Health check — verifies the Ahrefs API token is valid
get_domain_rating Get the Domain Rating (DR) score for a target domain (0-100 scale)
get_backlinks Get backlinks pointing to a target domain or URL with anchor text and attributes
get_organic_keywords Get organic keywords that a domain ranks for with position, volume, and traffic
get_domain_overview Get comprehensive domain overview: traffic, keywords, DR, referring domains
get_url_rating Get the URL Rating (UR) score for a specific page (0-100 scale)
get_referring_domains Get referring domains linking to a target with DR and backlink counts
get_keyword_difficulty Get keyword difficulty score, volume, CPC, and click data for a keyword
get_top_pages Get top pages for a domain sorted by organic traffic

Configuration

Variable Required Description How to Get
AHREFS_API_TOKEN Yes Ahrefs API v3 Bearer token ahrefs.comAccountAPI → generate an API token (requires an active Ahrefs subscription)

Quick Start

Add to Aerostack Workspace
  1. Go to aerostack.dev → Your Project → MCPs
  2. Search for "Ahrefs" and click Add to Workspace
  3. Add AHREFS_API_TOKEN under Project → Secrets

Once added, every AI agent in your workspace can call Ahrefs tools automatically — no per-user setup needed.

Example Prompts
"What's the Domain Rating for shopify.com?"
"Show me the top 10 organic keywords that stripe.com ranks for in the US"
"Find the top pages on vercel.com by organic traffic"
"How hard is it to rank for 'best project management tools'?"
"Get the referring domains linking to ahrefs.com/blog/"
"Give me a backlink overview of my competitor example.com"
Direct API Call
curl -X POST https://mcp.aerostack.dev/s/aerostack/mcp-ahrefs \
  -H 'Content-Type: application/json' \
  -H 'X-Mcp-Secret-AHREFS-API-TOKEN: your-ahrefs-api-token' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_domain_rating","arguments":{"target":"ahrefs.com"}}}'

Security Notes

  • Your Ahrefs API token is never stored by the MCP server. It is passed per-request via the X-Mcp-Secret-AHREFS-API-TOKEN header by the Aerostack gateway.
  • The token requires an active Ahrefs subscription. API usage counts against your Ahrefs plan's row limits.
  • All requests are made server-side from Cloudflare Workers — your token is never exposed to the client.

License

MIT

terminal Tools (9)

Available tools on this MCP server. Each tool can be called directly from any AI agent.

terminal
_ping #1

Health check — verifies the Ahrefs API token is valid

terminal
get_domain_rating #2

Get the Domain Rating (DR) score for a target domain. DR measures the strength of a domain's backlink profile on a 0-100 scale.

terminal
get_backlinks #3

Get backlinks pointing to a target domain or URL. Returns referring pages, anchor text, and link attributes.

terminal
get_organic_keywords #4

Get organic keywords that a domain or URL ranks for in search results. Returns keyword, position, volume, traffic, and URL.

terminal
get_domain_overview #5

Get a comprehensive overview of a domain including organic traffic, keywords count, Domain Rating, referring domains, and backlinks count.

terminal
get_url_rating #6

Get the URL Rating (UR) score for a specific URL. UR measures the strength of a page's backlink profile on a 0-100 scale.

terminal
get_referring_domains #7

Get referring domains that link to a target. Returns domain, DR, linked domains count, and first/last seen dates.

terminal
get_keyword_difficulty #8

Get keyword difficulty (KD) score and search metrics for a keyword. Useful for keyword research and content planning.

terminal
get_top_pages #9

Get the top pages for a domain sorted by organic traffic. Returns URL, traffic, keywords count, and top keyword.

Details

upgrade Version 0.1.0
gavel License MIT
wifi Transport streamable-http
lock Access Public
category Category File Systems
terminal Tools 9

language Live Endpoint

https://mcp.aerostack.dev/s/aerostack/mcp-ahrefs

Sub-50ms globally · Zero cold start

Publisher

aerostack
@aerostack verified

Pre-built functions for the most common MCP tool patterns. Clone, extend, and deploy.

Tags

Browse more servers

Frequently asked questions

What is the Ahrefs MCP server and what can it do? +

The Ahrefs MCP server is hosted on Aerostack and exposes these tools to your AI agent: `_ping`, `get_domain_rating`, `get_backlinks`, `get_organic_keywords`, `get_domain_overview`. You get one hosted URL — no self-hosting — that works from Claude, Cursor, ChatGPT, Gemini, VS Code, or any MCP-compatible client, and you can share it with your team or combine it with other MCP servers in a workspace.

Is the Ahrefs MCP server hosted, or do I have to run it myself? +

It's hosted on Aerostack's edge infrastructure — you don't deploy or maintain anything. Add it to a workspace and you get one authenticated URL, with secrets encrypted, that any AI agent or editor can connect to. Use it solo or share the same URL across your whole team.

Which AI agents and editors can use the Ahrefs MCP server? +

Any MCP client: Claude and Claude Code, Cursor, ChatGPT, Gemini, Windsurf, Cline, VS Code, and custom agents. Because it's one hosted URL, the same Ahrefs MCP server works everywhere — and you can compose it with other MCP servers, skills, and functions behind a single workspace URL.

How do I install the Ahrefs MCP server in Claude Desktop? +

Add the following to your Claude Desktop config (`claude_desktop_config.json`): ```json { "mcpServers": { "@aerostack/mcp-ahrefs": { "command": "npx", "args": ["-y", "@aerostack/@aerostack/mcp-ahrefs"] } } } ``` Then restart Claude Desktop and the tools will appear automatically.

How do I use the Ahrefs MCP server in Cursor? +

In Cursor, open **Settings → MCP** and add: ```json { "name": "@aerostack/mcp-ahrefs", "command": "npx", "args": ["-y", "@aerostack/@aerostack/mcp-ahrefs"] } ``` Save and reload Cursor. The MCP tools will be available in Agent mode.

Does Ahrefs MCP require authentication? +

Yes. Ahrefs requires authentication. Check the MCP's documentation for the required credentials.