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
three dedicated tools: mrscraper_scraper_api, mrscraper_web_search, and
mrscraper_account. Version 3.0.0 requires one secret, MRSCRAPER_API_TOKEN.
The hosted MCP server is a separate connection.
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 dashboard. 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 GET fetch and unified Web Search
contract described below require version 3.0.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_account with {} first. Then
test mrscraper_scraper_api with:
{
"url": "https://hermes-agent.nousresearch.com/docs/plugins/mrscraper",
"markdown": true,
"max_retries": 0,
"timeout": 60
}
The page content should identify the MrScraper plugin and link to this repository.
Test mrscraper_web_search with {"url":"Hermes Agent NousResearch"} and inspect
the returned titles and links. Page and search calls may consume account tokens.
Check the requested page's content as well as the response status; HTTP 200 alone
does not establish that the expected page was retrieved.
Three tools
| Tool | Purpose | Direct HTTP endpoint |
|---|---|---|
mrscraper_scraper_api | Fetch a public web page as rendered HTML, Markdown, screenshot, or a combination. | GET https://api.mrscraper.com/ |
mrscraper_web_search | Search the web to retrieve real-time results, including relevant website URLs, titles, and descriptions based on a given query. | POST https://api.mrscraper.com/ with action="websearch" |
mrscraper_account | Read subscription status, token usage, quota, and rate limits. | GET https://api.app.mrscraper.com/api/v1/subscription-accounts |
These operations use MrScraper's direct REST endpoints. Successful native tool responses include
status_code, data, and filtered HTTP headers. Account data is an allowlisted
summary; API tokens, billing identifiers, and credential-bearing response headers
are excluded.
See the MrScraper API documentation
for service request options. The native tool schemas define the supported inputs
and defaults for this plugin; credentials are never tool arguments.
Page retrieval
Call mrscraper_scraper_api with url and the page options required by the task:
{
"url": "https://example.com/article",
"html": false,
"markdown": true,
"geo_code": "ID"
}
HTML defaults to enabled and Markdown to disabled. Omit browser_rendering for
automatic browser fallback; true forces rendering and false disables it.
A screenshot forces rendering. Real-device routing (super) defaults to false.
Other controls include wait_for_selector, home_page, block_resources,
use_proxy, proxy_country, cookie_jar, and target-page headers.
The page timeout defaults to 120 seconds and accepts 1–300 seconds; the HTTP
request allows 30 additional seconds. max_retries defaults to 3 and controls
server-side retries, with optional token_cap; HTTP requests are not retried
locally. stream requests a server stream but the plugin buffers the complete
response. URL safety and the active Hermes website policy are checked before
submitting a page request.
Every fetch option is encoded in the query string, including url, maxRetries,
and optional tokenCap; GET requests have no body. With MRSCRAPER_API_TOKEN
already configured in your shell, an equivalent Markdown fetch is:
curl --request GET 'https://api.mrscraper.com/' \
--url-query "token=${MRSCRAPER_API_TOKEN}" \
--url-query 'url=https://example.com/article' \
--url-query 'timeout=120' \
--url-query 'geoCode=US' \
--url-query 'html=false' \
--url-query 'markdown=true' \
--url-query 'maxRetries=3' \
--header "Authorization: Bearer ${MRSCRAPER_API_TOKEN}" \
--header "x-api-token: ${MRSCRAPER_API_TOKEN}" \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--max-time 150
--url-query requires curl 7.87.0 or newer.
Web Search
{
"url": "Hermes Agent documentation",
"region": "id",
"num_results": 10
}
url accepts query text or a search URL containing q. An explicit region
overrides the URL's gl parameter; otherwise the country defaults to us.
num_results accepts integers from 10 to 100 and defaults to 10. The local
request timeout defaults to 600 seconds and is not sent to the API.
The REST JSON body maps url to query, region to country, and
num_results to numResults, with action="websearch":
curl --request POST 'https://api.mrscraper.com/' \
--header "Authorization: Bearer ${MRSCRAPER_API_TOKEN}" \
--header "x-api-token: ${MRSCRAPER_API_TOKEN}" \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--max-time 600 \
--data '{"action":"websearch","query":"Hermes Agent documentation","country":"id","numResults":10}'
The REST response contains success, message, data[], and tokenUsage.
Each result supplies rank, title, url, description, and source.
Native tool callers read that array at data.data[] inside the response envelope.
Account usage
Call mrscraper_account with {} to inspect usage before a larger task. Its
optional timeout defaults to 30 seconds. The response includes subscription
status, usage, limit, remaining tokens, usage percentage, rate limits, renewal
state, and basic account identity. It never returns the raw account record.
Unavailable rate-limit values remain null rather than being reported as zero.
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 three dedicated mrscraper_* tools above 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 maps to the unified Web Search
endpoint and web_extract maps to the page endpoint. Derive structured fields
and listings from the returned page content. 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.
Migration from 1.x
Version 2.0.0 replaced the 15 legacy dedicated tools with mrscraper_scraper_api,
mrscraper_web_search, and mrscraper_account. Update saved prompts and
automations to use these three tools, then start a new session. The mrscraper
provider name and MRSCRAPER_API_TOKEN remain the same.
Managed crawler, extraction-job, scraper-run, and saved-result tools are no longer
registered. This plugin's surface follows the three REST operations; manage other
MrScraper workflows in the dashboard.
Migration from 2.x
Version 3.0.0 switches page retrieval to GET and Web Search to the unified API.
For mrscraper_web_search, replace raw, format, language, page, and
render_js with the supported url, region, num_results, and timeout
inputs. The removed options are rejected; search URL hl and start values
are not forwarded. Results now come from the REST data[] array with url
and rank. Restart the Hermes session after updating to refresh tool schemas.
The standard web provider requests at least 10 and at most 100 results from the
API, trims to Hermes's requested limit, and preserves the returned rank.
The hosted MCP server
is a separate connection using OAuth and server-provided scraperAPI,
webSearch, and status names. Installing this native plugin does not configure
MCP.
Service requests
Page and search requests can consume paid MrScraper account tokens. Target URLs,
search queries, and supplied page 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. The page endpoint requires the token query parameter
in addition to authentication headers; surfaced errors omit request URLs and
response bodies that could reveal credentials.
Development
Use hermes plugins validate . --install-deps for manifest/capability admission and the security
scan. Current Hermes admission reports a compatibility warning for the internal
URL-safety and website-policy helpers also used by version 1.x; the plugin retains
those checks and tests them 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 its
tools and web provider against a local HTTP server. They require no live token or
billable MrScraper request.
README from the reviewed commit 63059eb; it updates when the author re-pins.

ai-mrscraper