Analyze domains, backlinks, keywords, organic traffic, and competitor data via Ahrefs — AI-native SEO intelligence.
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.
{
"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:
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.
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
| 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 |
| Variable | Required | Description | How to Get |
|---|---|---|---|
AHREFS_API_TOKEN | Yes | Ahrefs API v3 Bearer token | ahrefs.com → Account → API → generate an API token (requires an active Ahrefs subscription) |
AHREFS_API_TOKEN under Project → SecretsOnce added, every AI agent in your workspace can call Ahrefs tools automatically — no per-user setup needed.
"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"
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"}}}'
X-Mcp-Secret-AHREFS-API-TOKEN header by the Aerostack gateway.MIT
Live Endpoint
https://mcp.aerostack.dev/s/aerostack/mcp-ahrefs
Sub-50ms globally · Zero cold start
@aerostack
Pre-built functions for the most common MCP tool patterns. Clone, extend, and deploy.
get_top_pages returns the highest-traffic URLs for any domain. Claude can rank them by estimated visits and identify which content angles drive the most organic traffic for a competitor.
get_keyword_difficulty returns an Ahrefs KD score from 0–100. Claude interprets the score in context of your domain rating from get_domain_rating to estimate realistic ranking odds.
get_referring_domains lists domains linking to any target URL. Claude filters by domain rating to surface high-authority prospects worth pursuing for outreach campaigns.
Yes. get_url_rating returns the UR score for any specific page. Claude can compare multiple internal pages and recommend which ones to use as link sources for new content.