Pick a server by job
Crawler or page reader MCP: when an agent does not need to crawl
Decide between a crawler MCP server and a page reader by the job, read Crawl4AI's seven MCP tools and crawl limits, and set the limits a crawl needs.
By Shannon Mcbride, MCPScraper team · Published
This article was drafted with AI assistance from the sources listed below and edited and published by the MCPScraper team. Disclosure: the MCPScraper API, which this article mentions, is this site's own product.
- 1List the URLsIf the agent already knows every URL it needs, it does not need to crawl.
- 2One page per callA page reader or a single-page tool such as Crawl4AI's md covers known URLs.
- 3Unknown pagesCrawl only when the pages must be found by following links from a start URL.
- 4Set limitsCap depth and pages. Crawl4AI's server clamps max_depth and max_pages to 5 and 100 by default.
- 5Turn on robots.txtCrawl4AI's check_robots_txt is False by default. Set it to True.
Many agent jobs called "scraping" are not crawls. The agent knows the URL: a changelog, a pricing page, three pages of an API reference. It needs their text, then it is done. A crawler is built for the other job: start at one URL, follow links, find pages nobody listed.
The job decides the kind of server. This post sets the two jobs apart and uses Crawl4AI's self-hosted MCP server as the open-source crawler example, because one server ships both kinds of tool.
All Crawl4AI rows below were checked on 2026-11-24 against its own docs (version 0.9.x; latest release shown: 0.9.6). The project ships often. Recheck before you rely on a row.
Two jobs, two shapes
| Row | Read known pages | Crawl to find pages |
|---|---|---|
| Input | The URLs themselves | One start URL plus rules |
| Calls | One per page | One call, many fetches |
| Who picks the pages | The agent, page by page | The crawler, by link rules |
| Output size | Known before the call | Grows with depth and page count |
| Limits to set | A size cap per page | Depth, page count, domains, time |
Ask one question first: does the agent already know every URL it needs? If yes, it does not need to crawl. A page reader returns one page per call, and the agent sees each URL before it is fetched. If no, and the pages have to be found by following links, that is a crawl.
A crawl that starts from a search result or a single docs page and then "reads around" is the common mismatch. The agent asked for one page and got a site.
Crawl4AI's MCP server, as an example
Crawl4AI runs as a Docker server (unclecode/crawl4ai, port 11235). Its self-hosting guide documents MCP over two transports, SSE at /mcp/sse and WebSocket at /mcp/ws, with the tool schemas at /mcp/schema.
It lists seven MCP tools:
| Tool | Description in the docs | Job |
|---|---|---|
md | "Generate markdown from web content" | Read one page |
html | "Extract preprocessed HTML" | Read one page |
screenshot | "Capture webpage screenshots" | Capture one page |
pdf | "Generate PDF documents" | Capture one page |
execute_js | "Run JavaScript on web pages" | Act on a page |
crawl | "Perform multi-URL crawling" | Crawl |
ask | "Query the Crawl4AI library context" | Library help |
Source: Crawl4AI self-hosting guide. Checked 2026-11-24.
Only one of the seven is a crawler. The md example in the docs takes a single url. So even with a crawler server installed, the known-URL job goes to a single-page tool. For what a larger tool list costs, see Too many MCP tools in the context window.
One gap to record: the guide documents deep crawling on the HTTP /crawl endpoint. It does not say, as of the check date, which of those options the MCP crawl tool accepts. Read /mcp/schema on your own server before you count on any of them.
What a crawl needs before it runs
Crawl4AI's /crawl endpoint takes a urls list. Deep crawling, following links from a start page, is a separate mode with its own guards in the Docker server:
- Off by default. A request with
deep_crawl_strategyreturns HTTP 400 unlessCRAWL4AI_ALLOW_DEEP_CRAWL=trueis set. - One start URL per request.
- Clamped limits.
max_pagesandmax_depthare clamped tolimits.max_pagesandlimits.max_depthinconfig.yml, which default to 100 and 5. - A time limit. The crawl stops after
limits.wall_clock_s. The guide does not give a default value.
The deep-crawling guide adds the settings that decide how big a crawl gets:
| Setting | What it does |
|---|---|
max_depth | Levels to crawl beyond the starting page |
max_pages | Page cap; the library default is "infinite" |
include_external | Whether links to other domains are followed |
DomainFilter, URLPatternFilter | Which domains and URL patterns are kept |
| Strategy | BFSDeepCrawlStrategy, DFSDeepCrawlStrategy or BestFirstCrawlingStrategy (the one the docs recommend) |
Source: Crawl4AI deep crawling. Checked 2026-11-24.
The same guide warns that max_depth values above 3 can grow the crawl size exponentially, and says to use max_pages as a hard limit. Set both in server config, where the model cannot raise them.
Defaults to change on a crawler server
Two defaults matter for polite access to public pages.
robots.txt. In Crawl4AI's run config, check_robots_txt is a boolean with a default of False. Set it to True. Pass a user_agent as well; the parameter docs say it is used for robots.txt checking when the check is on. robots.txt is not the whole rule set: read the site's terms and your own acceptable-use policy too.
Authentication. For 0.9.0 and later, the self-hosting guide says the Docker server requires authentication by default. Its endpoints then require Authorization: Bearer $CRAWL4AI_API_TOKEN, and without that token the server binds to loopback inside the container. Keep it that way unless the server must be reached from elsewhere.
A page reader needs fewer of these settings because it does less: it fetches the URL it was given and nothing else.
When a page reader is enough
For the known-URL job, a page reader with a small tool surface is the lighter fit. MCPScraper API is this site's own page reader: its get_page_contents tool fetches one public page per call and returns its main content as Markdown, plain text or HTML. The MCP server registers 2 tools. The MCP docs list them.
When the job really is "find the pages", run a crawler, and give it limits before the first call. For where to run either kind of server, see Self-hosted scraping MCP server or hosted. Whatever the server, read only public pages.
Frequently asked questions
When does an AI agent need a crawler MCP server instead of a page reader?
When it has to find pages it does not know yet, by following links from a start URL. If the agent already has the URLs, such as a changelog page or three docs pages, a tool that reads one page per call is enough, and nothing follows links the agent did not ask for.
What MCP tools does the Crawl4AI Docker server expose?
Its self-hosting docs, checked 2026-11-24, list seven: md, html, screenshot, pdf, execute_js, crawl and ask. The server offers MCP over SSE at /mcp/sse and over WebSocket at /mcp/ws, and publishes the tool schemas at /mcp/schema.
Is deep crawling on by default in the Crawl4AI Docker server?
No. The self-hosting docs say a /crawl request with a deep crawl strategy returns HTTP 400 unless CRAWL4AI_ALLOW_DEEP_CRAWL=true is set. A deep crawl takes one start URL per request, and max_pages and max_depth are clamped to config limits that default to 100 and 5.
Does Crawl4AI respect robots.txt?
Only when you ask it to. The check_robots_txt parameter is a boolean with a default of False. Set it to True and pass a user_agent, which the docs say is used for robots.txt checking when the check is on.
Sources
- Crawl4AI self-hosting guide (Documentation)
- Crawl4AI deep crawling (Documentation)
- Crawl4AI browser, crawler and LLM config parameters (Documentation)