# AI Readiness, llms.txt, MCP & Crawler Auditor (AEO Score) (`mycelia/ai-readiness-llms-txt-auditor`) Actor

Audit any domain list for AI-readiness: validates /llms.txt and /llms-full.txt (never a SPA soft-404), .md twins, .well-known MCP and agent-skills manifests, robots.txt policy for 8 AI crawlers, JSON-LD, and scores AEO 0-100. HTTP only; $2.00 per 1,000 reachable domains, dead ones cost $0.

- **URL**: https://apify.com/mycelia/ai-readiness-llms-txt-auditor.md
- **Developed by:** [Mycelia Labs](https://apify.com/mycelia) (community)
- **Categories:** AI, SEO tools, Developer tools
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 audited reachable domains

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## AI Readiness, llms.txt, MCP & Crawler Auditor (AEO Score)

Audit any list of company domains (or a Google Maps / directory export) for **AI agent and LLM search readiness** in a single parallel HTTP pass—no headless browser required.

### What This Actor Audits Per Domain

1. **`/llms.txt` & `/llms-full.txt` Validation (Zero Soft-404 False Positives):** Verifies H1/section Markdown structure, link count, and byte size while automatically rejecting SPA `index.html` soft-200 fallbacks.
2. **`.md` Markdown Twin & Content Negotiation:** Tests whether the site supports `.md` twin URLs or `Accept: text/markdown` negotiation for low-token LLM ingestion.
3. **`.well-known` Agent & MCP Discovery Manifests:** Probes `/.well-known/mcp.json`, `/.well-known/agent-skills/index.json`, `/.well-known/ard.json`, `/.well-known/agent.json`, and `/.well-known/ai-plugin.json` with strict JSON validation.
4. **RFC 9309 `robots.txt` AI Bot Policy Matrix:** Evaluates longest-match `Allow` / `Disallow` precedence across **8 AI crawlers**—separating **AI Search/Citation bots** (`OAI-SearchBot`, `PerplexityBot`, `Claude-SearchBot`, `Applebot-Extended`) from **AI Training bots** (`GPTBot`, `ClaudeBot`, `Google-Extended`, `CCBot`)—plus `meta noai` / `X-Robots-Tag` headers.
5. **Structured Entity & Thin-SPA Detection:** Extracts `@type` entities from `application/ld+json` blocks and flags client-rendered SPA shells (`thin_spa_shell: true`) that appear blank to non-JS AI agents.
6. **Actionable `ai_readiness_score` (0–100) & `priority_fixes`:** Generates deterministic AEO grades (`A`–`F`) and concrete fix / sales-outreach hooks (`unblock_ai_search_bots:OAI-SearchBot`, `publish_llms_txt_index`, `prerender_thin_spa_shell_for_http_agents`).

### Fair Pay-Per-Event Billing

- **Event `domain-audited` (`$0.002` / reachable domain):** `$2.00 per 1,000` reachable domains.
- **Unreachable / Dead Domains Cost `$0.00`:** Every dataset row is written before `Actor.charge()` fires, and `SUMMARY.charged_events == SUMMARY.reachable` reconciles your exact spend.

### Measured benchmark (25 real domains, cloud build `0.1.2`)

Run `9ETY21Vr5Tb8x2nIN` (2026-12-01, 1024 MB, `maxConcurrency: 8`, `timeoutSecs: 25`) over
10 AI-forward dev platforms (`cloudflare.com`, `anthropic.com`, `stripe.com`, `apify.com`,
`vercel.com`, `supabase.com`, `mintlify.com`, `cursor.com`, `langchain.com`, `resend.com`),
13 mainstream SaaS / e-commerce domains (`shopify.com`, `allbirds.com`, `notion.com`, `linear.app`,
`figma.com`, `slack.com`, `hubspot.com`, `atlassian.com`, `gymshark.com`, `beardbrand.com`,
`dropbox.com`, `webflow.com`, `mailchimp.com`) and 2 unreachable `.invalid` controls.

| Measurement | Result |
|---|---|
| Rows / reachable / charged | 25 · 23 reachable · `SUMMARY.charged_events == reachable == 23`; the 2 DNS-failed controls cost `$0` |
| Wall clock for the run | 9.3 s (in-process 6.1 s), zero reboots, peak memory 194 MB of the 1 GB allocation |
| Per-domain latency (cloud only) | min 351 ms · **median 1,017 ms** · p90 1,762 ms · max 2,501 ms |
| `llms.txt` found | **22 of 23** reachable domains — 20 at root, 2 only on `docs.` (`llms_txt_scope`) |
| `llms-full.txt` | 9 of 23 · Markdown twin / `Accept` negotiation: 8 of 23 |
| `.well-known` manifests | 10 domains: `agent-skills` ×6, `mcp` ×4, `ard` ×2, `a2a-agent` ×1, `ai-plugin` ×1 |
| AEO score | min 48 · median 76 · max 100 |
| Grades | A 9 · B 13 · C 1 · F 2 (the F rows are the two unreachable controls) |
| AI crawlers | 23/23 allow the AI-search bots; 22/23 allow training bots — `figma.com` blocks `GPTBot`, `ClaudeBot`, `Google-Extended` and `CCBot` while still allowing `OAI-SearchBot`/`PerplexityBot` |

100/100 A (`llms.txt` + `llms-full.txt` + markdown + `.well-known` + sitemap + JSON-LD): `cloudflare.com`,
`supabase.com`, `resend.com`. Lowest reachable: `figma.com` = 48 C
(`publish_llms_txt_index`, `enable_markdown_twin_or_accept_negotiation`, `add_well_known_agent_or_mcp_manifest`).

#### What this benchmark caught, and what the numbers really mean

- **`llms_txt_bytes` / `llms_full_txt_bytes` are floors, not sizes.** Bodies are read to 350 KB, and
  `llms_txt_truncated` / `llms_full_txt_truncated` say when the number is capped (measured:
  `mailchimp.com/llms.txt` is really 526,839 B; `stripe.com`, `supabase.com` and `hubspot.com` had a
  truncated `llms-full.txt`).
- **A root miss is often not "no llms.txt".** `docs.anthropic.com/llms.txt` (112 KB) and
  `python.langchain.com/llms.txt` exist while the apex serves a 404, so those domains are marked
  `has_llms_txt: true` with `llms_txt_scope: "docs_subdomain"` and the fix
  `publish_llms_txt_at_root`. Credit is never silent.
- **Redirects are followed, and the audit reports where the agent actually lands.** `gymshark.com`
  geo-redirects to `us.checkout.gymshark.com` (a Shopify market page), so its `title` /
  `meta_description` are legitimately empty for that page and `complete_title_and_meta_description`
  is a true positive there — but `final_url` tells you the page you were served, so check it before
  acting on a metadata fix.
- **Latency claims are from this cloud run only** (Apify egress); the same corpus is several times
  slower from other continents.

### Input Example

```json
{
  "urls": [
    "cloudflare.com",
    "anthropic.com",
    "stripe.com"
  ],
  "checkWellKnownManifests": true,
  "checkMarkdownTwin": true,
  "maxConcurrency": 15,
  "timeoutSecs": 15
}
```

### Calling via CLI, Python & MCP

#### Apify CLI

```bash
apify actors call mycelia/ai-readiness-llms-txt-auditor -i '{"urls":["cloudflare.com","stripe.com"]}'
```

#### Python (`apify-client`)

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("mycelia/ai-readiness-llms-txt-auditor").call(
    run_input={"urls": ["cloudflare.com", "stripe.com", "apify.com"]}
)
items = list(client.dataset(run["defaultDatasetId"]).iterate_items())
summary = client.key_value_store(run["defaultKeyValueStoreId"]).get_record("SUMMARY")["value"]
```

#### MCP Server (`mcp.apify.com`)

```json
{
  "mcpServers": {
    "apify": {
      "url": "https://mcp.apify.com/?tools=mycelia/ai-readiness-llms-txt-auditor"
    }
  }
}
```

# Actor input Schema

## `urls` (type: `array`):

Bare domains (e.g. cloudflare.com), full URLs, or objects containing url/website fields. Duplicate domains are deduplicated automatically before billing.

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

Optional URL objects from upstream scrapers (supports {url} or {website}).

## `checkWellKnownManifests` (type: `boolean`):

Probes /.well-known/mcp.json, /.well-known/agent-skills/index.json, /.well-known/agent.json, and /.well-known/ai-plugin.json with strict JSON validation.

## `checkMarkdownTwin` (type: `boolean`):

Tests whether the site serves clean text/markdown via .md URL suffix or Accept: text/markdown content negotiation.

## `maxConcurrency` (type: `integer`):

Number of domains audited in parallel (1 to 40).

## `timeoutSecs` (type: `integer`):

Wall-clock timeout budget per domain (5 to 30 seconds).

## Actor input object example

```json
{
  "urls": [
    "cloudflare.com",
    "anthropic.com",
    "stripe.com"
  ],
  "startUrls": [],
  "checkWellKnownManifests": true,
  "checkMarkdownTwin": true,
  "maxConcurrency": 15,
  "timeoutSecs": 15
}
```

# Actor output Schema

## `auditedDomains` (type: `string`):

No description

## `runSummary` (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 = {
    "urls": [
        "cloudflare.com",
        "anthropic.com",
        "stripe.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("mycelia/ai-readiness-llms-txt-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 = { "urls": [
        "cloudflare.com",
        "anthropic.com",
        "stripe.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("mycelia/ai-readiness-llms-txt-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 '{
  "urls": [
    "cloudflare.com",
    "anthropic.com",
    "stripe.com"
  ]
}' |
apify call mycelia/ai-readiness-llms-txt-auditor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,mycelia/ai-readiness-llms-txt-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/jAmKoP2x9WdsoYy2s/builds/NnttXCC8KrcQRxmrC/openapi.json
