Ahrefs MCP Server
A

Ahrefs MCP Server

Ahrefs MCP is a model context protocol server used to connect Claude Desktop and other compatible AI assistants to the Ahrefs service.
2.5 points
7.5K

What is Ahrefs MCP?

Ahrefs MCP is a Model Context Protocol (MCP) server that allows AI assistants like Claude to interact with Ahrefs tools. Through MCP, users can directly call the Ahrefs API in the AI assistant to obtain SEO data, keyword analysis and other information.

How to use Ahrefs MCP?

After installing the Ahrefs MCP server, simply configure the corresponding server parameters in the AI application that supports MCP, and the AI assistant can access the functions of Ahrefs.

Applicable scenarios

Ahrefs MCP is very suitable for users who need to quickly obtain SEO data, keyword analysis, website traffic and other information, especially marketers and content creators.

Main features

Seamless integration with AI assistants
Supports integration with mainstream AI assistants such as Claude and Cursor to achieve one - click call of Ahrefs functions.
Real - time data query
The AI assistant can directly obtain the latest SEO data from Ahrefs, such as keyword rankings and website traffic.
API interface support
Through the API interface provided by Ahrefs, ensure data accuracy and security.
Advantages
Improve work efficiency and obtain SEO data without switching tools
Simplify the function expansion of AI assistants and enhance their practicality
Support multiple platforms (Windows/macOS/Linux)
Limitations
Requires a certain technical foundation for configuration and operation
Depends on the Ahrefs API and may involve fees
Some functions are only available to advanced users

How to use

Install Node.js and npm
Download and install Node.js and npm from [nodejs.org](https://nodejs.org/en/download/).
Install the Ahrefs MCP server
Run the command `npm install --prefix=~/.global-node-modules @ahrefs/mcp -g` in the terminal or command prompt for installation.
Configure the MCP server
Add the configuration information of Ahrefs MCP to the configuration file of the AI application according to your operating system.
Restart the AI application
After saving the configuration, restart the AI assistant application you are using for the changes to take effect.

Usage examples

Query keyword search volume
Enter a keyword in Claude, and MCP will call the Ahrefs API to return the search volume and competitiveness of the keyword.
Analyze website backlinks
Enter the domain name of the target website, and MCP can return detailed information such as the number of backlinks and source sites of the website.

Frequently Asked Questions

What should I do if the installation of Node.js or npm fails?
What should I do if MCP fails to start or reports an error?
How to obtain an Ahrefs API key?
Why doesn't MCP appear in Claude?

Related resources

Ahrefs MCP official documentation
Official usage guide for the Model Context Protocol
Ahrefs API documentation
Detailed description of the Ahrefs API and API key management methods
Node.js official download page
Download and install Node.js and npm

Installation

Copy the following command to your Client for configuration
{
    "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"
            }
        }
    }
}

{
    "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"
            }
        }
    }
}
Note: Your key is sensitive information, do not share it with anyone.

Alternatives

M
Maverick MCP
Python
6.4K
4 points
K
Klavis
Klavis AI is an open-source project that provides a simple and easy-to-use MCP (Model Context Protocol) service on Slack, Discord, and Web platforms. It includes various functions such as report generation, YouTube tools, and document conversion, supporting non-technical users and developers to use AI workflows.
TypeScript
14.5K
5 points
S
Scrapling
Scrapling is an adaptive web scraping library that can automatically learn website changes and re - locate elements. It supports multiple scraping methods and AI integration, providing high - performance parsing and a developer - friendly experience.
Python
11.1K
5 points
A
Apple Health MCP
An MCP server for querying Apple Health data via SQL, implemented based on DuckDB for efficient analysis, supporting natural language queries and automatic report generation.
TypeScript
9.7K
4.5 points
M
MCP Server Airbnb
Certified
MCP service for Airbnb listing search and details query
TypeScript
14.3K
4 points
F
Firecrawl MCP Server
The Firecrawl MCP Server is a Model Context Protocol server integrating Firecrawl's web - scraping capabilities, providing rich web - scraping, searching, and content - extraction functions.
TypeScript
87.5K
5 points
R
Rednote MCP
RedNote MCP is a tool that provides services for accessing Xiaohongshu content. It supports functions such as authentication management, keyword - based note search, and command - line initialization, and can access note content via URL.
TypeScript
12.7K
4.5 points
P
Perplexity MCP
Certified
An MCP server based on the Perplexity AI API, providing web search functionality for the Claude desktop client.
Python
16.7K
4.1 points
N
Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
16.7K
4.5 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
56.3K
4.3 points
M
Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
27.8K
5 points
G
Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
18.9K
4.3 points
F
Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
52.9K
4.5 points
U
Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
24.8K
5 points
M
Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
37.2K
4.8 points
G
Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
17.5K
4.5 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2025AIBase