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

ToolPurpose
mrscraper_statusReturn your MrScraper account status, plan, and usage.
mrscraper_scrape_htmlRetrieve the raw HTML of a page, optionally with a screenshot.
mrscraper_scrape_markdownRetrieve a page as Markdown.
mrscraper_get_screenshotCapture a base64 PNG screenshot of the full page, the top viewport, or a custom viewport.
mrscraper_scrape_brandExtract a website's colors, typography, logos, and social links as JSON.
mrscraper_scrape_jsonExtract structured JSON from a page using a natural-language prompt.
mrscraper_web_searchSearch 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

Installation

Install and enable the plugin

hermes plugins install mrscraper
hermes plugins enable mrscraper

The 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: mrscraper

web_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:

ParameterDefaultDescription
urlRequiredAbsolute HTTP or HTTPS URL of the page.
timeout300Page timeout in seconds, from 1 to 330.
wait_for_selectorOmittedCSS selector or text to wait for, up to 500 characters. Cannot be combined with browser_rendering: false.
geo_codeOmittedTwo-letter country code for the request. Requests load from the US when omitted. See Country Codes.
max_age0Return 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_retriesOmittedMaximum number of retries, as a nonnegative integer.

mrscraper_scrape_html, mrscraper_scrape_markdown, and mrscraper_scrape_json also accept loading controls:

ParameterDefaultDescription
browser_renderingOmittedtrue 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_startfalseOpen the site's home page first to warm the session.
block_resourcesfalseBlock 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.

ParameterDefaultDescription
promptExtract all data as complete as possible.What to extract. Append Json Schema: and a JSON schema to shape the output.
htmltrueInclude the page HTML in the response.
screenshotfalseInclude 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
}
ParameterDefaultDescription
queryRequiredThe search query, from 1 to 1000 characters.
countryOmittedTwo-letter country code for localized results. Searches from the US when omitted.
num_results10Number 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_age is new, timeout accepts up to 330, and geo_code and country are omitted by default instead of us.
  • browser_rendering is omitted by default, so pages load without a browser first and switch to one automatically if blocked.
  • mrscraper_scrape_html gains screenshot, and mrscraper_get_screenshot accepts custom viewports.
  • mrscraper_scrape_json now includes HTML by default and accepts the full page and loading controls.
  • The proxy_country, super, wait_until, proxy, save_result, and return_cookie options were removed, as were html on mrscraper_scrape_markdown and warm_start, html, and markdown on mrscraper_get_screenshot. Results are now always saved to the dashboard.

From 3.x

  • mrscraper_account is now mrscraper_status.
  • mrscraper_scraper_api is replaced by mrscraper_scrape_html, mrscraper_scrape_markdown, and mrscraper_get_screenshot.
  • mrscraper_scrape_brand and mrscraper_scrape_json are new.
  • mrscraper_web_search keeps its name and takes query, country, and num_results.
  • home_page is now warm_start. The use_proxy, bypass_proxy, cookie_jar, headers, token_cap, and stream options were removed.
  • The mrscraper provider name and the MRSCRAPER_API_TOKEN variable are unchanged.

On this page