# A2A Agent Card, MCP, llms.txt, x402 & Agentic Web Auditor (`runglab/a2a-agentic-web-auditor`) Actor

Audit any domain for Agentic Web readiness: A2A Agent Card (/.well-known/agent-card.json & agent.json), MCP discovery & RFC 9728 OAuth, Open Agentic Web manifests, llms.txt, robots.txt AI crawler policies, x402 payment signals & Accept: text/markdown—A-F grades, zero proxies.

- **URL**: https://apify.com/runglab/a2a-agentic-web-auditor.md
- **Developed by:** [RungLab](https://apify.com/runglab) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 domain agentic web auditeds

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/running/actors-in-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

## A2A Agent Card, MCP, llms.txt, x402 & Agentic Web Auditor

Real-time **Agentic Web readiness, AI discovery protocol & crawler governance auditor** checking **A2A Agent Cards**, **MCP Server Discovery & RFC 9728 OAuth**, **Open Agentic Web manifests**, **`llms.txt` / `llms-full.txt`**, **RFC 9309 `robots.txt` AI crawler policies**, **x402 payment signals**, and **`Accept: text/markdown` content negotiation** — with **zero API keys, zero proxies, 256 MB RAM, and Apify MCP support**.

Built for **AI agent builders, DevRel/Docs teams, SEO/GEO engineers, security reviewers, and platform teams** benchmarking how discoverable and interoperable any domain is for autonomous AI agents.

***

### What This Actor Audits (5 Weighted Pillars, `0–100` Score & `A–F` Grade)

1. **A2A & Open Agentic Discovery (`30 pts`)**:
   - Probes canonical `/.well-known/agent-card.json` and legacy `/.well-known/agent.json` for Google/Linux Foundation **Agent2Agent (A2A)** cards (`name`, `url`, `version`, `protocolVersion`, `skills`, `capabilities`, `securitySchemes`, `x402` extensions).
   - Probes `/.well-known/agent-manifest.json` and `/agent-manifest.json` for **Open Agentic Web** manifests (`entry_agent`, `agents`, `tools`, `profile`).
2. **MCP Discovery & OAuth (`20 pts`)**:
   - Probes `/.well-known/mcp.json` and `/.well-known/mcp/server-card.json` for **Model Context Protocol** server metadata (`serverInfo`, `transport`, `tools`).
   - Probes **RFC 9728** `/.well-known/oauth-protected-resource` and **RFC 8414** `/.well-known/oauth-authorization-server`.
3. **LLM Documentation (`20 pts`)**:
   - Parses `/llms.txt` against `llmstxt.org` structure (`# H1` title, `> Summary` blockquote, `## H2` sections, Markdown links, estimated token count, and protocol mentions).
   - Optionally probes `/llms-full.txt` via bounded `HEAD` (with bounded `GET` fallback).
4. **AI Crawler Governance (`15 pts`)**:
   - Full **RFC 9309** `robots.txt` parser evaluating **12 major AI crawlers** (`GPTBot`, `OAI-SearchBot`, `ChatGPT-User`, `ClaudeBot`, `Claude-Web`, `anthropic-ai`, `PerplexityBot`, `Google-Extended`, `Applebot-Extended`, `CCBot`, `Meta-ExternalAgent`, `Bytespider`), `Sitemap` links, and `Content-Signal` directives.
5. **HTTP Agent Transport, Security, Markdown & x402 (`15 pts`)**:
   - Tests HTTPS reachability, `Strict-Transport-Security` (HSTS), `Accept: text/markdown` content negotiation (`x-markdown-tokens`), **RFC 8288** `Link` headers (`agent-card`, `llms-txt`, `mcp`, `describedby`, `service-desc`, `api-catalog`, `alternate`), open discovery CORS headers, and **x402** payment signals (`HTTP 402`, `PAYMENT-REQUIRED`/`X-PAYMENT`, A2A `x402` extensions, `/.well-known/x402.json`).

- **Strict SSRF Protection**: Blocks `localhost`, `.local`/`.internal`/`.home.arpa`, private/loopback/link-local/CGNAT IPs (including IPv4-mapped IPv6), embedded credentials, and validates every DNS result and HTTP redirect hop before connecting.
- **Zero-Config Start**: Click **Start** immediately to audit `cloudflare.com`, `modelcontextprotocol.io`, `stripe.com`, and `agentic.runglab.dev`.

***

### Input Configuration

| Parameter | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `domains` | `array<string>` | 4 showcase domains | Domains or URLs to audit. Defaults to `cloudflare.com`, `modelcontextprotocol.io`, `stripe.com`, `agentic.runglab.dev` when omitted and `urlsText` is empty. |
| `urlsText` | `string` | `""` | Optional newline/comma-separated domains or URLs merged and deduplicated with `domains`. |
| `policyMode` | `string` | `"balanced"` | `"balanced"` (HTTPS + score >= 45 + no critical/high blockers), `"strict"` (score >= 65 + discovery protocol + `llms.txt` + non-restrictive crawlers), or `"audit-only"`. |
| `includeRawManifests` | `boolean` | `false` | Include sanitized, truncated previews of discovered A2A, MCP, Open Agentic, and `llms.txt` manifests. |
| `checkLlmsFull` | `boolean` | `true` | Probe `/llms-full.txt` via bounded `HEAD` with bounded `GET` fallback. |
| `maxDomains` | `integer` | `50` | Maximum unique normalized domains audited per run (`1`–`200`). |
| `compactMode` | `boolean` | `false` | Emit token-efficient JSON tailored for **Apify MCP** and AI coding agents. |
| `timeoutSeconds` | `integer` | `15` | Per-request HTTP timeout in seconds (`5`–`60`). |
| `concurrency` | `integer` | `5` | Maximum concurrent domain audits (`1`–`15`). |

***

### Example Output Record (Live Verified)

```json
{
  "domain": "modelcontextprotocol.io",
  "baseUrl": "https://modelcontextprotocol.io",
  "readinessScore": 77,
  "readinessGrade": "B",
  "policyMode": "balanced",
  "policyCompliant": true,
  "hasA2aCard": true,
  "a2aCardPath": "/.well-known/agent-card.json",
  "a2aAgentName": "Model Context Protocol",
  "a2aProtocolVersion": "0.3",
  "a2aSkillsCount": 2,
  "hasMcpDiscovery": true,
  "mcpDiscoveryPath": "/.well-known/mcp.json",
  "hasOauthProtectedResource": false,
  "hasOpenAgenticManifest": false,
  "discoveryCorsOpen": true,
  "hasX402Signal": false,
  "hasLlmsTxt": true,
  "llmsTxtTokens": 12790,
  "hasLlmsFullTxt": true,
  "supportsMarkdownNegotiation": true,
  "hasRobotsTxt": true,
  "aiCrawlerStance": "selective",
  "gptBotStatus": "restricted",
  "claudeBotStatus": "restricted",
  "perplexityBotStatus": "restricted",
  "contentSignalHeaderOrRobots": "ai-train=yes, search=yes, ai-input=yes",
  "pillarScores": {
    "a2aAgentic": 25,
    "mcpOauth": 12,
    "llmsTxt": 15,
    "robotsAi": 12,
    "httpTransportX402": 13
  }
}
```

***

### SDK & AI Agent Integration

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

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")

run = client.actor("runglab/a2a-agentic-web-auditor").call(
    run_input={
        "domains": [
            "cloudflare.com",
            "modelcontextprotocol.io",
            "stripe.com",
            "agentic.runglab.dev",
        ],
        "policyMode": "balanced",
    }
)

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(
        item["domain"],
        item["readinessGrade"],
        item["readinessScore"],
        item["hasA2aCard"],
        item["hasLlmsTxt"],
        item["aiCrawlerStance"],
    )

summary = client.key_value_store(run["defaultKeyValueStoreId"]).get_record("RUN_SUMMARY")
print(summary["value"]["protocolAdoption"])
```

#### Node.js / TypeScript (`apify-client`)

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

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });

const run = await client.actor('runglab/a2a-agentic-web-auditor').call({
    domains: ['cloudflare.com', 'modelcontextprotocol.io', 'stripe.com'],
    policyMode: 'balanced',
    compactMode: true,
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
for (const rec of items) {
    console.log(`${rec.domain} | grade=${rec.readinessGrade} (${rec.readinessScore}) | stance=${rec.aiCrawlerStance}`);
}
```

#### MCP Agent Configuration (Claude Code / Cursor / Windsurf via Apify MCP)

```json
{
  "mcpServers": {
    "apify-agentic-web-auditor": {
      "url": "https://mcp.apify.com/?actors=runglab/a2a-agentic-web-auditor",
      "headers": {
        "Authorization": "Bearer <YOUR_APIFY_TOKEN>"
      }
    }
  }
}
```

> **Agent Tip:** Enable `"compactMode": true` when calling via Apify MCP to receive concise readiness grades, protocol flags, crawler stances, and actionable recommendations without bloating LLM context windows.

***

### Pay-Per-Event (PPE) Pricing

| Event | Price | Description |
| :--- | :--- | :--- |
| `actor-start` | `$0.005` | Charged once per Actor run start. |
| `domain-audited` | `$0.003` | Charged once per audited domain pushed to the dataset. |

Runs automatically honor your configured maximum PPE spending limit and stop cleanly if reached, persisting partial results and diagnostics in Key-Value Store record `RUN_SUMMARY`.

# Actor input Schema

## `domains` (type: `array`):

List of domain names or URLs (e.g. 'cloudflare.com', 'https://modelcontextprotocol.io', 'stripe.com', 'agentic.runglab.dev'). Defaults to 4 showcase domains when omitted and urlsText is empty.

## `urlsText` (type: `string`):

Optional newline- or comma-separated list of domains or URLs. Merged and deduplicated with 'domains' and capped at maxDomains.

## `policyMode` (type: `string`):

Compliance gate applied to each audited domain: 'balanced' requires HTTPS reachability, readinessScore >= 45, and no high/critical blocking findings; 'strict' requires readinessScore >= 65, open or selective AI crawler stance, and at least one agent discovery surface (A2A/MCP/Open Agentic) plus llms.txt; 'audit-only' reports all scores, grades, and findings with policyCompliant=true.

## `includeRawManifests` (type: `boolean`):

When enabled, includes sanitized, truncated previews of discovered A2A Agent Cards, MCP server cards, Open Agentic Web manifests, and llms.txt headers.

## `checkLlmsFull` (type: `boolean`):

Probe /llms-full.txt using a bounded HEAD request (with bounded GET fallback) to detect extended full-corpus LLM documentation.

## `maxDomains` (type: `integer`):

Maximum number of unique normalized domains to audit per run (1-200).

## `compactMode` (type: `boolean`):

When enabled, emits a streamlined, token-efficient JSON payload tailored for AI agents calling this Actor via Apify MCP.

## `timeoutSeconds` (type: `integer`):

Per-request HTTP timeout in seconds when probing domain endpoints (5-60).

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

Maximum number of domains audited concurrently (1-15).

## Actor input object example

```json
{
  "domains": [
    "cloudflare.com",
    "modelcontextprotocol.io",
    "stripe.com",
    "agentic.runglab.dev"
  ],
  "urlsText": "",
  "policyMode": "balanced",
  "includeRawManifests": false,
  "checkLlmsFull": true,
  "maxDomains": 50,
  "compactMode": false,
  "timeoutSeconds": 15,
  "concurrency": 5
}
```

# Actor output Schema

## `overview` (type: `string`):

Summary table showing readiness grade, score, A2A/MCP/Open Agentic discovery, llms.txt, Markdown negotiation, AI crawler stance, x402 signals, and policy compliance.

## `agentProtocols` (type: `string`):

Protocol-focused view highlighting A2A Agent Card paths/versions/skills, MCP discovery, RFC 9728 OAuth, Open Agentic Web manifests, CORS, and x402 payment signals.

## `llmAndCrawlers` (type: `string`):

Content & crawler view detailing llms.txt token estimates, llms-full.txt, Accept: text/markdown negotiation, robots.txt AI bot statuses, and Content-Signal directives.

## `allRecords` (type: `string`):

Full structured JSON dataset including pillar breakdowns, parsed manifests, 12-bot AI crawler matrix, RFC 8288 Link headers, findings, and recommendations.

## `runSummary` (type: `string`):

Aggregated grade distribution, protocol adoption counts, blocked/invalid targets, and execution diagnostics stored in Key-Value Store record RUN_SUMMARY.

# 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 = {
    "domains": [
        "cloudflare.com",
        "modelcontextprotocol.io",
        "stripe.com",
        "agentic.runglab.dev"
    ],
    "urlsText": ""
};

// Run the Actor and wait for it to finish
const run = await client.actor("runglab/a2a-agentic-web-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 = {
    "domains": [
        "cloudflare.com",
        "modelcontextprotocol.io",
        "stripe.com",
        "agentic.runglab.dev",
    ],
    "urlsText": "",
}

# Run the Actor and wait for it to finish
run = client.actor("runglab/a2a-agentic-web-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 '{
  "domains": [
    "cloudflare.com",
    "modelcontextprotocol.io",
    "stripe.com",
    "agentic.runglab.dev"
  ],
  "urlsText": ""
}' |
apify call runglab/a2a-agentic-web-auditor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,runglab/a2a-agentic-web-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/cjSMJjkx3TZbWODcf/builds/NLdeojt1CwKhTCXqo/openapi.json
