Skip to content

Ahrefs MCP server

  • MCP server
  • 4 capabilities
Installation guide

Overview

Ahrefs publishes a hosted MCP server that lets AI agents access the Ahrefs API for an Ahrefs account. It works with Ahrefs SEO and marketing data.

Capabilities:

  • Access Ahrefs API data from AI agents
  • Enrich AI assistant answers with Ahrefs data
  • Connect an Ahrefs account to supported AI tools via OAuth
  • Use an MCP API key generated in the Ahrefs account

Works with

The products your agent can work with through this server.

Installation

Add Ahrefs MCP server to Claude Code

Run this in your terminal:

claude mcp add --transport http ahrefs https://api.ahrefs.com/mcp/mcp

If the server asks you to sign in, run /mcp in Claude Code and follow the browser prompt.

Sources

Documentation and source code reviewed on 12 November 2026.