Ahrefs Logo

Ahrefs

Official 1-Click Ready Remote Remote

Integrates with Ahrefs' SEO and marketing APIs to provide rank tracking, keyword research, batch ana...

2,946 views
23 installs
Updated Nov 22, 2025
Not audited
Integrates with Ahrefs' SEO and marketing APIs to provide rank tracking, keyword research, batch analysis, search volume data, and competitor insights for search marketing intelligence workflows.

To obtain your Ahrefs API key and configure the Ahrefs MCP server, follow these steps:

  1. Log in to Your Ahrefs Account

  2. Access Account Settings

    • After logging in, click on your profile icon located in the top-right corner.
    • From the dropdown menu, select "Account Settings."
  3. Navigate to the API Section

    • In the Account Settings menu, find and click on the "API" tab or section.
  4. Generate a New API Key

    • If you don't have an existing API key, click on the "Generate API Key" button.
    • A new API key will be created and displayed.
  5. Copy Your API Key

    • Carefully copy the generated API key. Ensure you store it securely, as it will be used to authenticate your requests.
  6. Configure the Ahrefs MCP Server

    • Open your AI assistant application's configuration file.

    • Locate the section for MCP servers and add the following configuration, replacing "YOUR_API_KEY_HERE" with the API key you obtained:

      {
          "mcpServers": {
              "ahrefs": {
                  "command": "npx",
                  "args": [
                      "--prefix=~/.global-node-modules",
                      "@ahrefs/mcp"
                  ],
                  "env": {
                      "API_KEY": "YOUR_API_KEY_HERE"
                  }
              }
          }
      }
      
    • For Windows users, ensure the --prefix path is correctly set to your user directory, and use double backslashes (\\) in the path.

  7. Save and Restart Your Application

    • Save the configuration file.
    • Restart your AI assistant application to apply the new settings.

By completing these steps, your Ahrefs MCP server should be configured and ready for use.

How to Install Ahrefs

Install Ahrefs MCP server with one click through FastMCP. Choose your preferred AI development tool below:

Claude Desktop

Click "Claude Desktop" in Quick Start

Cursor IDE

Click "Cursor IDE" in Quick Start

VS Code

Click "VS Code" in Quick Start

This server supports remote connections — no local setup or dependencies required.

Ahrefs is an officially maintained MCP server, verified by the FastMCP team.

Ahrefs supports one-click installation — no manual JSON configuration needed.

Alternatives to Ahrefs

Looking for similar MCP servers? Browse other servers in the same categories on FastMCP, or check out the similar servers listed above.

Quick Start

View on GitHub

More for Analytics and Data

View All →

More from Top MCP Servers for SEO

Report Issue

Thank you! Your issue report has been submitted successfully.

Stay ahead of the MCP ecosystem

Get the top new MCP servers, trending tools, and dev tips delivered weekly. Free, no spam, unsubscribe anytime.

Join 2,847 developers. We send one email per week.