# getdr

> getdr is an open-source MCP server for marketing and seo. Look up Ahrefs Domain Rating for domains or URLs through a getdr backend. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, self-hosted, macOS, Windows, Linux
- **Website:** https://index-pages.com/getdr/
- **Repository:** https://github.com/index-pages/getdr-mcp
- **MCP Registry name:** io.github.index-pages/getdr-mcp
- **Categories:** marketing and SEO
- **Listing updated:** 2026-11-14

## About

This is a thin front for the getdr command-line tool. It makes no Ahrefs requests itself: each call goes either to a getdr server on your network or to the getdr binary on your PATH, and either way returns the same JSON records.

Ahrefs publishes a free Domain Rating endpoint that costs no API units, but each request still needs a free Ahrefs API key. getdr keeps results in a local SQLite cache, so repeat lookups cost no request, and running getdr serve lets one machine hold the key and cache for scripts and agents across a network. Targets are normalised: a URL is reduced to its host, www is dropped and duplicates are removed.

The record for each target holds the DR value, the formula version (dr3 or dr4), a check timestamp and whether it came from cache. A null DR means Ahrefs has no data.

## Features

- **Single get_dr tool:** One tool takes a list of domains or URLs and returns one record per target.
- **Two backends:** Uses a getdr server through GETDR_API, or the getdr binary on PATH.
- **Formula choice:** Selects dr3 or dr4; the values are not comparable between versions.
- **Cache control:** A fresh flag skips the cache and fetches again.
- **Structured output:** Returns a JSON array and structuredContent on newer MCP clients.

## Good for

- Check domain authority for a list of link prospects
- Compare a competitor's DR with your own inside a chat
- Share one Ahrefs key across a team through a getdr server
- Track how a domain's rating has moved since the last check

## Install

### Claude Code (Terminal)

```sh
claude mcp add getdr-mcp --env GETDR_SERVE_TOKEN='<GETDR_SERVE_TOKEN>' -- npx -y getdr-mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "getdr-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "getdr-mcp"
      ],
      "env": {
        "GETDR_SERVE_TOKEN": "<GETDR_SERVE_TOKEN>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "getdr-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "getdr-mcp"
      ],
      "env": {
        "GETDR_SERVE_TOKEN": "<GETDR_SERVE_TOKEN>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "getdr-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "getdr-mcp"
      ],
      "env": {
        "GETDR_SERVE_TOKEN": "<GETDR_SERVE_TOKEN>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "getdr-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "getdr-mcp"
      ],
      "env": {
        "GETDR_SERVE_TOKEN": "<GETDR_SERVE_TOKEN>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "getdr-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "getdr-mcp"
      ],
      "env": {
        "GETDR_SERVE_TOKEN": "<GETDR_SERVE_TOKEN>"
      }
    }
  }
}
```

## Tools

- `get_dr`: Ahrefs Domain Rating (0-100) for domains or URLs, via getdr by Index Pages.

## FAQ

### Do I need an Ahrefs account?

Yes, a free Ahrefs account and API key; the DR endpoint costs no API units.

### What does it need to run?

Node.js 18 or later, plus either the getdr binary or a getdr server.

### What happens with an invalid target?

The record carries an invalid target error, and DR is null when Ahrefs has no data.

### How long can a call take?

Calls time out after 120 seconds.

### Is getdr free?

Yes. getdr is open source, so you can use and self-host it for free.

### How do I add getdr to Claude Code?

Run this command in your terminal: claude mcp add getdr-mcp --env GETDR_SERVE_TOKEN='<GETDR_SERVE_TOKEN>' -- npx -y getdr-mcp

### What are the best alternatives to getdr?

The closest alternatives to getdr are Google Ads + Meta Ads + SEO/GEO MCP, Calven, MCP, Red Center Studio free tools and ASOScan.

## Alternatives

- [Google Ads + Meta Ads + SEO/GEO MCP](https://ai-powered.com/mcp/google-ads-meta-ads-seo-geo-mcp): Google Ads + Meta Ads + SEO/GEO MCP is a freemium MCP server for marketing and seo.
- [Calven](https://ai-powered.com/mcp/calven): Calven is an MCP server for marketing and seo.
- [MCP](https://ai-powered.com/mcp/mcp-mwhffe53): MCP is a freemium MCP server for marketing and seo.
- [Red Center Studio free tools](https://ai-powered.com/mcp/red-center-studio-free-tools): Red Center Studio free tools is a free MCP server for marketing and seo.
- [ASOScan](https://ai-powered.com/mcp/asoscan): ASOScan is an MCP server for marketing and seo.
- [PostBaton](https://ai-powered.com/mcp/postbaton): PostBaton is a freemium MCP server for marketing and seo.
- [Fifty Asks](https://ai-powered.com/mcp/fifty-asks): Fifty Asks is a free MCP server for maps and travel.
- [Daniels AI Design Studio](https://ai-powered.com/mcp/daniels-ai-design-studio): Daniels AI Design Studio is an MCP server for design and media.

---
Source: https://ai-powered.com/mcp/getdr
