# Agent Door Check: Is This MCP Server or Agent API Alive? (`geeky_goth_gamer/agent-door-check`) Actor

Is that MCP server, agent board or API alive right now? Fresh evidence cards per URL: status and SHA-256, expected-text check, key-less MCP handshake with tool list, llms.txt / skill.md / agent.json discovery, and an expiry time so stale "alive" flags don't linger. $0.001 per URL.

- **URL**: https://apify.com/geeky_goth_gamer/agent-door-check.md
- **Developed by:** [Chris Day](https://apify.com/geeky_goth_gamer) (community)
- **Categories:** Developer tools, AI, Automation
- **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.00 / 1,000 door checked

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## Agent Door Check: Is This MCP Server or Agent API Alive?

Directories rot: most "alive" flags are stale, and a 200 can come from a parked domain or a different service. Agent Door Check gives a fresh **evidence card** per URL, with each kind of evidence reported separately:

- **Reachability**: status, time, bytes, SHA-256, content type, redirect hops, TLS issuer and leaf-certificate hash.
- **Meaning**: `expectContains` text that proves it is still the right service (searched in raw text and JSON string values).
- **Function**: a key-less MCP streamable-HTTP handshake (`initialize` → `tools/list`) with server name, version, protocol and tool names.
- **Discovery** (optional, once per origin): which of `/llms.txt`, `/skill.md`, `/.well-known/agent.json`, `agent-card.json`, `mcp.json` and `/openapi.json` exist, checked against a random-path control so catch-all sites do not look like they have every file. Files are hashed and listed, never followed or obeyed.
- **Freshness**: `checkedAt` and `expiresAt`. After expiry the claim is unknown again, not "alive".

| State | Meaning |
|---|---|
| `ALIVE` | 2xx, expected text present (if given), MCP handshake ok (if probed) |
| `DEGRADED` | Reachable, but the expected text is missing or the MCP handshake failed |
| `AUTH_REQUIRED` | 401/403: the door exists but needs credentials |
| `DOWN` | 429 or 5xx right now |
| `DEAD` | 404/410, or the host name does not resolve |
| `UNKNOWN` | Timeout or network error. A failed read is unknown, never dead |
| `INVALID` | Refused URL (private/local address), not charged |

Each card also has a `notChecked` list and a `cardSha256`.

### Example

```json
{"urls": [{"url": "https://agentsboard.org/api/v1/feed", "expectContains": "items"},
          {"url": "https://gitmcp.io/docs", "mcp": true}],
 "discovery": true, "ttlHours": 24}
```

### Connect (MCP)

```
https://mcp.apify.com/?tools=geeky_goth_gamer/agent-door-check
```

- Claude Code: `claude mcp add --transport http agent-door-check "https://mcp.apify.com/?tools=geeky_goth_gamer/agent-door-check"`
- Cursor / VS Code / Claude Desktop `mcp.json`: `{"mcpServers": {"agent-door-check": {"url": "https://mcp.apify.com/?tools=geeky_goth_gamer/agent-door-check"}}}`

Sign in with your Apify account when asked (OAuth), or send `Authorization: Bearer <APIFY_TOKEN>`.

### Standby HTTP API (lowest latency)

`POST https://geeky-goth-gamer--agent-door-check.apify.actor/check` with `Authorization: Bearer $APIFY_TOKEN` and a JSON body (same fields as the batch input). `GET /health` is free.

### Building a product on it?

Keep your own Apify token on your server, pay the per-event price, and set your own resale price. Your users never need an Apify account. Never ship the token in a client config.

### Pricing (pay per event)

| Event | Price |
|---|---|
| `door-checked` | $0.001 per URL (page read, optional MCP handshake and discovery included) |
| Actor start | $0.00005 |

Invalid input and refused URLs are free. Checking 25 doors costs $0.025.

### Limits and safety

- Read-only: GETs plus the MCP `initialize`/`tools/list` handshake. Nothing is posted, no account is created and no credentials are sent, so servers that need a key show `AUTH_REQUIRED`.
- Up to 25 URLs per run, checked one at a time (polite to the hosts). Only public http(s) addresses.
- It tells you whether a door answers now. It does not rank services or vouch for them.

# Actor input Schema

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

Up to 25. Strings, or {"url": ..., "expectContains": "text that proves it is the right service", "mcp": true}.

## `mcpProbe` (type: `string`):

Key-less streamable-HTTP initialize + tools/list. Servers that need a key show AUTH_REQUIRED.

## `discovery` (type: `boolean`):

Once per origin: /llms.txt, /skill.md, /.well-known/agent.json, agent-card.json, mcp.json, /openapi.json (with a catch-all control). Files are only listed, never followed or obeyed.

## `ttlHours` (type: `integer`):

expiresAt = checkedAt + this. After that, treat the alive claim as unknown and re-check.

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

Timeout per request (s).

## Actor input object example

```json
{
  "urls": [
    {
      "url": "https://agentsboard.org/api/v1/feed",
      "expectContains": "items"
    },
    "https://registry.modelcontextprotocol.io/v0/servers?limit=1"
  ],
  "mcpProbe": "auto",
  "discovery": false,
  "ttlHours": 24,
  "timeoutSecs": 15
}
```

# Actor output Schema

## `results` (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": [
        {
            "url": "https://agentsboard.org/api/v1/feed",
            "expectContains": "items"
        },
        "https://registry.modelcontextprotocol.io/v0/servers?limit=1"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("geeky_goth_gamer/agent-door-check").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": [
        {
            "url": "https://agentsboard.org/api/v1/feed",
            "expectContains": "items",
        },
        "https://registry.modelcontextprotocol.io/v0/servers?limit=1",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("geeky_goth_gamer/agent-door-check").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": [
    {
      "url": "https://agentsboard.org/api/v1/feed",
      "expectContains": "items"
    },
    "https://registry.modelcontextprotocol.io/v0/servers?limit=1"
  ]
}' |
apify call geeky_goth_gamer/agent-door-check --silent --output-dataset

```

## MCP server setup

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

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/Bt6bEiTfpZhS7lm1o/builds/D628xL3dRQPieV8fl/openapi.json
