Description
This MCP server provides AI assistants with direct access to Ahrefs' SEO and marketing APIs, featuring tools for rank tracking, keyword research, batch analysis, and search volume data across multiple endpoints. Built by Ahrefs using TypeScript with axios for HTTP requests and the Model Context Protocol SDK, it supports comprehensive keyword ranking analysis with historical comparisons, competitor overview data, batch domain/URL analysis for backlink and traffic metrics, keyword exploration with difficulty scoring and search intent analysis, and volume tracking across countries and time periods. The implementation uses OpenAPI-style tool definitions with detailed parameter schemas and filtering capabilities, enabling natural language interaction with Ahrefs' professional SEO data through standardized interfaces, making it valuable for SEO research workflows, competitive analysis, content strategy planning, and building AI assistants that need programmatic access to enterprise-grade search marketing intelligence without manual platform navigation.
Installation
npx -y @ahrefs/mcp npm install @ahrefs/mcp git clone https://github.com/ahrefs/ahrefs-mcp-server Claude Desktop Configuration
Add this configuration to your Claude Desktop config file to enable this MCP server:
Config file location: ~/Library/Application Support/Claude/claude_desktop_config.json
Config file location: %APPDATA%\Claude\claude_desktop_config.json
Config file location: ~/.config/Claude/claude_desktop_config.json
{
"mcpServers": {
"ahrefs": {
"command": "npx",
"args": [
"-y",
"@ahrefs/mcp"
]
}
}
}