Ahrefs MCP Server
Official MCP server for Ahrefs SEO tools - analyze backlinks, keywords, competitors, and website performance with AI assistance
⚡ Quick Install with Claude Code MCP Guide
Connect Claude Code to any remote MCP server with one simple command. Choose between direct HTTP connections or a universal bridge - all configured automatically with our setup wizard.
Get the Claude Code MCP Setup Guide →🔌 Test MCP Server Connection
Test your connection to the MCP wrapper server using your x-api-key. This validates that your MCP server credentials are configured correctly.
🚀 Test Full Ahrefs Connection
Test both your MCP server connection AND your Ahrefs API credentials. This ensures your complete setup is working correctly.
📡 API Endpoint & Required Headers
Required HTTP Headers:
🛠️ Available Tools
⚠️ Common Errors & Solutions
🏥 Service Health Check
Configuration
// Claude Desktop: ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) // Windows: %APPDATA%\Claude\claude_desktop_config.json { "mcpServers": { "ahrefs": { "command": "npx", "args": [ "-y", "@ahrefs/mcp@latest" ], "env": { "API_KEY": "YOUR_AHREFS_API_KEY" } } } }
Features
Enterprise-grade SEO analysis and monitoring for AI assistants
Backlink Analysis
Analyze backlink profiles with the world's largest link database.
Keyword Research
Discover keyword opportunities with search volume and difficulty metrics.
Rank Tracking
Monitor keyword rankings across multiple search engines and locations.
Competitor Analysis
Analyze competitor strategies and find content gaps.
Site Audit
Identify and fix technical SEO issues on your website.
Content Explorer
Find high-performing content ideas in any niche.