The Ahrefs MCP server provides access to Ahrefs' SEO tools, including backlink analysis, keyword research, and site audits. It connects directly to Ahrefs' API, allowing AI agents to fetch and analyze SEO data. Developers use it to build AI assistants that can perform SEO tasks, generate reports, and make data-driven recommendations.
The Ahrefs MCP server provides access to Ahrefs' SEO tools, including backlink analysis, keyword research, and site audits. It connects directly to Ahrefs' API, allowing AI agents to fetch and analyze SEO data. Developers use it to build AI assistants that can perform SEO tasks, generate reports, and make data-driven recommendations.
npx -y @ahrefs/mcpAdd this configuration to your claude_desktop_config.json:
{
"mcpServers": {
"ahrefs-ahrefs-mcp-server-github": {
"command": "npx",
"args": [
"-y",
"npx -y @ahrefs/mcp"
]
}
}
}Restart Claude Desktop, then ask:
"What tools do you have available from ahrefs?"
API Key Required
This server requires an API key from ahrefs. Add it to your environment or config.
| Variable | Required | Description |
|---|---|---|
| AHREFS_API_KEY | Yes | Your ahrefs API key |
"What resources are available in ahrefs?"
Claude will query available resources and return a list of what you can access.
"Show me details about [specific item] in ahrefs"
Claude will fetch and display detailed information about the requested item.
"Create a new [item] in ahrefs with [details]"
Claude will use the appropriate tool to create the resource and confirm success.
We build custom MCP integrations for B2B companies. From simple connections to complex multi-tool setups.