Ahrefs MCP Server
Published
At a glance
- Category
- Business & payments
- Hosted by the vendor
- https://api.ahrefs.com/mcp/mcp
- Watch out for
- The remote server needs a paid plan starting at Lite, and every call spends API units from your monthly allowance.
Ahrefs hosts an official remote MCP server that lets AI agents query the Ahrefs API with your account. It is listed in the official MCP registry as com.ahrefs/mcp, with a streamable HTTP endpoint at https://api.ahrefs.com/mcp/mcp. Any user on a Lite plan or higher can connect it, and once connected the setup syncs across the devices on your personal or company account.
Ahrefs used to publish a local npm server (@ahrefs/mcp) from the ahrefs/ahrefs-mcp-server repository. That repo is now archived, and its README warns that it is outdated, works only with API v3 keys, and should not be used. Use the hosted server instead.
When you connect, you approve an OAuth consent screen and Ahrefs creates a dedicated API key tagged with MCP scope. Keys created this way default to a monthly cap of 200,000 API units each, which workspace admins can change. You can also generate an MCP key by hand, and Enterprise customers can connect with their API keys. The server advertises a large set of tools, so Ahrefs lets you pick tool groups with a tools query parameter on the URL for clients that limit how many tools a server may expose.
How it connects
Your AI app
An assistant or agent that supports MCP
Ahrefs MCP Server
Runs as
- npx (Node.js)
- Remote (HTTP)
Gives the agent
- Site Explorer
- Keyword research
- Rank tracking and audits
- Brand Radar
- Web Analytics and GSC
- Batch and account tools
Ahrefs
Signs in with
- Token
What it can do
- Site Explorer
- The site-explorer-overview and site-explorer-reports groups cover domain rating, backlinks, referring domains, anchors, organic keywords, competitors and top pages.
- Keyword research
- The keywords-explorer group returns keyword overviews, volume by country and history, matching and related terms, and search suggestions; serp-overview gives the SERP for a keyword.
- Rank tracking and audits
- rank-tracker exposes overview and competitor reports, and site-audit reaches projects, issues, the page explorer and page content.
- Brand Radar
- brand-radar-simple and brand-radar-entities return Brand Radar reports at the domain, URL or entity level.
- Web Analytics and GSC
- Groups such as web-analytics-overview, web-analytics-sources and web-analytics-pages cover traffic, and gsc returns Google Search Console keywords, pages and positions.
- Batch and account tools
- batch-analysis checks many targets in one request, and management handles projects, keyword lists, locations and Brand Radar configuration.
Setting it up
In Claude Code, run claude mcp add ahrefs https://api.ahrefs.com/mcp/mcp -t http, launch Claude, run /mcp, then authenticate: log in to Ahrefs, select a workspace and click Allow. In Claude Desktop or the web app, open Customize, choose Connectors, click the add button, search for Ahrefs in the approved connectors, click Connect, pick your workspace and approve the consent popup. As an alternative for Claude Desktop, generate an MCP key under Account Settings, API Keys, then add an Ahrefs entry to claude_desktop_config.json that runs npx mcp-remote https://api.ahrefs.com/mcp/mcp. Pass an Authorization header read from an AUTH_HEADER env var set to Bearer plus your key, and restart the app. To limit the tool list, append something like ?tools=site-explorer-overview,brand-radar-entities to the URL.
claude mcp add --transport http ahrefs https://api.ahrefs.com/mcp/mcpIf the server needs a sign-in or an API key, the setup notes above say which. Combine several servers in the MCP config generator
Where each client keeps its MCP config file, and the JSON it expects (cheat sheet)
Where it helps
- List the top referring domains a site gained over the past week, laid out as a table.
- Compare organic keywords and competitors for two domains before a content planning session.
- Pull keyword volume by country and related terms to shape a topic cluster.
- Summarize open Site Audit issues for a project and point to the affected pages.
- Check Google Search Console positions alongside Ahrefs rankings for the same pages.
Limitations and things to watch
- The remote server needs a paid plan starting at Lite, and every call spends API units from your monthly allowance.
- OAuth-created MCP keys default to a 200,000 unit monthly cap per key until an admin changes it.
- Each plan caps the number of rows an agent can read per request.
- Ahrefs states that calling the endpoint from custom scripts, bridges or standalone JSON-RPC clients is not permitted; use the public API for programmatic access.
- The old local @ahrefs/mcp package is archived and works only with API v3 keys, not MCP keys.
Sources
Written from the project's own documentation, checked November 2026.
- docs.ahrefs.com /en/mcp/docs/introduction
- docs.ahrefs.com /en/mcp/docs/tool-categories
- docs.ahrefs.com /en/mcp/docs/claude-code
- docs.ahrefs.com /en/mcp/docs/claude-desktop-web
- registry.modelcontextprotocol.io /v0/servers?search=ahrefs
- github.com /ahrefs/ahrefs-mcp-server
How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.