Skip to content

Hosted vs self-hosted

Scraping MCP servers in Docker: what the images hold and leave to you

Read what the Playwright MCP, Crawl4AI and Scrapling images and Docker's MCP Catalog ship, and set the binding, token, pinning and limits they leave to you.

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.

Before a scraping MCP container goes live
  • Know who built the image: mcp/playwright is built by Docker Inc., the README names mcr.microsoft.com.
  • Bind to 0.0.0.0 only inside the container; publish the port only where clients need it.
  • Crawl4AI and Scrapling need a token for a published port. Set one.
  • Pin a tag instead of --pull=always or latest when a change must be reviewed first.
  • Give Crawl4AI --shm-size=1g, as its guide does.

A scraping MCP server in a container looks finished: one docker run, one port, done. The image holds the server and its runtime. It does not hold your network policy, your token, your version policy or your resource limits. This post lists what three open-source images and Docker's MCP Catalog ship, and what stays with the operator.

All rows were checked on 2026-11-30 against each project's own docs. These projects ship often. Recheck before you rely on a row.

What each image ships

RowPlaywright MCPCrawl4AIScrapling
Imagemcr.microsoft.com/playwright/mcpunclecode/crawl4aipyd4vinci/scrapling, ghcr.io/d4vinci/scrapling:latest
BrowserHeadless Chromium onlyA browser pool (permanent, hot, cold); engine not namedThe docs do not say
Port in the docs8931112358000
MCP over the network--port, "port to listen on for SSE transport"SSE at /mcp/sse, WebSocket at /mcp/wsStreamable HTTP with --http
Auth by defaultNot covered in the Docker sectionRequired since 0.9.0--http refuses to start without a token
Other contentsnone listedInternal Redis under supervisord, Gunicornnone listed

Sources: Playwright MCP README, Crawl4AI self-hosting guide, Scrapling MCP server docs. Checked 2026-11-30.

The table is a lookup, not a ranking. A browser server and a crawler do different jobs; Crawler or page reader MCP splits the jobs first.

Playwright MCP: two ways to run the image

The README gives two shapes.

Client-spawned. The client config sets docker as the command, with run -i --rm --init --pull=always mcr.microsoft.com/playwright/mcp as its arguments. The client starts the container itself.

Long-lived service. The README starts the container detached, overrides the entrypoint with node /app/cli.js, and passes --headless --browser chromium --no-sandbox --port 8931 --host 0.0.0.0. The server then listens on host port 8931 for any MCP client.

Three of those flags carry a decision:

  • --no-sandbox. The help text: "disable the sandbox for all process types that are normally sandboxed."
  • --host 0.0.0.0. The default is localhost; 0.0.0.0 binds all interfaces. Where the port is published on the host is your choice.
  • --allowed-hosts. It defaults to localhost, loopback IPs and the --host value. Other hosts must be listed; '*' turns the check off. Leave it on.

The README is plain about the rest: "Playwright MCP is not a security boundary." Running it in an image does not change that sentence. You can also build the image yourself with docker build -t mcr.microsoft.com/playwright/mcp ..

Crawl4AI: the image expects a token

Crawl4AI's guide runs the image on port 11235 with --shm-size=1g and CRAWL4AI_API_TOKEN passed in. LLM keys go in through --env-file .llm.env. One tag covers linux/amd64 and linux/arm64. The latest release on the check date was 0.9.6, and latest points to the most recent stable version.

Since 0.9.0 the server requires authentication by default. Without the token, it binds loopback inside the container, so the published port resets connections even when the container looks healthy. The guide generates the token with openssl rand -hex 32. Every endpoint except /health needs it.

Defaults worth knowing before the first call:

  • Config. The server reads /app/config.yml. A bind-mounted file replaces the default one completely, so start from a full copy.
  • Hooks are off unless CRAWL4AI_HOOKS_ENABLED=true. Request-supplied hook code was removed in 0.9.0; the guide calls it "an unauthenticated remote-code-execution surface."
  • Deep crawling is off unless CRAWL4AI_ALLOW_DEEP_CRAWL=true.
  • Files. output_path was removed in 0.9.0 as a path-traversal risk. Screenshots and PDFs come back through authenticated /artifacts/{id} requests.

