- Home
- MCP servers
- Majestic
Majestic
- javascript
0
GitHub Stars
javascript
Language
4 months ago
First Indexed
2 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
Installation
Add the following to your MCP client configuration file.
Configuration
View docs{
"mcpServers": {
"mattioofr-majestic-mcp": {
"command": "npx",
"args": [
"-y",
"majestic-mcp"
],
"env": {
"MAJESTIC_API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}You can run the Majestic MCP Server locally to access Majestic SEO API data through a lightweight, standardized model context protocol interface. This server lets you query key metrics, backlinks, anchors, referrals, and comparisons from Majestic directly on your machine, enabling seamless integration with MCP clients and tooling.
How to use
You interact with the Majestic MCP Server through an MCP client by invoking the majestic endpoints defined by the server. Typical workflows include fetching index metrics for domains, retrieving backlinks data, analyzing anchor text distributions, listing referring domains, and comparing metrics across multiple sites. You can also monitor your API usage quota to manage your plan effectively.
How to install
Prerequisites you need before running the server: Node.js 18 or later and an active Majestic API key. You will also want an MCP client or orchestration tool that can communicate via JSON-RPC over MCP.
Install and run the MCP server locally using the following steps. Copy each command to your terminal and run in sequence.
# Install the MCP server globally (optional)
npm install -g majestic-mcp
# Run the MCP server with your Majestic API key
MAJESTIC_API_KEY=your-key-here majestic-mcp
Configuration and notes
The server is configured to run via a local stdio transport. You provide the API key through an environment variable named MAJESTIC_API_KEY. You can wire the server into your MCP client configurations using the following example.
{
"mcpServers": {
"majestic": {
"command": "npx",
"args": ["-y", "majestic-mcp"],
"env": {
"MAJESTIC_API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}
Available tools
get_index_item_info
Fetch Trust Flow, Citation Flow, backlink counts, and key metrics for specified URLs or domains.
get_backlinks
Retrieve detailed backlink data for a URL or domain, with options for count and filtering.
get_anchor_text
Obtain the distribution of anchor text for a domain or URL.
get_ref_domains
Get the list of referring domains for a given item.
get_top_pages
Get the most backlinked pages on a domain.
get_topics
Get topical Trust Flow breakdown for a target.
get_new_lost_backlinks
Return recently gained or lost backlinks for a domain.
compare_items
Compare metrics across multiple URLs or domains.
get_subscription_info
Check API usage and remaining quota for your key.