MrScraper for Hermes
MrScraper is an AI-powered Web Fetch and Web Search platform designed to support
Business Intelligence, market research, competitive intelligence, and real-time
data retrieval. Its services support business intelligence use cases such as
e-commerce price intelligence, competitor monitoring, hotel rate comparisons,
market trend analysis, real estate research, and structured data extraction.
This native Hermes plugin calls the MrScraper HTTP API directly and provides the
seven standard MrScraper services as dedicated tools. Tool and parameter
descriptions match the MrScraper CLI, Python SDK, Node SDK, LangChain integration,
and MCP server; see the API Reference.
Version 4.1.0 requires one secret, MRSCRAPER_API_TOKEN. The
hosted MCP server
is a separate connection that uses OAuth; installing this plugin does not
configure it.
Install or update
Install the reviewed catalog version:
hermes plugins install mrscraper
hermes plugins enable mrscraper
The installer prompts for MRSCRAPER_API_TOKEN from the
MrScraper app. Hermes stores and resolves
the token through the active profile's secret scope. Start a new Hermes session
after enabling or updating the plugin to load its tool definitions.
For an existing catalog installation, use hermes plugins update mrscraper.
The Hermes catalog listing
shows the version and exact reviewed commit it installs. The catalog can lag
behind this repository's main branch: the tools and parameters described below
require version 4.1.0. Changing main does not change the reviewed catalog pin or
existing installations.
To install the current repository version directly on a profile without an
existing MrScraper installation, use the repository source instead:
hermes plugins install ai-mrscraper/hermes-mrscraper-plugin
hermes plugins enable mrscraper
This is a custom-source installation rather than the reviewed catalog release.
For a specific revision, add --ref <full-40-character-commit-SHA> to the install
command. Replacing an existing installation also requires --force. Start a new
Hermes session after either installation path.
Check the connection
Run hermes plugins list to confirm MrScraper is installed and enabled. In a new
Hermes session, ask the agent to call mrscraper_status with {} first. Then
test mrscraper_scrape_markdown with:
{
"url": "https://example.com",
"timeout": 60,
"max_retries": 2
}
The returned Markdown should contain the Example Domain page. Test
mrscraper_web_search with {"query":"example domain"} and inspect
the returned titles and links. Page, brand, JSON, and search calls consume account
quota. Check the requested page's content as well as the response status; HTTP 200
alone does not establish that the expected page was retrieved.
Seven tools
| Tool | Description | HTTP request |
|---|---|---|
mrscraper_status | Return the raw account status API response without summarizing, redacting body fields, or adding calculated fields. | GET https://api.app.mrscraper.com/api/v1/subscription-accounts |
mrscraper_scrape_html | Retrieve the raw HTML of a page. Browser rendering is optional. | GET https://api.mrscraper.com/ with html=true |
mrscraper_scrape_markdown | Retrieve a page as clean Markdown. Browser rendering is optional. | GET https://api.mrscraper.com/ with markdown=true |
mrscraper_get_screenshot | Capture a base64 PNG screenshot of the full page, the first viewport, or a custom viewport. Browser rendering is always enabled. | GET https://api.mrscraper.com/ with the screenshot area and browserRendering=true |
mrscraper_scrape_brand | Extract a website's colors, typography, logos, and social links as JSON. | GET https://api.mrscraper.com/ with action=brand-scraping |
mrscraper_scrape_json | Extract structured JSON from a page using a natural-language prompt. Append Json Schema: and a JSON schema to shape the output. | GET https://api.mrscraper.com/ with agent=general (POST above 8,000 URL characters) |
mrscraper_web_search | Search the web and return ranked results with titles, URLs, descriptions, and sources. | GET https://api.mrscraper.com/ with action=websearch |
Every request authenticates with Authorization: Bearer and x-api-token
headers from Hermes's configured secret. The token is never a tool argument and
is not placed in the request URL.
Successful tool responses use the common response envelope: status_code,
data (the API body: text for HTML or Markdown, JSON otherwise), and filtered
HTTP headers. Credential-bearing response headers are removed, and the
configured API token value is masked as [REDACTED] wherever a response echoes it.
Parameters
Tool parameters use snake_case. The HTTP field each one sends is shown in
parentheses. Each tool offers only the parameters the
Scraper API reference
documents. Unsupported or misspelled options are rejected before any request is
made. Optional parameters without a default are left out of the request.
Page controls
mrscraper_scrape_html, mrscraper_scrape_markdown, mrscraper_get_screenshot,
and mrscraper_scrape_json share these parameters:
| Parameter | Type | Default | Description |
|---|---|---|---|
url (url) | string | Required | Absolute HTTP or HTTPS URL of the page to process. |
timeout (timeout) | integer | 300 | Maximum seconds to wait for the scrape, from 1 to 330. The HTTP request allows 30 additional seconds. |
wait_for_selector (waitForSelector) | string | Omitted | CSS selector or text to wait for on the page before returning the result, up to 500 characters. |
geo_code (geoCode) | string | Omitted | Two-letter country code to load the page from, sent in lowercase. |
max_age (maxAge) | integer | 0 | Return a cached result of the same request when it is newer than the selected age. A cached result costs the same tokens as the original scrape. |
max_retries (maxRetries) | integer | Omitted | Maximum number of retries, as a nonnegative integer. Omit this parameter for no limit. |
max_age is in milliseconds, up to 604800000 (7 days); 0 always scrapes fresh.
When geo_code is omitted, the API loads the page from the United States. These
four tools always send saveResult=true, so their results are saved to the
MrScraper dashboard; tokenCap is never sent.
Loading controls
mrscraper_scrape_html, mrscraper_scrape_markdown, and mrscraper_scrape_json
also accept:
| Parameter | Type | Default | Description |
|---|---|---|---|
browser_rendering (browserRendering) | boolean | Omitted | Whether to load the page in a browser: true always does and false never does. Omit it to load the page without a browser first and switch to a browser automatically if the request is blocked. |
warm_start (warmStart) | boolean | false | Whether to open the site's home page first to warm the session before loading the target URL. |
block_resources (blockResources) | boolean | false | Whether to block images, fonts, and stylesheets while loading the page. |
wait_for_selector needs a rendered page, so do not combine it with
browser_rendering: false; the API rejects that pair without charging tokens.
URL safety and the active Hermes website policy are checked before any page,
brand, or JSON request is submitted.
Status
mrscraper_status takes no parameters: call it with {}. The HTTP deadline is
fixed at 600 seconds. The API body contains message and data; account details,
including subscriptionItem and scraperAllowance, are at data.data in the
response envelope.
Scrape HTML
Page and loading controls, plus:
| Parameter | Type | Default | Description |
|---|---|---|---|
screenshot (screenshot) | string | "false" | Screenshot to capture with the HTML: false for none, full for the entire page, top for the first viewport, or a WIDTHxHEIGHT viewport from 100 to 3840 pixels with an optional -ZOOM percent from 25 to 300, such as 1280x800 or 1920x1080-75. Setting a screenshot also sends browserRendering=true. |
{"url": "https://example.com", "browser_rendering": true, "warm_start": true, "wait_for_selector": "body", "timeout": 120}
The request sends html=true and markdown=false. Any screenshot other than false also sends
browserRendering=true, whatever browser_rendering is set to. The response body
is HTML text; with a screenshot, the API returns JSON containing html and a base64
screenshot.
Scrape Markdown
Page and loading controls.
{"url": "https://example.com", "warm_start": true, "max_age": 86400000}
The request sends markdown=true, html=false, and screenshot=false. The
response body is Markdown text.
Get screenshot
Page controls, plus:
| Parameter | Type | Default | Description |
|---|---|---|---|
screenshot (screenshot) | string | "full" | Screenshot area to capture: full for the entire scroll height, top for the first viewport, or a WIDTHxHEIGHT viewport from 100 to 3840 pixels with an optional -ZOOM percent from 25 to 300, such as 1280x800 or 1920x1080-75. |
{"url": "https://example.com", "screenshot": "top", "timeout": 120}
The request sends the screenshot area followed by html=false, markdown=false,
and browserRendering=true; the outputs and browser rendering are not parameters.
Any other screenshot value, including false, is rejected before a request is
made. The response body contains a base64 PNG screenshot and the page html,
which the API includes even though html=false is sent.
Scrape brand
| Parameter | Type | Default | Description |
|---|---|---|---|
url (url) | string | Required | Absolute HTTP or HTTPS URL of the page to process. |
The request sends action=brand-scraping and bundle=none with a fixed
120-second HTTP deadline; page controls are not accepted. Brand details are at
data.data.brand in the response envelope.
Scrape JSON
Page and loading controls, plus:
| Parameter | Type | Default | Description |
|---|---|---|---|
prompt (prompt) | string | "Extract all data as complete as possible." | Instructions describing the data to extract. Append Json Schema: and a JSON schema to shape the output. |
html (html) | boolean | true | Whether to include the page HTML in the response. |
screenshot (screenshot) | boolean | false | Whether to include a base64 screenshot in the response. |
{
"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
}
The request sends agent=general. When the encoded GET URL would exceed 8,000
characters, the plugin switches to POST and moves url, prompt, and agent
into the JSON body. Extraction results are in the API body's data field. The
boolean screenshot does not change browser rendering.
Web search
| Parameter | Type | Default | Description |
|---|---|---|---|
query (query) | string | Required | Search query text, trimmed before sending, containing 1 to 1000 characters. |
country (country) | string | Omitted | Two-letter country code to search from, sent in lowercase. |
num_results (numResults) | integer | 10 | Number of search results to request, as an integer from 10 to 100. Fewer results may be returned. |
{"query": "site:example.com documentation", "country": "id", "num_results": 20}
The request sends action=websearch with a fixed 120-second HTTP deadline.
country is omitted unless set, so the API searches from the United States. The
API body contains success, message, a data array, and tokenUsage; each
result includes rank, title, url, description, and source.
Equivalent HTTP request
With MRSCRAPER_API_TOKEN exported in your shell, the Get screenshot example
above is equivalent to:
curl --get 'https://api.mrscraper.com/' \
--data-urlencode 'url=https://example.com' \
--data 'screenshot=top&html=false&markdown=false&browserRendering=true&timeout=120' \
--data 'saveResult=true&maxAge=0' \
--header "Authorization: Bearer ${MRSCRAPER_API_TOKEN}" \
--header "x-api-token: ${MRSCRAPER_API_TOKEN}" \
--header 'Accept: application/json' \
--max-time 150
Optional integration with Hermes's built-in web tools
Hermes provides built-in web_search and web_extract tools. This plugin can
optionally supply MrScraper as their backend through its mrscraper provider.
The seven dedicated mrscraper_* tools work without this provider selection.
Select MrScraper under Web Search & Extract in hermes tools, or configure
the active profile's config.yaml:
web:
search_backend: mrscraper
extract_backend: mrscraper
With this provider selected, Hermes's web_search uses Web search: it requests
10–100 results, trims to Hermes's requested limit, and preserves the returned
rank. web_extract uses Scrape Markdown (or Scrape HTML when HTML is requested)
with a 120-second page timeout and at most 3 retries. Derive structured fields
and listings from the returned page content, or call mrscraper_scrape_json
directly. For click/type/scroll workflows, use Hermes's interactive browser tools;
page retrieval does not create a persistent browser session. The standard web
tools report explicit upstream failures and missing page content as errors,
including when the API returns HTTP 200.
Service requests
Page, brand, JSON, and search requests can consume paid MrScraper account quota.
Target URLs, prompts, search queries, and supplied options are sent to MrScraper's
cloud service. Authentication stays in Hermes's configured secrets; never put an
API token in a tool argument or example. Surfaced errors omit request URLs and
response bodies that could reveal credentials.
mrscraper_status returns the account record as the API sends it, which includes
account identity, plan, and usage fields. Use it when the agent needs that detail.
Development
Use hermes plugins validate . for manifest/capability admission and the
security scan. Current Hermes admission reports a compatibility warning for the
internal website-policy helper; the plugin retains
that check and tests it against the target Hermes checkout. Run this repository's
tests through a Hermes checkout's canonical runner:
/path/to/hermes-agent/scripts/run_tests.sh /path/to/hermes-mrscraper-plugin/tests/test_plugin.py -q --import-mode=importlib
The tests discover the plugin through a temporary HERMES_HOME and exercise all
seven tools and the web provider against a local HTTP server. They require no live
token or billable MrScraper request. Keep any live-call results under
test-results/, which Git ignores.
README from the reviewed commit 1703879; it updates when the author re-pins.

ai-mrscraper