Upgrading from 0.8.x means reading the project's migration guide first.

Scrapling: 0.0.0.0 plus a token

Scrapling's docs give one MCP command for Docker:

docker run -p 8000:8000 -e SCRAPLING_MCP_AUTH_TOKEN="<your-token>" pyd4vinci/scrapling mcp --http --host '0.0.0.0'

Outside Docker the server listens on 127.0.0.1, port 8000. Inside Docker, the docs say, you must bind to 0.0.0.0 and set a token, or the published port cannot reach the server. --no-auth exists for an unauthenticated server; it is opt-in, and a published port is the wrong place for it. The docs do not say, as of the check date, whether the image includes the browsers that scrapling install sets up for a local install.

Docker's MCP Catalog: a second Playwright image

The catalog lists mcp/playwright. Its page names Microsoft as the author, Docker Inc. as the builder, and github.com/microsoft/playwright-mcp as the source, with the Apache License 2.0 and 23 tools on the check date. That is a different image from mcr.microsoft.com/playwright/mcp. Pick one on purpose, and note which one each config starts.

Docker's Toolkit docs list what catalog images get:

  • every image under mcp/ is built by Docker and digitally signed;
  • each image includes an SBOM;
  • MCP tool containers are restricted to 1 CPU and limited to 2 GB of memory;
  • no access to the host filesystem by default;
  • requests to and from tools that contain secrets are blocked.

The Toolkit docs describe the interface in Docker Desktop 4.62 and later. These are Toolkit measures.

What stays with you

  • Version policy. --pull=always and latest take whatever was published last. Pin a tag where a server update must be read before it runs.
  • Exposure. Publish the port on the interface that clients use, not on every interface of the host.
  • Tokens. Store them as secrets, one per environment.
  • Request rates. Requests leave from your machine. Set polite per-site rates and stop on 403 and 429 responses. Read robots.txt, the site's terms and your own acceptable-use policy; this is not legal advice.

For the wider trade between running a server and using a hosted one, see Self-hosted scraping MCP server or hosted. If the job is only reading one public page at a time, a hosted page reader means no container to run. MCPScraper API is this site's own page reader, and "The MCP server registers 2 tools." The MCP docs list them.

Frequently asked questions

Does the Playwright MCP Docker image support Firefox or WebKit?

No. As of 2026-11-30 the Playwright MCP README says the Docker implementation only supports headless Chromium at the moment. Other browsers are options of the server itself, not of the image.

Why does my Crawl4AI or Scrapling container reset connections on the published port?

Both servers need a token before a published port works. Crawl4AI's docs say that without CRAWL4AI_API_TOKEN the server binds loopback inside the container, so published ports reset connections even when the container looks healthy. Scrapling's docs say that inside Docker you must bind to 0.0.0.0 and set a token, or the published port cannot reach the server.

What is the difference between mcp/playwright and mcr.microsoft.com/playwright/mcp?

mcr.microsoft.com/playwright/mcp is the image named in Microsoft's Playwright MCP README. mcp/playwright is the Docker MCP Catalog entry: its page names Microsoft as the author and Docker Inc. as the builder, links the same source repository, and lists SBOMs, provenance and signing.

Does the Docker MCP Toolkit limit what a scraping server container can use?

Yes. Docker's Toolkit docs say MCP tool containers are restricted to 1 CPU and 2 GB of memory, have no access to the host filesystem by default, and that requests to and from tools that contain secrets are blocked.

Sources

  1. Playwright MCP README (Documentation)
  2. Crawl4AI self-hosting guide (Documentation)
  3. Scrapling MCP server docs (Documentation)
  4. Docker MCP Toolkit (Documentation)
  5. Docker MCP Catalog: Playwright (Documentation)