
An MCP server that merges Google Search Console history with a live first-party crawl of your site to produce a prioritised, evidence-backed technical SEO audit inside Claude, complete with paste-ready fixes.

A local Model Context Protocol server that connects Claude Desktop and other compatible AI assistants to Ahrefs using API v3 keys.
Ahrefs MCP is cataloged as an MCP server attributed to ahrefs. A local Model Context Protocol server that connects Claude Desktop and other compatible AI assistants to Ahrefs using API v3 keys. It is categorized under search web. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Ahrefs MCP are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
No; the README states the local server is no longer maintained and recommends against using it, pointing to a remote server instead.
No, it works only with API v3 keys and does not work with MCP keys.
README.md · ca0e1e999673 · 采集于 2026-11-13 09:28:01 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
[!WARNING] This repository is no longer maintained! We have released a remote Ahrefs MCP server, which doesn't require local setup and works directly in popular AI tools. Learn more here: Remote MCP server documentation
This repository is for the local Ahrefs MCP server which works with API v3 keys only. It DOES NOT work with MCP keys. It IS NOT maintained. It is OUTDATED. And we do not recommend using it.
A Model Context Protocol server to connect Claude desktop and other compatible AI assistants to Ahrefs.
npm commands need to be executed in a terminal:
cmd, and press Enternpm -v
npm install --prefix=~/.global-node-modules @ahrefs/mcp -g
If you've installed our MCP server before, and just want to upgrade, run this command:
npm install --prefix=~/.global-node-modules @ahrefs/mcp@latest -g
You can now add the Ahrefs MCP to your favourite AI assistant app by adding the ahrefs part to your app's configuration file:
{
"mcpServers": {
"ahrefs": {
"command": "npx",
"args": [
"--prefix=~/.global-node-modules",
"@ahrefs/mcp"
],
"env": {
"API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}
{
"mcpServers": {
"ahrefs": {
"command": "npx",
"args": [
"--prefix=C:\\Users\\YOUR_USERNAME_HERE\\.global-node-modules\\node_modules",
"@ahrefs/mcp"
],
"env": {
"API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}
@ahrefs/mcpTo learn more about creating or controlling API keys, refer to the official documentation.
Settings...
Developer in the left panel, then Edit Config
Paste the configuration above into the open file
Restart the Claude app! If the installation is successful, it should look like this:
If you prefer directly navigating to the file, the paths are:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.jsonIf there are any issues, please refer to the official documentation
Cursor supports configurations that are either project-specific or global: the MCP configuration file will be at .cursor/mcp.json or ~/.cursor/mcp.json respectively.
For more details, read the official documentation.
Symptoms:
npm -v shows an error like command not found or 'npm' is not recognized.Fix:
npm to your PATH.Platform-Specific Checks:
Win + R → cmd) and run:
node -v
npm -v
which node && which npm
If it returns nothing, Node.js may not be in your $PATH.
Symptoms:
EACCES: permission denied, especially on macOS or Linux.Fix:
npm install --prefix=~/.global-node-modules @ahrefs/mcp -g
sudo).Extra Tip:
If you used sudo previously and created permission issues, reset folder ownership:
sudo chown -R $(whoami) ~/.global-node-modules
Symptoms:
Fix: Check if Terminal has Full Disk Access:
Note: Modern macOS versions require explicit permissions for Terminal access. Without proper permissions, npm installations and other file operations may fail silently or with permission errors.
npx Cannot Find the Ahrefs MCP CommandSymptoms:
Cannot find package '@ahrefs/mcp'Fix: Ensure your config uses the same prefix used during install:
"command": "npx",
"args": [
"--prefix=~/.global-node-modules",
"@ahrefs/mcp"
]
Note:
Do not omit the --prefix unless you're installing globally system-wide (not recommended).
Symptoms:
Fix:
%APPDATA%\Claude\claude_desktop_config.json~/Library/Application Support/Claude/claude_desktop_config.json~/.config/Claude/claude_desktop_config.jsonSymptoms:
API_KEY.Fix: Ensure this line is present in the MCP config:
"env": {
"API_KEY": "YOUR_API_KEY_HERE"
}
Replace YOUR_API_KEY_HERE with your actual key. Ensure that your API key settings give you the necessary permissions.
For more help, refer to Ahrefs API key docs.
Symptoms:
ENOENT or "no such file or directory"~ or environment variables not being expanded correctlyFix: Use absolute paths instead of relying on path expansion:
Windows:
C:\Users\<username>\.global-node-modules
Replace <username> with your actual Windows username.
macOS:
/Users/<username>/.global-node-modules
Replace <username> with your macOS username.
Linux:
/home/<username>/.global-node-modules
Replace <username> with your Linux username.
Example Configuration:
{
"mcpServers": {
"ahrefs": {
"command": "npx",
"args": [
"--prefix=/Users/username/.global-node-modules", // Replace with your absolute path
"@ahrefs/mcp"
],
"env": {
"API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}
How to Find Your Absolute Path:
Windows:
echo %USERPROFILE%macOS/Linux:
echo $HOMENote: Using absolute paths eliminates issues with path expansion and ensures the configuration works regardless of environment variables or shell configurations.
| Issue | Windows Command | macOS/Linux Command |
|---|---|---|
| Check Node version | node -v && npm -v | node -v && npm -v |
| Check if MCP is installed | npm list -g --prefix=%USERPROFILE%\.global-node-modules @ahrefs/mcp | npm list -g --prefix=~/.global-node-modules @ahrefs/mcp |
| Clear corrupted install | Delete folder manually | rm -rf ~/.global-node-modules |
| Purpose | Windows | macOS | Linux |
|---|---|---|---|
| Claude config file | %APPDATA%\Claude\claude_desktop_config.json | ~/Library/Application Support/Claude/claude_desktop_config.json | ~/.config/Claude/claude_desktop_config.json (if applicable) |
| Global MCP install location | %USERPROFILE%\.global-node-modules | ~/.global-node-modules | ~/.global-node-modules |
Let us know what errors you're seeing, along with your OS and the output of:
npm list -g --prefix=~/.global-node-modules @ahrefs/mcp
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Ahrefs MCP from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/ahrefs)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

An MCP server that merges Google Search Console history with a live first-party crawl of your site to produce a prioritised, evidence-backed technical SEO audit inside Claude, complete with paste-ready fixes.

Runs a free Answer Engine Optimization and AI visibility report for a domain and returns a shareable report plus a structured summary.

An MCP server that offers intelligent web search using OpenAI reasoning models, with support for fast iterations and deep research.