# Technical SEO, Sitemap & llms.txt AI Auditor (MCP) (`salmon_chaparral/seo-llms-auditor`) Actor

Pure-HTTP technical SEO crawler, XML/gzip sitemap extractor, and AI-search readiness auditor (robots.txt AI crawlers, llms.txt & llms-full.txt soft-404 checks) with Streamable HTTP MCP Server at 256MB RAM.

- **URL**: https://apify.com/salmon_chaparral/seo-llms-auditor.md
- **Developed by:** [Max Lee](https://apify.com/salmon_chaparral) (community)
- **Categories:** SEO tools, AI, MCP servers
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.80 / 1,000 pages audited

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Technical SEO, Sitemap & AI-Readiness Auditor (+ MCP Server)

[![Technical SEO, Sitemap & llms.txt AI Auditor (MCP) MCP connector](https://glama.ai/mcp/connectors/io.github.CraftCamp1/seo-llms-auditor/badges/score.svg)](https://glama.ai/mcp/connectors/io.github.CraftCamp1/seo-llms-auditor) [![Apify Store](https://img.shields.io/badge/Apify-Store-00C271?logo=apify)](https://apify.com/salmon_chaparral/seo-llms-auditor)

Pure-HTTP technical SEO crawler, XML/gzip sitemap extractor, and AI-search readiness auditor built to run in 256MB RAM with zero headless-browser overhead. Runs in **Standard Batch Mode** (dataset + `OUTPUT` summary) and **Apify Standby Mode** (Streamable HTTP MCP server at `/mcp` plus direct REST endpoints).

### What It Checks

#### 1. AI-Search Readiness Audit (Site-Level)

- **`/robots.txt` AI crawler policies (RFC 9309):** Parses explicit and wildcard rules (`Allow`, `Disallow`, `Crawl-delay`, `Sitemap`) for `GPTBot`, `OAI-SearchBot`, `ChatGPT-User`, `ClaudeBot`, `Claude-SearchBot`, `PerplexityBot`, `Google-Extended`, `CCBot`, and `Applebot-Extended`.
- **`/llms.txt` & `/llms-full.txt` validation:** Checks HTTP status, content-type, byte size, Markdown H1 title, blockquote summary, H2 sections, link counts, and detects HTML/SPA soft-404 pages returned with HTTP 200.
- **Deterministic `aiReadinessScore` (0–100)** and severity-tagged `aiIssues` (`critical`, `warning`, `info`).

#### 2. Sitemap & Sitemap-Index Extraction

- Discovers sitemaps from `robots.txt` `Sitemap:` directives plus `/sitemap.xml` and `/sitemap_index.xml`.
- Traverses nested `<sitemapindex>` trees recursively and decompresses `.xml.gz` files with `node:zlib` under strict byte ceilings.
- Tolerates namespaces, CDATA, truncated XML, plain-text URL lists, RSS/Atom feeds, and 404/HTML responses without crashing. Bounded by `maxSitemapUrls` (default `500`).

#### 3. Per-Page Technical SEO Audit

- **HTTP & Headers:** Status code, full redirect chain hops and final URL, TTFB (ms), HTML byte size, content-type, `Strict-Transport-Security`, `X-Robots-Tag`, `Cache-Control`, `Content-Encoding`.
- **Metadata & Indexability:** Title (text, length, missing/short/long), meta description, canonical (`self`, `other_path`, `cross_domain`, `missing`, `multiple`), `noindex`/`nofollow` (meta robots + `X-Robots-Tag`), viewport, `<html lang>`, `hreflang` alternates, OpenGraph, Twitter Card.
- **Structure & Content:** H1 count and texts, H1–H6 counts, heading hierarchy gaps (`h1 -> h3`), visible word count, image audit (`totalImages`, `missingAltCount`, `emptyAltCount`), internal/external/nofollow link counts, optional broken-link sampling, and JSON-LD `@type` extraction with syntax error reporting.
- **Deterministic `seoScore` (0–100)** and severity-tagged `issues`.

### Modes

#### Standard Batch Run

Pass input JSON (defaults to `["https://docs.apify.com"]`, `maxPages: 5` when omitted):

```json
{
  "startUrls": ["https://docs.apify.com"],
  "maxPages": 10,
  "discoverFromSitemap": true,
  "discoverFromLinks": true,
  "includeAiReadiness": true,
  "maxSitemapUrls": 500,
  "checkBrokenLinks": false,
  "concurrency": 5,
  "requestTimeoutMs": 8000
}
```

- **Default Dataset:** One structured JSON item per audited page.
- **Key-Value Store `OUTPUT`:** Site-level rollup containing `averageSeoScore`, `averageAiReadinessScore`, `totalIssuesBySeverity`, `brokenPages`, and per-site `aiReadiness` + sitemap metrics.

#### Sample JSON Output (Page Audit Item)

```json
{
  "url": "https://docs.apify.com/",
  "finalUrl": "https://docs.apify.com/",
  "siteOrigin": "https://docs.apify.com",
  "status": "ok",
  "httpStatus": 200,
  "seoScore": 94,
  "issueCounts": { "critical": 0, "warning": 1, "info": 1 },
  "redirectCount": 0,
  "ttfbMs": 142,
  "title": { "text": "Apify Documentation", "length": 19, "status": "ok" },
  "canonical": { "url": "https://docs.apify.com/", "status": "self" },
  "robots": { "noindex": false, "nofollow": false },
  "wordCount": 612,
  "images": { "totalImages": 8, "missingAltCount": 0, "emptyAltCount": 0 },
  "structuredData": { "types": ["WebSite"], "syntaxErrors": 0 },
  "auditedAt": "2026-12-04T12:00:00.000Z",
  "error": null
}
```

#### Standby & Streamable HTTP MCP Server

Automatically activates when running in Apify Standby (`metaOrigin === 'STANDBY'`) or with `RUN_MODE=standby`.

| Endpoint | Method | Purpose |
| --- | --- | --- |
| `/` | `GET` | Readiness health probe (`200 OK`) |
| `/mcp` | `POST`, `GET`, `DELETE` | Streamable HTTP MCP endpoint |
| `/api/audit` | `POST` | Direct REST single or batch page SEO audit (`{ "url": "..." }` or `{ "urls": [...] }`) |
| `/api/ai-readiness` | `POST` | Direct REST site AI-readiness + sitemap audit (`{ "url": "..." }` or `{ "domain": "..." }`) |

##### MCP Tools

1. **`audit_page_seo`** — Full technical SEO audit for one public URL (`url`, optional `checkBrokenLinks`, `requestTimeoutMs`).
2. **`audit_ai_readiness`** — Site-level `robots.txt` AI crawler rules, `llms.txt` / `llms-full.txt`, sitemap discovery, and `aiReadinessScore` (`url`, optional `maxSitemapUrls`, `requestTimeoutMs`).
3. **`extract_sitemap_urls`** — Sitemap and nested sitemap-index URL extractor supporting `.xml` and `.xml.gz` (`url`, optional `maxSitemapUrls`, `requestTimeoutMs`).

#### MCP Tools Reference

| Tool | Key Parameters | What It Does |
| --- | --- | --- |
| `audit_page_seo` | `url`, `checkBrokenLinks`, `requestTimeoutMs` | Full per-page technical SEO audit: HTTP headers, redirect chain, TTFB, title/meta/canonical/robots, hreflang, headings, images, links, JSON-LD, and `seoScore` (0-100). |
| `audit_ai_readiness` | `url`, `maxSitemapUrls`, `requestTimeoutMs` | Site-level `/robots.txt` AI bot matrix (`GPTBot`, `ClaudeBot`, `PerplexityBot`, etc.), `/llms.txt` & `/llms-full.txt` soft-404 check, sitemaps, and `aiReadinessScore`. |
| `extract_sitemap_urls` | `url`, `maxSitemapUrls`, `requestTimeoutMs` | Discover and recursively parse XML, nested `<sitemapindex>`, and gzipped `.xml.gz` sitemaps. |

#### 1-Click MCP Client Configuration

Connect via **Apify Hosted MCP (OAuth 2.1, recommended)** or the **Direct Standby MCP endpoint (Bearer token)**:

- **Hosted OAuth MCP URL:** `https://mcp.apify.com/?tools=salmon_chaparral/seo-llms-auditor`
- **Direct Standby MCP URL:** `https://salmon-chaparral--seo-llms-auditor.apify.actor/mcp`

**1. Claude Desktop (Native Remote Connector — zero tokens to paste):**

1. Open **Settings -> Connectors -> Add custom connector**.
2. Enter URL: `https://mcp.apify.com/?tools=salmon_chaparral/seo-llms-auditor`
3. Click **Connect**, sign in to Apify via OAuth, and enable the tools.

**2. Claude Code CLI:**

```bash
claude mcp add --transport http seo-llms-auditor "https://mcp.apify.com/?tools=salmon_chaparral/seo-llms-auditor" \
  --header "Authorization: Bearer <APIFY_API_TOKEN>"
```

**3. Cursor (`.cursor/mcp.json`):**

```json
{
  "mcpServers": {
    "seo-llms-auditor": {
      "url": "https://mcp.apify.com/?tools=salmon_chaparral/seo-llms-auditor",
      "headers": {
        "Authorization": "Bearer <APIFY_API_TOKEN>"
      }
    }
  }
}
```

**4. VS Code / GitHub Copilot (`.vscode/mcp.json`):**

```json
{
  "servers": {
    "seo-llms-auditor": {
      "type": "http",
      "url": "https://mcp.apify.com/?tools=salmon_chaparral/seo-llms-auditor",
      "headers": {
        "Authorization": "Bearer ${input:apify_token}"
      }
    }
  }
}
```

**5. Windsurf (`~/.codeium/windsurf/mcp_config.json`):**

```json
{
  "mcpServers": {
    "seo-llms-auditor": {
      "serverUrl": "https://mcp.apify.com/?tools=salmon_chaparral/seo-llms-auditor",
      "headers": {
        "Authorization": "Bearer <APIFY_API_TOKEN>"
      }
    }
  }
}
```

**6. n8n (MCP Client Tool Node):**

- Add an **MCP Client Tool** node in your n8n AI Agent workflow.
- Set **Endpoint / SSE-HTTP URL** to `https://mcp.apify.com/?tools=salmon_chaparral/seo-llms-auditor` (or direct Standby `https://salmon-chaparral--seo-llms-auditor.apify.actor/mcp`).
- Set Authentication to **Header Auth** -> `Authorization: Bearer <APIFY_API_TOKEN>`.

### API Examples (Python & Node.js)

**Python (`pip install apify-client`):**

```python
from apify_client import ApifyClient

client = ApifyClient("<APIFY_API_TOKEN>")
run = client.actor("salmon_chaparral/seo-llms-auditor").call(run_input={
    "startUrls": ["https://docs.apify.com"],
    "maxPages": 10,
    "includeAiReadiness": True,
})
pages = list(client.dataset(run["defaultDatasetId"]).iterate_items())
print(len(pages), pages[0]["seoScore"])
```

**Node.js (`npm install apify-client`):**

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: '<APIFY_API_TOKEN>' });
const run = await client.actor('salmon_chaparral/seo-llms-auditor').call({
  startUrls: ['https://docs.apify.com'],
  maxPages: 10,
  includeAiReadiness: true,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.length, items[0]?.seoScore);
```

### Pay-Per-Event Pricing

Unreachable pages and failed targets are never charged. Paid Apify tiers receive automatic progressive discounts:

| Event | FREE | BRONZE | SILVER | GOLD / PLATINUM / DIAMOND |
| --- | --- | --- | --- | --- |
| `apify-actor-start` (one-time) | $0.00005 | $0.00005 | $0.00005 | $0.00005 |
| `page-audited` (per page / sitemap extraction) | $0.0040 | $0.0032 | $0.0025 | $0.0018 |
| `site-ai-audit` (per reachable site AI-readiness audit) | $0.0050 | $0.0040 | $0.0032 | $0.0025 |

### Common Use Cases

- **AI Search / GEO Readiness Audits:** Verify whether a site accidentally blocks `OAI-SearchBot`, `Claude-SearchBot`, or `PerplexityBot` in `robots.txt` or serves an HTML SPA soft-404 on `/llms.txt`.
- **Automated Pre-Deploy Technical SEO Checks:** Run batch audits from CI, Python, or n8n to catch missing canonicals, accidental `noindex`, heading hierarchy gaps, missing image alt text, or invalid JSON-LD.
- **Sitemap Inventory & URL Discovery:** Recursively unpack nested `.xml` and `.xml.gz` sitemap trees up to `maxSitemapUrls` with hard memory caps.
- **SEO Agency & AI Coding Assistants:** Connect via MCP to Claude Code or Cursor so coding agents can audit staging/production URLs and fix SEO regressions directly in code.

### Frequently Asked Questions

#### How does the `llms.txt` soft-404 check work?

Many SPAs return HTTP 200 with an HTML shell or plain-text error body for `/llms.txt`. The auditor inspects `content-type`, HTML markup, Markdown H1/H2 structure, and link blocks so false HTTP 200 soft-404s are caught accurately.

#### Which AI crawlers are checked in `robots.txt`?

RFC 9309 matching is evaluated for `GPTBot`, `OAI-SearchBot`, `ChatGPT-User`, `ClaudeBot`, `Claude-SearchBot`, `PerplexityBot`, `Google-Extended`, `CCBot`, and `Applebot-Extended`.

#### Am I charged for unreachable URLs or 404 pages?

No. Unreachable hosts and failed fetches are recorded with `status: "error"` and are never charged `page-audited` or `site-ai-audit`.

#### Does it support compressed `.xml.gz` sitemaps?

Yes. Gzipped sitemaps are decompressed via `node:zlib` under a strict 15 MiB ceiling to keep container memory safe at 256 MB.

#### Which MCP URL should I use: `mcp.apify.com` or Standby?

Use `https://mcp.apify.com/?tools=salmon_chaparral/seo-llms-auditor` for OAuth 2.1 clients (Claude Desktop, Cursor, VS Code, Windsurf). Use `https://salmon-chaparral--seo-llms-auditor.apify.actor/mcp` with Bearer token auth for direct Standby calls.

### Security & Resource Limits

- **SSRF protection:** Blocks loopback, private RFC1918/ULA/link-local IPv4 & IPv6 ranges, cloud metadata hosts, non-HTTP(S) schemes, and DNS records resolving to non-public IPs across every redirect hop.
- **Memory safety:** Streams responses with hard byte caps (2 MiB HTML, 5 MiB sitemap download, 15 MiB gunzip limit) to stay comfortably within 256MB RAM.

# Changelog

This Actor's version history is a separate document: https://apify.com/salmon_chaparral/seo-llms-auditor/changelog.md

# Actor input Schema

## `startUrls` (type: `array`):

List of page URLs or domains to audit (e.g., https://docs.apify.com). Defaults to https://docs.apify.com if left empty.

## `maxPages` (type: `integer`):

Maximum number of pages to audit across the run (starts with startUrls, then fills from sitemap or internal links).

## `discoverFromSitemap` (type: `boolean`):

Discover URLs from robots.txt Sitemap directives, /sitemap.xml, and /sitemap_index.xml (supports nested indexes and .xml.gz) to fill up to maxPages.

## `discoverFromLinks` (type: `boolean`):

Follow same-host internal HTML links if startUrls and sitemaps supply fewer URLs than maxPages.

## `includeAiReadiness` (type: `boolean`):

Audit /robots.txt AI crawler rules (GPTBot, OAI-SearchBot, ChatGPT-User, ClaudeBot, Claude-SearchBot, PerplexityBot, Google-Extended, CCBot, Applebot-Extended) plus /llms.txt and /llms-full.txt per site.

## `maxSitemapUrls` (type: `integer`):

Upper bound on URLs extracted per site across sitemaps and nested sitemap indexes.

## `checkBrokenLinks` (type: `boolean`):

Check up to 10 unique links per audited page via HEAD/GET to detect 4xx/5xx broken links. Off by default for lowest latency.

## `concurrency` (type: `integer`):

Number of pages audited in parallel.

## `requestTimeoutMs` (type: `integer`):

Timeout in milliseconds for each HTTP request.

## Actor input object example

```json
{
  "startUrls": [
    "https://docs.apify.com"
  ],
  "maxPages": 5,
  "discoverFromSitemap": true,
  "discoverFromLinks": true,
  "includeAiReadiness": true,
  "maxSitemapUrls": 500,
  "checkBrokenLinks": false,
  "concurrency": 5,
  "requestTimeoutMs": 8000
}
```

# Actor output Schema

## `items` (type: `string`):

No description

## `summary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "startUrls": [
        "https://docs.apify.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("salmon_chaparral/seo-llms-auditor").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "startUrls": ["https://docs.apify.com"] }

# Run the Actor and wait for it to finish
run = client.actor("salmon_chaparral/seo-llms-auditor").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "startUrls": [
    "https://docs.apify.com"
  ]
}' |
apify call salmon_chaparral/seo-llms-auditor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,salmon_chaparral/seo-llms-auditor"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/W564ZQxxanExzD14D/builds/q5seo7ucCxMNyywlo/openapi.json
