Hermes Agent
How to use Crawl4AI with Hermes Agent
Updated 5 December 2026
Crawl4AI turns web pages, including pages rendered with JavaScript, into Markdown or structured data. On a Hermes Agent installation you manage, you can connect Crawl4AI through Model Context Protocol (MCP) to give the agent separate crawl tools, or use a community plugin to change what powers its existing web extraction tool. For reading a few URLs or clicking through a page, Hermes’s own tools may already cover the job.
The setup below draws on the Hermes Agent 0.23.6 source and its MCP configuration reference, the Crawl4AI 0.9.6 repository guide and its Docker server guide, and the Crawl4AI Cloud MCP documentation, read on 4 December 2026.
When Crawl4AI adds something to Hermes
Crawl4AI is an open-source Python crawler. Use it when you want a crawler you can host yourself, with control over page rendering and extraction. Hermes Agent 0.23.6 ships without a Crawl4AI-specific skill, optional skill, curated MCP server or bundled plugin. The catalog’s Crawl4AI plugins are maintained in external repositories. If you are setting up the agent itself, see how to install Hermes Agent.
- Find pages or read known URLs. Hermes’s
web_searchreturns ranked results andweb_extractfetches readable content from URLs you give it. These are the simpler starting point for a search or a summary from known pages. Search and extraction can use different providers. See the web tools guide. - Interact with a page. The
browsertoolset’sbrowser_execcan navigate, inspect the page, click, fill forms and take screenshots. It uses Hermes-launched headless Chromium by default, and the session needs theterminaltoolset. See the Hermes browser guide. - Expose crawler tools or swap the extraction provider. Use MCP for separate tools such as Markdown extraction and crawling. Choose a REST plugin to make your Crawl4AI server the primary provider for
web_extract.
Crawl4AI 0.9.6 is released under Apache License 2.0. The community plugin’s README describes Crawl4AI as MIT-licensed, so use Crawl4AI’s own tagged licence file for the crawler itself. Crawl4AI licence.
Try the standalone Python package
The Python package is useful for scripts or for seeing the crawler’s output before wiring it into Hermes. It requires Python 3.10 or newer. Install version 0.9.6, set up its browser and check the installation.
pip install crawl4ai==0.9.6
crawl4ai-setup
crawl4ai-doctorIf browser setup fails, the project’s manual Chromium install command is python -m playwright install --with-deps chromium. To make a test crawl, the repository shows crwl https://news.ycombinator.com -o markdown. Look for the page text in Markdown. This checks the package. To expose an MCP endpoint for Hermes, carry on with the Docker server below.
Start the Docker server and check it from the host
The server guide calls for Docker 20.10.0 or newer and at least 4 GB of RAM available to the container. If you use Docker Compose, it lists version 2.24 or newer. These steps use the prebuilt image and assume Hermes runs directly on the same host. Bind the published port to the host’s loopback address. On Docker Engine versions older than 28.0.0, other machines on the same local network segment can still reach that port. Use a trusted network. Docker port publishing.
The command below adapts Crawl4AI’s launch example to use the 0.9.6 image and publish port 11235 on the Docker host’s loopback address. Run these commands in a private Bash terminal with OpenSSL installed. The first line generates and exports the server token, which grants administrator access to Crawl4AI. Crawl4AI Docker example, release notes and Static token permissions.
export CRAWL4AI_API_TOKEN="$(openssl rand -hex 32)"
docker run -d -p 127.0.0.1:11235:11235 --name crawl4ai --shm-size=1g \
-e CRAWL4AI_API_TOKEN="$CRAWL4AI_API_TOKEN" \
unclecode/crawl4ai:0.9.6In the same shell, run printenv followed by CRAWL4AI_API_TOKEN to display the value. Save it securely so you can add it to the active Hermes profile’s .env.
Allow about 10 seconds for startup, then run curl http://localhost:11235/health from the Docker host. Make sure jq is installed, then run the Markdown check below in the same shell so it can use the exported token. Look for page text from the markdown field.
curl -s http://localhost:11235/md \
-H "Authorization: Bearer $CRAWL4AI_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"url": "https://news.ycombinator.com"}' | jq -r .markdownThe extraction plugin’s README shows a launch command without the token and tells you to read it from the log. Follow Crawl4AI’s tagged Docker instructions here. Under the default Docker settings, omitting the credential makes the server listen only inside the container. The generated token in the log is for in-container use, and the published port can reset connections even when Docker reports a healthy container. The explicit token above lets the server listen for host connections and is accepted as a Bearer credential on the data and MCP routes. Docker migration guide.
Connect the self-hosted server to Hermes over SSE
Crawl4AI’s Docker server offers MCP over Server-Sent Events (SSE) and WebSocket. Use its SSE endpoint with Hermes’s generic MCP client. This configuration combines the two projects’ documented settings. An end-to-end test for these exact versions could not be verified from the sources.
The standard Hermes installer includes the MCP support needed for both the self-hosted and Cloud setups. If you installed Hermes without extras, add MCP support before configuring either server. MCP installation step.
- Save the same token you passed to Docker as
CRAWL4AI_API_TOKENin Hermes’s~/.hermes/.env. If you use profiles, edit the active profile’s secret file. - Add the entry below to
~/.hermes/config.yaml, or to the active profile’s config. If it already hasmcp_servers, add the entry inside that block. If Hermes and Crawl4AI run in containers on the same host, attach both to the same user-defined Docker bridge network. In the URL below, replacelocalhostwith the Crawl4AI container name or Compose service name. Docker bridge networking.
mcp_servers:
crawl4ai:
url: "http://localhost:11235/mcp/sse"
transport: sse
headers:
Authorization: "Bearer ${CRAWL4AI_API_TOKEN}"For connections across an untrusted network, use a reverse proxy that terminates TLS and passes through the Authorization header. For MCP, forward both /mcp/sse and /mcp/messages/ and stream SSE responses as they arrive. In the MCP settings, use the proxy’s HTTPS URL ending in /mcp/sse. Crawl4AI SSE routes and NGINX response buffering.
For either REST plugin, forward /md and use the proxy’s HTTPS base address. For axAilotl’s plugin, also forward /html for HTML extraction and /crawl for link following. mblauser’s REST calls and axAilotl’s REST calls.
Hermes reads the secret reference in headers when it connects. Run hermes mcp test crawl4ai from a shell. A successful test lists the discovered tools. Look for md and crawl. Start hermes chat, or use /reload mcp in your current session after a config change.
In chat, ask “Use the Crawl4AI Markdown tool to read https://news.ycombinator.com and return the first headline.” Check that Hermes called mcp__crawl4ai__md and got page content. The prefix comes from the server name in the configuration. For general configuration and tool visibility, see the Hermes MCP guide.
Use Crawl4AI Cloud over Streamable HTTP
Crawl4AI’s hosted service has its own MCP endpoint and API key. Get the key from the Crawl4AI dashboard and save it as CRAWL4AI_API_KEY in Hermes’s active profile .env. Open the active profile’s config.yaml. If it already has an mcp_servers block, copy crawl4ai_cloud and its indented settings into that block alongside the other server entries. Otherwise, paste the whole example. Hermes defaults to Streamable HTTP when transport is omitted. The project’s Hermes instructions document this direct connection and describe a dedicated cloud plugin as forthcoming. Crawl4AI Cloud instructions for Hermes.
mcp_servers:
crawl4ai_cloud:
url: "https://api.crawl4ai.com/mcp"
trust: untrusted
headers:
Authorization: "Bearer ${CRAWL4AI_API_KEY}"Cloud scraping uses your Crawl4AI credits. The connection also exposes billing tools that can buy credits or change spending settings. On a paid plan, buying extra credits can charge the saved card immediately. Keep Hermes approvals enabled and check the operation and amount before approving a billing call. Hermes prompts for tools the server hasn’t marked read-only. Saved approval applies by tool name, even when the inputs change. Choose Allow Once to approve just the current call. Crawl4AI Cloud credits and Hermes MCP trust settings.
Run hermes mcp test crawl4ai_cloud and look for find_tool and run_tool. Reload MCP in your session and ask Hermes to use the cloud tools to find a scraper and read a public page. The tool call distinguishes this route from the self-hosted server, which exposes the Markdown tool directly.
Route web extraction through a community plugin
These two catalog plugins talk to a running Crawl4AI REST service. Install by catalog name in the Hermes profile you want to use. The live catalog can supply a newer pinned commit than the one shipped with Hermes 0.23.6. Review the pinned code before giving the plugin credentials. Hermes catalog updates.
Run hermes plugins install crawl4ai for mblauser’s extraction plugin or hermes plugins install hermes-web-crawl4ai for axAilotl’s plugin with link following. When the installer asks “Enable … now?”, choose yes. If Hermes asks to install dependencies, review them before approving. If you skipped activation, run hermes plugins enable <name> with the plugin’s catalog name before continuing. Hermes catalog installation.
Both plugins use the CRAWL4AI_API_TOKEN you set on the Docker server. Put it in the active profile’s .env and merge the chosen example into that profile’s config.yaml, preserving existing settings.
Extraction only. For mblauser’s plugin (manifest version 1.0.0), set CRAWL4AI_URL in the profile’s .env to the base address of your server, such as http://localhost:11235. An existing value in web.crawl4ai_url takes precedence. The provider sends the token in a Bearer header to /md, so the static Docker token fits even though the plugin guide calls it a JWT. Extraction provider source.
web:
extract_backend: "crawl4ai"Extraction and link following. The catalog entry for axAilotl’s plugin in Hermes 0.23.6 lists version 0.2.0. That version requires Hermes 0.23.0 or newer and reads CRAWL4AI_URL if api_url is unset. Tagged catalog entry.
plugins:
entries:
hermes-web-crawl4ai:
settings:
api_url: http://localhost:11235
web:
extract_backend: crawl4ai-boundedBefore testing either plugin, set keyless_rescue to false under web in the active profile’s config.yaml. By default, Hermes can send URLs from a failed extraction to an external provider. Hermes web fallback settings.
If the CLI’s web toolset is disabled, run hermes tools enable web. Check that the plugin is enabled with hermes plugins list, then start a fresh Hermes process. Ask Hermes to use web_extract on a public URL you haven’t extracted with that provider. Check the tool result for page text, then run hermes logs and look for “Web extract via crawl4ai” or “Web extract via crawl4ai-bounded”, matching the plugin you chose. That entry shows which provider Hermes tried.
For the second plugin’s crawl4ai_crawl tool, enable its crawl4ai toolset as well. That tool follows links on the starting host and its subdomains, using single-page /crawl requests. basic follows links up to one level from the starting page, and advanced up to two. Set max_pages to 1–20, including the starting page. To test it, ask Hermes to follow links from a page you know in basic mode with a small page limit. Check that the tool returns pages from the starting host or its subdomains. Plugin configuration.
WebGraft 0.3.3 can use the Crawl4AI Python library with Chromium. Skip this option on machines you share with users you don’t trust. Other programs on the machine can control Chromium through its temporary DevTools port. Also skip it if web pages must be kept from contacting internal services. WebGraft’s DevTools port warning and private-network limitation.
Fix the first check that fails
- The host connection resets. The published port can reset connections while Crawl4AI starts. If resets continue after 20 seconds, run
docker logs crawl4aiand look for “binding loopback only”. That warning means the token you set didn’t reach the container, so the server is listening only inside it. If it appears for your test container, rundocker stop crawl4ai && docker rm crawl4ai. Launch it again with the token and repeat both checks from the host. Crawl4AI startup and troubleshooting. - The Markdown test works but MCP fails. Check the URL from Hermes’s host or container, then confirm the active profile has the secret and the
Authorizationheader references it. For Docker use/mcp/ssewithtransport: sse. The hosted endpoint uses/mcpwith Streamable HTTP and the cloud API key. If the shell test lists tools but the chat cannot see them, reload MCP and check that the server and tools are enabled in the session’s configuration. - A Docker API request rejects the deep-crawl setting. The 0.9.6 Docker API rejects
deep_crawl_strategyby default. For direct API requests, follow the Crawl4AI Docker deep-crawling example to opt in. Leave the default in place for thecrawl4ai_crawlplugin tool, which follows links through individual/crawlrequests. - The plugin is listed but extraction fails. Check that it is enabled and that
web.extract_backendmatches the plugin you chose. Hermes 0.23.6 calls plugin discovery in its web tool path. That shows how the tag loads providers. The published test notes forhermes-web-crawl4aicover Hermes 0.23.0 and main, with Crawl4AI 0.9.2 in the live runner. Compatibility for the two catalog plugins on the exact versions in this guide could not be verified from the sources. Hermes provider discovery and plugin test notes.
Crawl4AI on ReadyHermes
We have not tested Crawl4AI on ReadyHermes. The ReadyHermes workspace has no screen for adding custom MCP servers, and installing catalog plugins is currently unsupported. ReadyHermes runs your own Hermes Agent on its servers and keeps it on, with AI included in the 30-minute free trial.
Questions
Is Crawl4AI built into Hermes Agent?
Hermes Agent 0.23.6 ships without a Crawl4AI-specific skill, optional skill, curated MCP server or bundled plugin. It has a generic MCP client, and the Crawl4AI plugins in the catalog are community plugins.
How does Hermes Agent connect to a self-hosted Crawl4AI server?
With MCP support installed, save the Docker server’s CRAWL4AI_API_TOKEN in the active Hermes profile’s .env. Add the reachable /mcp/sse URL under mcp_servers in config.yaml, set transport to sse, and send the token in the Authorization Bearer header. For the crawl4ai entry, run hermes mcp test crawl4ai and look for md and crawl.
Why does the Crawl4AI Docker port reset the connection?
The published port can reset connections while Crawl4AI starts. If resets continue after 20 seconds, run docker logs crawl4ai and look for ‘binding loopback only’. That warning means the token you set didn’t reach the container, so the server is listening only inside it. Relaunch the test container with CRAWL4AI_API_TOKEN and repeat the health and authenticated /md checks from the host.
Can Crawl4AI power Hermes Agent’s web_extract tool?
Yes. Set web.extract_backend to crawl4ai for mblauser’s plugin or crawl4ai-bounded for axAilotl’s plugin to make your Crawl4AI server the primary provider. Hermes can retry a failed extraction through an external provider. Set keyless_rescue to false under web in config.yaml to turn off these retries. AxAilotl’s plugin also offers a separate link-following tool.
Can you use Crawl4AI on ReadyHermes?
We have not tested Crawl4AI on ReadyHermes. The workspace has no screen for adding custom MCP servers, and installing catalog plugins is currently unsupported.