About hermai-mcp
hermai-mcp is a local stdio MCP server for agent runtimes that need to work with Hermai schemas and workflows. It supports public schema discovery and intake without a key, while authenticated data fetching is available when configured with an API key.
Key features
- 01Search schemas by domain or task
- 02Browse public schemas
- 03Submit and track schema requests
- 04Classify browser workflows
- 05Fetch registered schemas with an API key
Use cases
- 01Find a verified schema for a source and task
- 02Submit a brittle workflow for schema intake
- 03Retrieve read-only data through a registered schema
MCP support
Exposes Hermai schema search, public listing, request intake and status, and workflow classification as MCP tools. Configuring a Hermai API key also enables the read-only fetch_schema tool.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
Tools
5Saved tool list · updated 2w ago
| Parameter | Type | Required | Description |
|---|---|---|---|
| task | string | No | Natural-language task or workflow description. |
| domain | string | No | Exact domain, for example allbirds.com. |
| category | string | No | Optional schema category filter. |
| verified | boolean | No | Only return verified schemas. |
Details
From the project READMEHermai MCP
Dedicated Model Context Protocol server for Hermai.
Use this package when an agent runtime supports MCP and should call Hermai as native tools. The Hermai CLI is a separate human/operator tool and is not required for MCP.
Install
Run directly with npx:
npx -y hermai-mcp
Or install globally:
npm install -g hermai-mcp
hermai-mcp
MCP Client Config
{
"mcpServers": {
"hermai": {
"command": "npx",
"args": ["-y", "hermai-mcp"]
}
}
}
Optional environment variables:
HERMAI_API_BASEorHERMAI_PLATFORM_URL: API base URL. Defaults tohttps://api.hermai.ai.HERMAI_API_KEYorHERMAI_PLATFORM_KEY: API key for authenticated Hermai APIs. Public schema lookup and schema-request intake work without a key. Setting a key also unlocks thefetch_schemaexecution tool (see below).HERMAI_FETCH_TIMEOUT_MS: request timeout forfetch_schema. Defaults to120000(hosted fetch lanes can run tens of seconds).
Claude Code workflow
Use the local MCP server when you want Claude Code to discover a schema, inspect the available workflow, and make an authenticated read request. Hermai MCP is a local stdio server. It is not a remote Claude connector.
Install Claude Code, then add Hermai to your personal Claude Code configuration:
export HERMAI_API_KEY='hm_sk_...'
claude mcp add --scope user hermai -e HERMAI_API_KEY="$HERMAI_API_KEY" -- npx -y hermai-mcp
unset HERMAI_API_KEY
The key is saved in your local Claude Code configuration. Do not put this command in a repository, shared shell history, or a project scoped MCP configuration.
Confirm that Claude Code can see the server:
claude mcp list
Then start Claude Code and use this two step request:
Use lookup_schema to find a verified public Hermai schema for [the source and task].
Before making a fetch, show me the site, endpoint, required parameters, and whether
the result can be retrieved with fetch_schema.
After you approve the selected workflow:
Use fetch_schema with the site, endpoint, and parameters we selected. Return a short
summary of the records, then show credits_used, credits_remaining, and cached from
the response metadata.
lookup_schema is safe to use without a key. fetch_schema appears only when the
key is configured. It reads data through Hermai Cloud and consumes credits for a
successful request. Do not give the server browser cookies, bearer tokens, or a
request that changes data on another service.
For a full verification checklist and the expected failure paths, see the Claude Code guide.
Tools
Always available (no key required):
lookup_schema— search Hermai schemas by domain, task, category, or verification state.list_public_schemas— page through public schemas.submit_schema_request— submit the six-field intake for a brittle browser/API workflow.classify_browser_workflow— locally classify whether a workflow maps to direct API, hidden endpoint, browser-only, or owner/auth work.check_schema_request_status— check a schema request status.
Available only when HERMAI_API_KEY (or HERMAI_PLATFORM_KEY) is set:
fetch_schema— execute a registered schema through hosted/v1/fetchand return live data. Read-only data retrieval, and it consumes Hermai credits: a standard call costs 1 credit and some higher cost sites cost 5; only successful calls are billed. Inputs:site,endpoint(resolve both withlookup_schemafirst;endpointis case-sensitive), and optionalparams. The result includes the upstreamdataplus a meta summary (credits_used,credits_remaining,latency_ms,cached); failures surface the APIcodeandmessage, plusupgrade_toandupgrade_urlwhen a credit 402 offers an upgrade path. Use it for read workflows only — write/owner-approved workflows go through the Hermai CLI's signed-write path, not this tool.
Never submit cookies, bearer tokens, API keys, session IDs, or private session data through schema-request intake.
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.