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.6K

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

P
Praisonai
PraisonAI is a production-ready multi-AI agent framework with self-reflection capabilities, designed to create AI agents to automate the solution of various problems from simple tasks to complex challenges. It simplifies the construction and management of multi-agent LLM systems by integrating PraisonAI agents, AG2, and CrewAI into a low-code solution, emphasizing simplicity, customization, and effective human-machine collaboration.
Python
6.7K
5 points
M
Maverick MCP
MaverickMCP is a personal stock analysis server based on FastMCP 2.0, providing professional level financial data analysis, technical indicator calculation, and investment portfolio optimization tools for MCP clients such as Claude Desktop. It comes pre-set with 520 S&P 500 stock data, supports multiple technical analysis strategies and parallel processing, and can run locally without complex authentication.
Python
10.5K
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
19.0K
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
13.4K
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
11.7K
4.5 points
M
MCP Server Airbnb
Certified
MCP service for Airbnb listing search and details query
TypeScript
16.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
105.1K
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
13.9K
4.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
21.7K
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
31.2K
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
64.5K
4.3 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
18.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#
28.0K
5 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
58.3K
4.5 points
C
Context7
Context7 MCP is a service that provides real-time, version-specific documentation and code examples for AI programming assistants. It is directly integrated into prompts through the Model Context Protocol to solve the problem of LLMs using outdated information.
TypeScript
88.1K
4.7 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
43.0K
4.8 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2026AIBase