# Fast Website & Docs to LLM Markdown Crawler + Live MCP (`shawn1905/fast-website-to-markdown-mcp`) Actor

Convert any webpage, documentation site, or sitemap.xml into clean, boilerplate-free LLM/RAG Markdown with token estimates and headings. Pure HTTP (zero browser overhead, 256MB RAM) — Batch + Standby Remote MCP (/mcp).

- **URL**: https://apify.com/shawn1905/fast-website-to-markdown-mcp.md
- **Developed by:** [峰 李](https://apify.com/shawn1905) (community)
- **Categories:** AI, Developer tools, MCP servers
- **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

Pay per event + usage

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

## Fast Website & Docs to LLM Markdown Crawler + Live Remote MCP Server

Turn any webpage, documentation portal, blog, or `sitemap.xml` into **clean, boilerplate-free LLM/RAG Markdown** in milliseconds — at **half the price** of headless browser crawlers (**`$1.50 / 1,000` pages**).

- **Pure HTTP + Cheerio + Turndown**: No Chromium cold starts, no residential proxies, 256 MB lightweight container.
- **3 Flexible Extraction Modes**: `urls` (direct URL list), `crawl_site` (same-domain BFS crawler with path prefix & exclude filters), and `sitemap` (auto-parses `sitemap.xml` & sitemap indexes).
- **LLM & RAG Ready Output**: Automatically strips navbars, footers, cookie banners, and scripts, returning clean Markdown + headings + word count + estimated LLM tokens.
- **Native Standby Remote MCP (`/mcp`)**: Plug straight into Claude Desktop, Claude Code, Cursor, Windsurf, or LangChain.

### Connect via Remote MCP

```json
{
  "mcpServers": {
    "fast-markdown": {
      "url": "https://shawn1905--fast-website-to-markdown-mcp.apify.actor/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_APIFY_TOKEN"
      }
    }
  }
}
```

#### Included MCP Tools

1. `fetch_url_as_markdown` — Convert a single URL into clean Markdown with metadata and token estimate.
2. `crawl_docs_to_markdown` — Crawl up to 10 pages of a docs or blog section into clean Markdown.
3. `discover_sitemap_urls` — Parse any domain's `sitemap.xml` or sitemap index for RAG ingestion.

### Transparent Pay-Per-Event Pricing

- **Markdown Page Extracted**: `$1.50 / 1,000` pages (`$0.0015` per page)
- **MCP Live Query**: `$4.00 / 1,000` tool calls (`$0.004` per call)
- **Actor Start**: `$0.00005`

# Actor input Schema

## `mode` (type: `string`):

Choose 'urls' to convert specific URLs, 'crawl_site' for fast same-domain BFS docs crawling, or 'sitemap' to extract pages from sitemap.xml.

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

List of webpage URLs (urls mode), seed site URLs (crawl_site mode), or sitemap/domain URLs (sitemap mode).

## `maxPages` (type: `integer`):

Maximum total pages to convert to Markdown.

## `maxDepth` (type: `integer`):

Maximum link depth when crawling a site.

## `includePathPrefix` (type: `string`):

Only crawl URLs whose pathname starts with this prefix (e.g. '/docs', '/blog').

## `excludePatterns` (type: `array`):

Skip URLs containing any of these substrings (e.g. '/login', '/pricing', '.pdf').

## `includeLinks` (type: `boolean`):

Include deduplicated internal/external outbound links array in each page record.

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

Number of pages fetched concurrently (1-10).

## Actor input object example

```json
{
  "mode": "urls",
  "urls": [
    "https://docs.apify.com/platform/actors"
  ],
  "maxPages": 25,
  "maxDepth": 2,
  "excludePatterns": [],
  "includeLinks": false,
  "maxConcurrency": 5
}
```

# 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": [
        "https://docs.apify.com/platform/actors"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("shawn1905/fast-website-to-markdown-mcp").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": ["https://docs.apify.com/platform/actors"] }

# Run the Actor and wait for it to finish
run = client.actor("shawn1905/fast-website-to-markdown-mcp").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": [
    "https://docs.apify.com/platform/actors"
  ]
}' |
apify call shawn1905/fast-website-to-markdown-mcp --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,shawn1905/fast-website-to-markdown-mcp"
        }
    }
}
```

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/ZerMP3n81FglwueNQ/builds/DbpIYkKkDBidcUtAN/openapi.json
