Labsco
1fancy logo

Ahrefs MCP

from 1fancy

Official Ahrefs MCP server that lets AI agents securely access Ahrefs SEO data, site metrics, keyword research, and competitor analysis through the Ahrefs API.

πŸ”₯πŸ”₯πŸ”₯πŸ”₯βœ“ VerifiedFreeQuick setup

What is Ahrefs MCP

Ahrefs MCP lets AI agents securely access the Ahrefs API and enrich their answers with real Ahrefs data. MCP (Model Context Protocol) is a standard that allows AI tools to connect with third-party APIs in a secure, consistent way. In our case, it connects AI tools with Ahrefs, enabling things like this:

Connect to Ahrefs MCP

Ahrefs provides a hosted MCP server that allows users with a Lite plan or higher to connect their Ahrefs account to supported AI tools. Once connected, your setup is synced and available across all devices linked to your personal or company account.

info

See our Ahrefs MCP use cases and prompt ideas for real examples and prompting tips to help you get the most from your MCP connection.

Connection URLs

  • Streamable HTTP (recommended): https://api.ahrefs.com/mcp/mcp

  • Legacy SSE (deprecated in many tools): https://api.ahrefs.com/mcp/mcpSse

Most popular AI tools support connecting to the remote MCP directly. If you run into issues, check out our step-by-step setup guides:

  • Claude Web / Desktop

  • Claude Mobile

  • Claude Code

  • Copilot Studio

  • ChatGPT Web

  • Lovable

  • n8n

  • Manus

  • Mistral's Le Chat

  • OpenClaw

Keys and authorization

When you connect Ahrefs MCP to an AI agent:

  • You’ll see an authorization consent screen.

  • Once approved, the connection will appear in your account with a dedicated API key (tagged with MCP scope).

  • Workspace admins can set a monthly API unit limit for each key in the API keys report to prevent over-usage.

You can also:

  • Manually generate an MCP key in your account and use it in your AI agent’s configuration.

  • Enterprise customers may also connect with their API keys.

For details on how API units are calculated per call, see API pricing and unit consumption guide.

Terms of use

The Ahrefs external MCP server is intended for use with MCP-compatible AI clients (such as ChatGPT, Claude, and similar assistants) for interactive, AI-driven workflows.

Using the external MCP endpoint via custom scripts, bridges, or standalone HTTP/JSON-RPC clients is unsupported and not permitted. The external MCP server is not a general-purpose programmatic API.

For supported programmatic access to Ahrefs data, please use the Ahrefs public API.