Skip to main content
Glama
Majestic MCP Server

Majestic MCP Server

by MattiooFR

Majestic MCP Server

A Model Context Protocol (MCP) server for the Majestic SEO API. Runs locally via stdio transport.

Features

9 tools to interact with Majestic's SEO data:

Tool

Description

get_index_item_info

Get Trust Flow, Citation Flow, backlink counts and key metrics

get_backlinks

Get detailed backlink data for a URL/domain

get_anchor_text

Get anchor text distribution

get_ref_domains

Get list of referring domains

get_top_pages

Get the most backlinked pages on a domain

get_topics

Get topical Trust Flow breakdown

get_new_lost_backlinks

Get recently gained or lost backlinks

compare_items

Compare metrics across multiple URLs/domains

get_subscription_info

Check API usage and remaining quota

Related MCP server: semrush-mcp

Prerequisites

Quick Start

With npx (no install)

MAJESTIC_API_KEY=your-key npx majestic-mcp

Global install

npm install -g majestic-mcp
MAJESTIC_API_KEY=your-key majestic-mcp

MCP Configuration

For mcporter / OpenClaw

Add to .mcp.json:

{
  "mcpServers": {
    "majestic": {
      "command": "npx",
      "args": ["-y", "majestic-mcp"],
      "env": {
        "MAJESTIC_API_KEY": "your-api-key-here"
      }
    }
  }
}

For Claude Desktop

Add to Claude Desktop config:

{
  "mcpServers": {
    "majestic": {
      "command": "npx",
      "args": ["-y", "majestic-mcp"],
      "env": {
        "MAJESTIC_API_KEY": "your-api-key-here"
      }
    }
  }
}

Usage with mcporter

# Get Trust Flow and Citation Flow for a domain
mcporter call majestic.get_index_item_info items='["backlink-eldorado.fr"]'

# Get backlinks
mcporter call majestic.get_backlinks item="example.com" count=50

# Compare domains
mcporter call majestic.compare_items items='["site1.com","site2.com","site3.com"]'

# Check API quota
mcporter call majestic.get_subscription_info

API Reference

get_index_item_info

Get Trust Flow, Citation Flow, and other key metrics.

Parameter

Type

Default

Description

items

string[]

required

URLs or domains to analyze (max 100)

datasource

"fresh" | "historic"

"fresh"

Index to use

includeSubdomains

boolean

true

Include subdomain data

Get detailed backlink data.

Parameter

Type

Default

Description

item

string

required

URL or domain

datasource

"fresh" | "historic"

"fresh"

Index to use

count

number

100

Number of backlinks (max 50000)

mode

"0" | "1"

"0"

0=all, 1=one per domain

filterTopic

string

-

Filter by topic

filterRefDomain

string

-

Filter by referring domain

get_anchor_text

Get anchor text distribution.

Parameter

Type

Default

Description

item

string

required

URL or domain

datasource

"fresh" | "historic"

"fresh"

Index to use

count

number

100

Number to return (max 1000)

mode

"0" | "1"

"0"

0=phrase, 1=word anchors

textMode

"0" | "1" | "2"

"0"

0=anchor, 1=alt, 2=both

get_ref_domains

Get referring domains.

Parameter

Type

Default

Description

item

string

required

URL or domain

datasource

"fresh" | "historic"

"fresh"

Index to use

count

number

100

Number to return (max 50000)

orderBy

string

"TrustFlow"

Sort order

filterTopic

string

-

Filter by topic

get_top_pages

Get most backlinked pages.

Parameter

Type

Default

Description

item

string

required

Domain to analyze

datasource

"fresh" | "historic"

"fresh"

Index to use

count

number

100

Number to return (max 10000)

orderBy

string

"ExtBackLinks"

Sort order

get_topics

Get topical Trust Flow breakdown.

Parameter

Type

Default

Description

item

string

required

URL or domain

datasource

"fresh" | "historic"

"fresh"

Index to use

Get recently gained/lost backlinks.

Parameter

Type

Default

Description

item

string

required

Domain to analyze

count

number

100

Number to return (max 50000)

mode

"new" | "lost"

"new"

New or lost backlinks

compare_items

Compare metrics across domains.

Parameter

Type

Default

Description

items

string[]

required

2-5 URLs/domains to compare

datasource

"fresh" | "historic"

"fresh"

Index to use

get_subscription_info

Check API usage (no parameters).

Majestic Indexes

  • Fresh Index: Updated daily, contains links discovered in the last 120 days

  • Historic Index: Contains 5+ years of backlink data, updated monthly

License

MIT

Available Tools

9 tools
compare_itemsC

Compare Trust Flow, Citation Flow and other metrics across multiple URLs/domains

Inputs: items (required), datasource.

get_anchor_textC

Get anchor text distribution for a URL or domain

Inputs: item (required), datasource, count, mode, +1 more.

get_index_item_infoC

Get Trust Flow, Citation Flow, backlink counts and other key metrics for one or more URLs/domains

Inputs: items (required), datasource, includeSubdomains.

get_ref_domainsC

Get list of referring domains linking to a URL or domain

Inputs: item (required), datasource, count, orderBy, +1 more.

get_subscription_infoA

Get current API subscription info, usage and remaining quota

Inputs: no named parameters.

get_topicsC

Get topical Trust Flow breakdown for a URL or domain

Inputs: item (required), datasource.

get_top_pagesC

Get the most backlinked pages on a domain

Inputs: item (required), datasource, count, orderBy.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 9 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose targeting specific SEO/backlink analysis functions, with no significant overlap. For example, get_backlinks provides detailed backlink data, while get_ref_domains focuses on referring domains, and get_anchor_text covers anchor text distribution.

    Naming Consistency5/5

    All tools follow a consistent verb_noun pattern with 'get_' or 'compare_' prefixes, using snake_case throughout. The naming convention is predictable and readable across all nine tools, with no deviations in style.

    Tool Count5/5

    Nine tools is well-scoped for an SEO/backlink analysis server, providing comprehensive coverage without being overwhelming. Each tool earns its place by addressing specific aspects of domain/URL metrics and backlink analysis.

    Completeness4/5

    The tool set offers strong coverage for SEO metrics and backlink analysis, including key operations like retrieving metrics, backlinks, referring domains, and subscription info. A minor gap exists in update/management operations (e.g., no tool to modify or delete data), but core analysis workflows are well-covered.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      C
      quality
      D
      maintenance
      An MCP server that integrates with the Haloscan SEO API to provide tools for keyword research, SERP analysis, and domain performance tracking. It enables users to perform comprehensive SEO tasks, including competitor analysis and visibility monitoring, within MCP-compatible clients.
      33
      1
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      MCP server providing tools to access Semrush API data for domain analytics, keyword research, backlink analysis, and traffic analytics.
      19
      44 npm
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that provides SEO analysis tools including backlink analysis, keyword research, and traffic estimation using Ahrefs data, with CAPTCHA solving and caching.
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      An MCP server that provides a suite of SEO analysis tools for auditing meta tags, headings, links, keyword density, page speed, and sitemaps without requiring external API keys.
      6
      1
      MIT