Hermes Agent
Install the MrScraper plugin for Hermes Agent to scrape pages as HTML, Markdown, screenshots, brand data, or JSON, search the web, and check account status.
Hermes Agent is an open-source AI agent by Nous Research. The MrScraper plugin in the Hermes catalog adds seven native tools and registers MrScraper as a backend for Hermes's built-in web search and extract tools.
This guide covers plugin version 4.1.0, which requires Hermes 0.21.4 or later. The source code is on GitHub.
Available tools
| Tool | Purpose |
|---|---|
mrscraper_status | Return your MrScraper account status, plan, and usage. |
mrscraper_scrape_html | Retrieve the raw HTML of a page, optionally with a screenshot. |
mrscraper_scrape_markdown | Retrieve a page as Markdown. |
mrscraper_get_screenshot | Capture a base64 PNG screenshot of the full page, the top viewport, or a custom viewport. |
mrscraper_scrape_brand | Extract a website's colors, typography, logos, and social links as JSON. |
mrscraper_scrape_json | Extract structured JSON from a page using a natural-language prompt. |
mrscraper_web_search | Search the web and return ranked results with titles, URLs, descriptions, and sources. |
Plugin or MCP server
This plugin is separate from the hosted MrScraper MCP server, which you connect with OAuth and whose tools use camelCase names such as scrapeMarkdown. Installing the plugin does not configure the MCP server.
Prerequisites
- Hermes Agent 0.21.4 or later.
- A MrScraper API token.
Installation
Install and enable the plugin
hermes plugins install mrscraper
hermes plugins enable mrscraperThe installer prompts for MRSCRAPER_API_TOKEN and stores it in the active profile's secret scope. Hermes sends the token to MrScraper in request headers; you never pass it as a tool argument.
Start a new session
Start a new Hermes session so the agent loads the tools, then run hermes plugins list to confirm that mrscraper is enabled.
Verify the connection
Ask the agent to call mrscraper_status with {}, then mrscraper_scrape_markdown with:
{ "url": "https://example.com", "timeout": 60, "max_retries": 2 }The Markdown should contain the Example Domain page.
To update an existing install, run hermes plugins update mrscraper and start a new session. To install the latest code from GitHub instead of the reviewed catalog release, run hermes plugins install ai-mrscraper/hermes-mrscraper-plugin; add --ref <full-40-character-commit-SHA> to pin a revision, or --force to replace an existing install.
Use MrScraper for built-in web tools
The plugin can also power Hermes's web_search and web_extract tools. Run hermes tools and select MrScraper under Web Search & Extract, or set the backends in the profile's config.yaml:
web:
search_backend: mrscraper
extract_backend: mrscraperweb_search uses MrScraper Web Search and keeps the result ranking. web_extract uses Scrape Markdown, or Scrape HTML when HTML is requested, with a 120-second page timeout and at most 3 retries.
Tool reference
Page controls
mrscraper_scrape_html, mrscraper_scrape_markdown, mrscraper_get_screenshot, and mrscraper_scrape_json accept these parameters:
| Parameter | Default | Description |
|---|---|---|
url | Required | Absolute HTTP or HTTPS URL of the page. |
timeout | 300 | Page timeout in seconds, from 1 to 330. |
wait_for_selector | Omitted | CSS selector or text to wait for, up to 500 characters. Cannot be combined with browser_rendering: false. |
geo_code | Omitted | Two-letter country code for the request. Requests load from the US when omitted. See Country Codes. |
max_age | 0 | Return a cached result of the same request if it is newer than this many milliseconds, up to 604800000 (7 days). 0 always fetches a fresh page. Cached results cost the same tokens. |
max_retries | Omitted | Maximum number of retries, as a nonnegative integer. |
mrscraper_scrape_html, mrscraper_scrape_markdown, and mrscraper_scrape_json also accept loading controls:
| Parameter | Default | Description |
|---|---|---|
browser_rendering | Omitted | true always uses a browser and false never does. When omitted, the page loads without a browser first and switches to one automatically if blocked. |
warm_start | false | Open the site's home page first to warm the session. |
block_resources | false | Block images, fonts, and stylesheets. |
Page tools always save their results to your MrScraper dashboard. Each tool rejects options it does not support before sending a request, so a call that uses an option from another tool or an older plugin version fails with an Unsupported options error.
mrscraper_scrape_html
Returns the page HTML. Set screenshot to also capture the page: false (default), full, top, or WIDTHxHEIGHT from 100 to 3840 pixels with an optional -ZOOM from 25 to 300, such as 1280x800 or 1920x1080-75. Any value other than false enables browser rendering, and the response becomes JSON with html and a base64 screenshot.
{ "url": "https://example.com", "browser_rendering": true, "warm_start": true, "wait_for_selector": "body", "timeout": 120 }mrscraper_scrape_markdown
Returns the page as Markdown. It takes only the page and loading controls.
{ "url": "https://example.com", "warm_start": true, "max_age": 86400000 }mrscraper_get_screenshot
Returns a base64 PNG screenshot with browser rendering always enabled. Set screenshot to full (default), top, or WIDTHxHEIGHT[-ZOOM]; other values, including false, are rejected before a request is sent.
{ "url": "https://example.com", "screenshot": "top", "timeout": 120 }mrscraper_scrape_brand
Takes only url and returns the site's colors, typography, logos, and social links as JSON. See Scrape Brand.
mrscraper_scrape_json
Extracts structured data from the page with AI.
| Parameter | Default | Description |
|---|---|---|
prompt | Extract all data as complete as possible. | What to extract. Append Json Schema: and a JSON schema to shape the output. |
html | true | Include the page HTML in the response. |
screenshot | false | Include a base64 screenshot. This boolean does not change browser rendering. |
{
"url": "https://example.com",
"prompt": "Extract the first 2 items with title and price. Json Schema: {\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\"},\"price\":{\"type\":\"string\"}},\"required\":[\"title\",\"price\"]}}",
"browser_rendering": true
}mrscraper_web_search
| Parameter | Default | Description |
|---|---|---|
query | Required | The search query, from 1 to 1000 characters. |
country | Omitted | Two-letter country code for localized results. Searches from the US when omitted. |
num_results | 10 | Number of results, from 10 to 100. The search may return fewer. |
{ "query": "site:example.com documentation", "country": "id", "num_results": 20 }Each result includes its rank, title, url, description, and source.
mrscraper_status
Takes no parameters; call it with {}. It returns the account record as the API sends it, including identity, plan, usage, and billing fields, and that output reaches your model provider.
Working with outputs
Each successful call returns status_code, data (text for HTML and Markdown, JSON otherwise), and the response headers with credential headers removed. An HTTP 200 alone does not prove the page was retrieved, so check the content before relying on it.
Page, brand, JSON, and search calls use account tokens. Target URLs, prompts, search queries, and options are sent to MrScraper, and Hermes checks URL safety and its website policy before page, brand, and JSON requests.
Upgrading
From 4.0.x
- The page tools now match the Scraper API reference.
max_ageis new,timeoutaccepts up to330, andgeo_codeandcountryare omitted by default instead ofus. browser_renderingis omitted by default, so pages load without a browser first and switch to one automatically if blocked.mrscraper_scrape_htmlgainsscreenshot, andmrscraper_get_screenshotaccepts custom viewports.mrscraper_scrape_jsonnow includes HTML by default and accepts the full page and loading controls.- The
proxy_country,super,wait_until,proxy,save_result, andreturn_cookieoptions were removed, as werehtmlonmrscraper_scrape_markdownandwarm_start,html, andmarkdownonmrscraper_get_screenshot. Results are now always saved to the dashboard.
From 3.x
mrscraper_accountis nowmrscraper_status.mrscraper_scraper_apiis replaced bymrscraper_scrape_html,mrscraper_scrape_markdown, andmrscraper_get_screenshot.mrscraper_scrape_brandandmrscraper_scrape_jsonare new.mrscraper_web_searchkeeps its name and takesquery,country, andnum_results.home_pageis nowwarm_start. Theuse_proxy,bypass_proxy,cookie_jar,headers,token_cap, andstreamoptions were removed.- The
mrscraperprovider name and theMRSCRAPER_API_TOKENvariable are unchanged.
ClawHub
Add MrScraper to OpenClaw from ClawHub: a plugin with 13 native tools plus web_search and web_fetch providers, and a skill for direct API use.
x402
Let AI agents fetch web pages, extract data and search the web with pay-per-request USDC payments over x402, through Circle Gateway, Agentic Market, or Inflowpay.