# WebMCP Tools and Resource Catalog Scraper (`rainminer/webmcp-scraper`) Actor

Extract tools, resources, resource templates, and prompts from WebMCP-enabled websites. Each dataset row is one catalog entry with name, description, JSON schema, and source from in-page tools, HTML forms, or MCP HTTP. Does not execute tools. No login. Export JSON, CSV, or Excel.

- **URL**: https://apify.com/rainminer/webmcp-scraper.md
- **Developed by:** [rainminer](https://apify.com/rainminer) (community)
- **Categories:** AI, Developer tools, Agents
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $7.48 / 1,000 webmcp catalog items

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

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

<p align="center">
  <img src="logo.png" alt="MCP logo" width="96" />
</p>

## WebMCP Scraper

![WebMCP Scraper](./banner.png)

**WebMCP Scraper** inventories the agent-facing catalog of a [WebMCP](https://github.com/webmachinelearning/webmcp)-enabled website. Give it page URLs and get one dataset row per **tool**, **resource**, **resource template**, or **prompt**, including names, descriptions, JSON schemas, and where the entry came from.

Start with the public Chrome Labs demo: [WebMCP explainer](https://googlechromelabs.github.io/webmcp-tools/demos/explainer/).

Need a pass/fail score instead of a catalog? Use **[WebMCP Validator](https://apify.com/rainminer/webmcp-validator)** for a per-URL readiness report.

***

### What does WebMCP Scraper do?

WebMCP lets a page register structured tools on `document.modelContext` so an in-browser agent can call them instead of clicking through a human UI. Sites can also advertise a same-origin MCP HTTP catalog (Cloudflare’s WebMCP packs do this).

This Actor:

1. Opens each start URL in a headless browser
2. Captures tools registered with `registerTool`
3. Reads declarative HTML tools (`<form toolname="…">`)
4. Lists tools, resources, resource templates, and prompts from the MCP HTTP catalog when one responds
5. Saves a flat dataset you can filter by `kind` and `source`

Use it to build agent directories, snapshot schemas for QA, or watch WebMCP adoption across a URL list.

***

### Why scrape WebMCP catalogs?

A WebMCP page is an in-browser tool server. Scraping the catalog — not the DOM — is the reliable way to learn what an agent is allowed to do:

- **Agent directories** that only list sites with callable tools
- **QA snapshots** of tool names and JSON schemas after each deploy
- **Competitive intel** on which products already expose agent APIs
- **Cloudflare pack inventory** after enabling WebMCP in the dashboard
- **RAG / eval datasets** built from tool descriptions
- **Prompt libraries** harvested from MCP `prompts/list`
- **Resource maps** for docs, manifests, and signed media catalogs
- **Schema diffs** between weekly crawls
- **Sales enablement** for agent platforms pitching publishers
- **Research** on WebMCP adoption across the public web
- **Routing** — send an agent only to sites that expose the tool it needs
- **Incident checks** when an integration reports missing tools

***

### How to scrape WebMCP tools and resources

1. Open the Actor in [Apify Console](https://console.apify.com/)
2. Paste **page URLs** that should expose WebMCP (or the Chrome Labs demo)
3. Leave **Probe MCP HTTP catalog** on to also collect resources and prompts
4. Raise **Extra wait time** for SPAs that register tools after hydration
5. Click **Start** and export **Overview**

Schedule the Actor or call it from the Apify API. Combine it with [WebMCP Validator](https://apify.com/rainminer/webmcp-validator) when you first need a score, then dump the catalog for failing URLs.

#### Input example

```json
{
  "startUrls": [
    { "url": "https://googlechromelabs.github.io/webmcp-tools/demos/explainer/" }
  ],
  "maxItems": 5,
  "waitUntil": "networkidle",
  "waitForMillis": 4000,
  "probeMcpHttp": true,
  "includeSiteSummary": true,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

***

### Output

Each row is one catalog entry.

```json
{
  "url": "https://googlechromelabs.github.io/webmcp-tools/demos/explainer/",
  "kind": "tool",
  "name": "getAvailability",
  "title": "Get booking availability",
  "description": "List bookable consultation times within a date range.",
  "source": "webmcp-document",
  "hasExecute": true,
  "inputSchema": {
    "type": "object",
    "properties": {
      "startDate": { "type": "string", "format": "date" },
      "endDate": { "type": "string", "format": "date" }
    },
    "required": ["startDate", "endDate"]
  },
  "uri": null,
  "mimeType": null
}
```

`kind` is `tool`, `resource`, `resource_template`, `prompt`, or `site` (only when nothing else was found). `source` tells you whether the row came from in-page WebMCP, a declarative form, or MCP HTTP.

Download the dataset as JSON, CSV, or Excel.

***

### How much does it cost?

This Actor uses **pay-per-event** pricing. Platform compute is included in the event price — you are not billed extra Playwright usage.

| Event | FREE plan |
| --- | --- |
| Actor start | $0.00005 |
| Catalog item (one tool, resource, prompt, or site row) | **$9.99 / 1,000** ($0.00999 each) |

Paid Apify Store plans get volume discounts (GOLD from **$7.48 / 1,000**). No proxy is required by default. The Chrome Labs demo (3 tools) is about **$0.03** on FREE. Check the **Pricing** tab for current rates.

***

### FAQ

#### What is WebMCP?

A proposed web API from the W3C Web Machine Learning Community Group. Pages expose tools to agents via `document.modelContext`. Read the [GitHub explainer](https://github.com/webmachinelearning/webmcp) and [Cloudflare’s preview](https://blog.cloudflare.com/webmcp/).

#### Does it execute tools?

No. It only **lists** tools, resources, and prompts. It does not call `execute` / `tools/call`, so it will not submit forms or change account state.

#### Will it log in?

No. Only public pages. Cookie banners and bot challenges are fine; account login is not supported.

#### Related Actors

| Actor | Job |
| --- | --- |
| **[WebMCP Validator](https://apify.com/rainminer/webmcp-validator)** | Per-URL readiness score and spec checks |
| **[WebMCP Scraper](https://apify.com/rainminer/webmcp-scraper)** | One dataset row per tool, resource, or prompt (this Actor) |

Open an issue on the Actor page if a public demo URL stops returning catalog rows.

***

### Image Credit

Logo and banner use the official [Model Context Protocol](https://modelcontextprotocol.io) mark from the [MCP docs logo](https://github.com/modelcontextprotocol/docs/tree/main/logo).

# Actor input Schema

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

WebMCP-enabled page URLs to open. The Actor records in-page tools, declarative form tools, and MCP HTTP catalogs.

## `maxItems` (type: `integer`):

Maximum catalog rows (tools, resources, prompts) to save for each start URL.

## `waitUntil` (type: `string`):

Navigation lifecycle event to wait for before the extra wait time starts.

## `waitForMillis` (type: `integer`):

Additional time to wait after navigation so late registerTool calls and Cloudflare packs can finish.

## `probeMcpHttp` (type: `boolean`):

When enabled, also list tools, resources, resource templates, and prompts from any advertised MCP HTTP endpoint.

## `includeSiteSummary` (type: `boolean`):

If no tools or catalogs are found, still save one site row so the URL is represented in the dataset.

## `proxyConfiguration` (type: `object`):

Optional proxy. Leave Apify Proxy off unless the target site blocks datacenter IPs.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://googlechromelabs.github.io/webmcp-tools/demos/explainer/"
    }
  ],
  "maxItems": 5,
  "waitUntil": "networkidle",
  "waitForMillis": 4000,
  "probeMcpHttp": true,
  "includeSiteSummary": true,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (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": [
        {
            "url": "https://googlechromelabs.github.io/webmcp-tools/demos/explainer/"
        }
    ],
    "maxItems": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("rainminer/webmcp-scraper").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": [{ "url": "https://googlechromelabs.github.io/webmcp-tools/demos/explainer/" }],
    "maxItems": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("rainminer/webmcp-scraper").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": [
    {
      "url": "https://googlechromelabs.github.io/webmcp-tools/demos/explainer/"
    }
  ],
  "maxItems": 5
}' |
apify call rainminer/webmcp-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,rainminer/webmcp-scraper"
        }
    }
}

```

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/VF72rG2T7a9LBl0Li/builds/a79fZBzUIQtX0KePp/openapi.json
