# MCP and AI Agent Endpoint Scanner: MCP, OAuth, OpenAPI, A2A (`bodacious_mistral/agent-endpoint-scan`) Actor

Finds out whether a domain offers machine-readable doors for AI agents and whether they work: MCP server, OAuth metadata, OpenAPI, A2A agent card, llms.txt and x402 payments. Read-only, never signs in, never calls a tool.

- **URL**: https://apify.com/bodacious_mistral/agent-endpoint-scan.md
- **Developed by:** [Red Center Studio](https://apify.com/bodacious_mistral) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 domains scanned

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

## MCP and AI Agent Endpoint Scanner: MCP, OAuth, OpenAPI, A2A

Finds out whether a domain offers machine-readable doors for AI agents and whether they work: MCP server, OAuth metadata, OpenAPI, A2A agent card, llms.txt and x402 payments. Read-only, never signs in, never calls a tool.

### What it does

Give it a list of domains. For each one it checks whether the domain offers machine-readable doors for AI agents, and whether those doors actually work. It is read-only: it never sends credentials, never signs in and never calls a tool.

Checks per domain, each reported as found, valid and details:

1. MCP server. First the discovery files (`/.well-known/mcp.json`, `/.well-known/mcp`, including server card fields), then the candidate endpoints `/mcp`, `/sse`, `/api/mcp` and, when subdomains are on, `mcp.<main domain>/` and `mcp.<main domain>/mcp`. The main domain is the organisation's own, so scanning `api.example.com` also checks `mcp.example.com`, and a server found there counts in that row. Each candidate gets a JSON-RPC `initialize` request (protocol version 2025-06-18). The reply can be JSON or an event stream. A working server returns its name, version, protocol version and capabilities. If initialize works without sign-in, the Actor sends `notifications/initialized` and `tools/list` and keeps only the tool count and names (up to 50). A 401 with a `WWW-Authenticate` bearer challenge is reported as "MCP present, needs sign-in", with the `resource_metadata` address if the server gives one. When the challenge gives no `resource_metadata`, the Actor also tries an address next to it that cannot exist (`rcs-no-such-endpoint`): if that is challenged the same way, it is a sign-in wall in front of everything and no MCP server is reported. A JSON-RPC error counts only when the reply is a JSON-RPC 2.0 message, so an ordinary API error is not taken for an MCP server. The older SSE transport is detected from its endpoint event and reported separately.
2. OAuth for agents. `/.well-known/oauth-protected-resource` (RFC 9728), `/.well-known/oauth-authorization-server` (RFC 8414) and `/.well-known/openid-configuration`. It records the issuer and whether dynamic client registration and PKCE with S256 are advertised. If the protected resource points at an authorization server, that server's metadata is read too.
3. A2A agent card. `/.well-known/agent-card.json` and `/.well-known/agent.json`: name, number of skills and url.
4. OpenAPI. `/openapi.json`, `/openapi.yaml`, `/swagger.json`, `/.well-known/openapi`, `/api/openapi.json`, `/v1/openapi.json` and `/docs/openapi.json`, plus `api.<main domain>/openapi.json` and `docs.<main domain>/openapi.json` when subdomains are on. It records the version, title and path count.
5. Legacy plugin manifest at `/.well-known/ai-plugin.json`.
6. `llms.txt` and `llms-full.txt`: found and size only. Auditing the content of llms.txt is a different job.
7. Paid agent access. Any HTTP 402 answer from the MCP or API candidates already requested is read for an x402 style body (an `accepts` list with `payTo` and `network`). No extra paths are requested for this.

A page that returns an HTML error page with status 200 at one of these paths is treated as not found. The Actor checks the content type and the shape of the body. The same applies to a JSON body that only reports an error, and to JSON served where llms.txt should be.

#### What is charged

- A domain whose homepage answers with a status from 200 to 299 is a charged result row, also when nothing is published: "nothing found" is the answer you asked for.
- A domain whose homepage answers with any other status (an API domain often answers 404, 401 or 403 at the root) is a charged result row only when something real was found: an MCP server (working, asking for sign-in, or the older SSE transport), a valid MCP discovery file, valid OAuth metadata, a valid A2A agent card, a valid OpenAPI document, a valid plugin manifest, llms.txt or llms-full.txt, or an x402 payment answer.
- When the homepage did not load and none of these were found, the row is a free error row with the code `HTTP_ERROR`.
- When the homepage loads but nothing is found because every other check was rate limited, answered with a server error or got no reply, the row is a free error row with the code `CHECKS_FAILED`.
- An address that cannot be reached, or is refused for safety, is a free error row.

#### Score

The score is 0 to 100 from a fixed weight table:

| Check | Points |
| --- | --- |
| MCP server reachable and initializes without sign-in | 35 |
| OAuth metadata (protected resource or authorization server) | 15 |
| OpenAPI document with paths | 15 |
| A2A agent card | 10 |
| llms.txt | 10 |
| Dynamic client registration and PKCE S256 both advertised | 10 |
| MCP discovery file | 5 |

An MCP server that answers 401 with a bearer challenge is present but cannot be initialized without credentials, so it earns 17 of the 35 points. The row has a `scoreBreakdown` so you can see where every point came from.

Level: `none` (nothing found), `discoverable` (files or metadata only), `usable` (an MCP server that answers or asks for sign-in, or a valid OpenAPI document) and `agent-ready` (usable with a score of 70 or more).

Each row also has a ranked findings list. Every finding says what was found and what to do about it.

### Who it is for

Developers and API companies who want to know what an AI assistant can find on their domain, investors and analysts who compare how open a set of companies is to agents, and agencies that audit client sites and want a list of fixes.

### Input

Run it from the Console, the API, or as an agent tool. Minimal input:

```json
{
  "domains": [
    "redcenterstudio.com"
  ]
}
```

Every field is described in the input form. Free to run: you pay only for the domain scanned you get back.

### Output

One row per input item. Rows with `status: "ok"` are results. Rows with `status: "error"` explain what went wrong and are never charged. A run summary is stored in the `OUTPUT` record.

Real output from a live run:

```json
{
  "status": "ok",
  "inputRef": "redcenterstudio.com",
  "auditedAt": "2026-12-05T21:47:36.003Z",
  "domain": "redcenterstudio.com",
  "scannedOrigin": "https://redcenterstudio.com",
  "score": 52,
  "level": "usable",
  "scoreBreakdown": {
    "mcp": 17,
    "oauth": 15,
    "openapi": 0,
    "a2a": 0,
    "llmsTxt": 10,
    "dcrAndPkce": 10,
    "discoveryFile": 0
  },
  "mcp": {
    "found": true,
    "valid": false,
    "needsAuth": true,
    "endpoint": "https://mcp.redcenterstudio.com/mcp",
    "transport": null,
    "serverName": null,
    "serverVersion": null,
    "protocolVersion": null,
    "capabilities": [],
    "toolCount": null,
    "toolNames": [],
    "moreToolsAvailable": false,
    "authResourceMetadata": "https://mcp.redcenterstudio.com/.well-known/oauth-protected-resource/mcp",
    "initializeError": null,
    "discoveryFile": {
      "found": false,
      "valid": false,
      "url": null,
      "name": null
    },
    "endpointsChecked": [
      "https://redcenterstudio.com/mcp",
      "https://redcenterstudio.com/sse",
      "https://redcenterstudio.com/api/mcp",
      "https://mcp.redcenterstudio.com/",
      "https://mcp.redcenterstudio.com/mcp"
    ]
  },
  "oauth": {
    "found": true,
    "valid": true,
    "protectedResource": true,
    "protectedResourceUrl": "https://mcp.redcenterstudio.com/.well-known/oauth-protected-resource/mcp",
    "authorizationServer": true,
    "metadataUrl": "https://mcp.redcenterstudio.com/.well-known/oauth-authorization-server",
    "issuer": "https://mcp.redcenterstudio.com",
    "dynamicClientRegistration": true,
    "pkceS256": true
  },
  "a2a": {
    "found": false,
    "valid": false,
    "url": null,
    "name": null,
    "skillsCount": null,
    "agentUrl": null
  },
  "openapi": {
    "found": false,
    "valid": false,
    "url": null,
    "version": null,
    "title": null,
    "pathCount": null
  },
  "aiPlugin": {
    "found": false,
    "valid": false,
    "url": null,
    "name": null
  },
  "llmsTxt": {
    "llmsTxt": {
      "found": true,
      "url": "https://redcenterstudio.com/llms.txt",
      "bytes": 82597
    },
    "llmsFullTxt": {
      "found": true,
      "url": "https://redcenterstudio.com/llms-full.txt",
      "bytes": 513187
    }
  },
  "payments": {
    "paymentRequiredSeen": false,
    "x402": false,
    "url": null,
    "x402Version": null,
    "networks": [],
    "schemes": [],
    "payTo": null,
    "price": null
  },
  "findings": [
    {
      "severity": "medium",
      "check": "openapi",
      "issue": "No OpenAPI document was found at the common addresses.",
      "fix": "Publish your API description at /openapi.json with an openapi version, info and paths."
    },
    {
      "severity": "low",
      "check": "a2a",
      "issue": "No A2A agent card was found.",
      "fix": "If you run an agent that other agents can call, publish /.well-known/agent-card.json with its name, skills and url."
    },
    {
      "severity": "low",
      "check": "discovery",
      "issue": "No MCP discovery file was found.",
      "fix": "Publish /.well-known/mcp.json with the server name and endpoint so clients can find it without guessing."
    }
  ],
  "nextStep": "Fix the top findings, then scan again. If you want it done for you: https://redcenterstudio.com/services/mcp-servers-ai-apps/"
}
```

### Pricing

Pay per event. No monthly fee. The platform start event is charged automatically by Apify.

| Event | Charged when | Price |
| --- | --- | --- |
| Domain scanned (`domain-scanned`) | Charged once for each domain that returns a result row. Error rows are free. | $0.004 per domain scanned ($4 per 1,000) |

Set a maximum cost per run on the run options. The Actor stops cleanly when the limit is reached and never charges beyond it.

### Use with Apify MCP

AI assistants can call this Actor as a tool through the Apify MCP server:

`https://mcp.apify.com?tools=bodacious_mistral/agent-endpoint-scan`

### Limits

- It never signs in, never sends credentials and never calls a tool. Private endpoints, endpoints behind sign-in and anything that needs an API key are invisible by design. A server that needs sign-in is reported as present, not as working.
- Only the common addresses listed above are tried. An MCP server at an unusual path is found only if a discovery file points to it.
- The tool list is the first page the server returns without sign-in. `moreToolsAvailable` says when the server reported another page.
- For YAML OpenAPI files the path count is a line count and approximate.
- File sizes are read up to 2 MB.
- The 402 check only reads answers to requests already made for the other checks.
- Up to 100 domains per run, 5 at a time by default. Each domain is limited to 45 seconds.
- Private and internal addresses are refused for safety and come back as an error row.

### Next step

[Get an MCP server built for your product](https://redcenterstudio.com/services/mcp-servers-ai-apps/). Built by Red Center Studio. Related: [Red Center Studio MCP builds](https://redcenterstudio.com/services/mcp-servers-ai-apps/).

# Actor input Schema

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

Domains to scan, one per line. A bare domain such as example.com or a full address. Only public, read-only addresses are requested. No credentials are sent and no tool is ever called.

## `probeSubdomains` (type: `boolean`):

Also try the mcp, api and docs subdomains of the main domain for an MCP server and an OpenAPI document. For api.example.com that means mcp.example.com. Turn it off to scan only the exact host you give.

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

How many domains to scan at the same time. Lower it if you scan many domains on one host.

## Actor input object example

```json
{
  "domains": [
    "redcenterstudio.com"
  ],
  "probeSubdomains": true,
  "concurrency": 5
}
```

# Actor output Schema

## `results` (type: `string`):

One row per input item.

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

Totals, charged events, stop reason and the next step. Stored as the OUTPUT record.

# 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": [
        "redcenterstudio.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("bodacious_mistral/agent-endpoint-scan").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": ["redcenterstudio.com"] }

# Run the Actor and wait for it to finish
run = client.actor("bodacious_mistral/agent-endpoint-scan").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": [
    "redcenterstudio.com"
  ]
}' |
apify call bodacious_mistral/agent-endpoint-scan --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bodacious_mistral/agent-endpoint-scan"
        }
    }
}
```

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/DhlLdCjN7KTFHHub8/builds/X0A998uLG9i8yIQJu/openapi.json
