Hermes Agent
Hermes Agent vs n8n: which to use and how to connect
Updated 30 November 2026
Choose n8n when you know the steps of a job and want to draw them, set rules and run them on a schedule. Choose Hermes Agent when you want to describe a job in chat and let the agent choose tools using context from earlier conversations. You can also ask Hermes to call a workflow you already run in n8n.
This guide uses the Hermes Agent 0.23.5 documentation and source, the n8n 2.49.9 release and source, n8n’s live docs and the Hermes MCP server plugin 1.0.1 documentation, all read on 30 November 2026. The connection steps are based on the tagged Hermes MCP guide, the Hermes webhook guide, the n8n 2.49.9 release and the n8n MCP connection guide. The ReadyHermes details come from the product facts verified the same day.
Where each is the better fit
n8n is a workflow automation platform. You connect nodes on a visual canvas and can add custom code or AI steps. Hermes Agent is a conversational agent from Nous Research. You use it through a terminal or its messaging gateway. It can choose tools, use memory across sessions and create reusable skills.
| What you need | Better fit | How it would work |
|---|---|---|
| A scheduled sync with fixed rules | n8n | Schedule Trigger starts the run, HTTP Request calls the API and If branches on your rule. |
| An assistant for follow-up questions | Hermes Agent | Ask in chat and let the agent use remembered context and choose tools for the task. |
| Run a defined process from a conversation | Both | Hermes handles the conversation and calls the n8n workflow that contains the steps. |
The examples draw on the n8n README and the Hermes Agent README.
Hosting and licences
n8n runs n8n Cloud for you. If you self-host, you maintain the infrastructure and can use the free Community edition. Install and start Docker before running the tagged README’s quick start. Docker publishes port 5678 on all host interfaces by default, so use these commands in a local environment where outside access to that port is blocked. Open http://localhost:5678 when the container is running. The image in this example has no explicit version tag.
docker volume create n8n_data
docker run -it --rm --name n8n -p 5678:5678 -v n8n_data:/home/node/.n8n docker.n8n.io/n8nio/n8nIf you use npm, the live install guide gives a Node.js range of 20.19 through 24.x. For 2.49.9, follow the tagged package requirement of >=24.0.0, which is what that release declares. To run Hermes yourself, follow the Hermes Agent installation guide before connecting either service.
Hermes Agent is open source under the MIT licence. n8n describes its model as fair-code and its software as source-available. Its explanation of open source says the restrictions on use put it outside the Open Source Initiative definition. The Sustainable Use License, Version 1.0, permits use and modification for your own internal business, personal or non-commercial purposes. Redistribution must be free and non-commercial.
The Community licence summary lists an exception for filenames containing .ee.. For the full scope, follow the tagged licence text. It covers Enterprise exceptions for directory names containing .ee as well as filenames containing .ee., and gives third-party components their own licence terms. The licence FAQ says the Community licence lets you build, run and maintain workflows for clients on your own self-hosted instance. Clients can receive the results. Reserve access to the instance and workflow editor for your team. Letting external users configure their own workflows through an API, MCP, a custom interface or an agent is outside that permission.
What the n8n AI Agent node can do
Connect a chat model to an n8n AI Agent node and give it the tools you want it to choose from. For example, use the MCP Client Tool sub-node to make tools from an external MCP server available to the agent. If your workflow needs to call a specific MCP tool directly, use the separate MCP Client node. The Postgres Chat Memory node can store chat history across interactions.
The live AI Agent docs say to connect at least one tool. In 2.49.9, the default AI Agent node is version 3.1, and the tagged builder metadata marks the chat model required and tool connections optional. Follow the tagged node for this release. Attach a tool when you want the model to be able to call it.
The MCP Client Tool docs still list SSE Endpoint. That field belongs to node version 1. The tagged node defaults to version 1.4, where you use Endpoint and Server Transport, with HTTP Streamable selected by default. Both n8n client nodes expect URL-based transports. Hermes’s official MCP server plugin (version 1.0.1) communicates over a local process’s standard input and output. The two n8n client nodes cannot connect directly to that plugin.
Connect Hermes to n8n with browser OAuth
Use n8n’s instance-level Model Context Protocol (MCP) server when you want Hermes to find and run workflows through one connection. n8n also supports building and editing workflows over this connection, subject to permissions. This works with n8n Cloud and self-hosted n8n if the computer running Hermes can reach the MCP URL.
- In n8n, have an instance owner or admin open Settings → Instance-level MCP and choose Enable MCP access. Select Connect and copy the Server URL ending in
/mcp-server/http. - On the Hermes side, run
hermes mcp install n8n-officialand paste the URL when prompted. If sign-in does not complete during installation, runhermes mcp login n8n-official. Open the sign-in URL Hermes shows and approve access in your browser. For the test below, grant permission to read and execute workflows. If Hermes asks for the callback URL, copy the full URL from the browser’s address bar after approval and paste it into the Hermes terminal, even if the final page shows a connection error. The official entry uses OAuth. The retiredn8nbridge remains a separate custom entry wherever it was already configured. - In n8n, pick a workflow you can safely test. To enable it for MCP, open its workflow menu, select Settings, turn on Available in MCP and select Save. The setting applies to every connected MCP client. The user’s permissions and the access granted to the client still apply.
- Run
hermes mcp configure n8n-officialto review the tools Hermes discovers. Start a new session or use/reload-mcp, then ask Hermes to find the workflow by name. For a manual test, use a workflow whose only trigger is a Manual Trigger and ask Hermes to run it in manual mode. A protected (read-only) instance allows only production runs over MCP. On a protected instance, use a published workflow already available in MCP whose only trigger is a Schedule Trigger, and ask for production mode. Check the run in n8n.
For production mode, publish the workflow first and use a trigger that supports production runs. If several triggers are eligible or a trigger needs inputs, tell Hermes which trigger to use by name and provide any required inputs. See the n8n workflow execution reference.
A search hit is only a preview. The search_workflows tool can preview workflows the connected user can already view. For full inspection, execution or editing, check Available in MCP, the user’s workflow permissions and the access granted to the OAuth client. If the connection itself fails, check the full URL from the Hermes host and check whether n8n restricts OAuth callback URLs.
Expose a selected workflow as an MCP tool
Use the MCP Server Trigger when you want the endpoint to offer only the tools you attach to one workflow. The trigger supports Streamable HTTP and server-sent events (SSE) and offers Bearer and Header authentication.
- Add an Execute Sub-workflow Trigger to the workflow you want Hermes to call. Configure its inputs and publish it.
- In a separate workflow, add an MCP Server Trigger and attach a Call n8n Workflow Tool. Set Source to Database and select the published sub-workflow. If it expects inputs, use Workflow Inputs to supply the required values or let the model fill them in. If the sub-workflow limits who can call it, check that This workflow can be called by allows the workflow with the MCP Server Trigger. On the MCP Server Trigger, choose Bearer Auth and set the Bearer Token in its credential. Publish this workflow and copy the node’s Production URL.
- Add an entry under
mcp_serversin~/.hermes/config.yamlusing this pattern. Replace the example URL with the trigger’s URL and the asterisks with its token. Use HTTPS whenever the connection leaves the local machine. If n8n is behind a reverse proxy such as nginx, disable proxy buffering for the MCP endpoint so the connection can stream. This uses the generic HTTP MCP configuration. The catalog OAuth instructions are for the separate instance endpoint.
mcp_servers:
remote_api:
url: "https://mcp.example.com/mcp"
headers:
Authorization: "Bearer ***"Start a new Hermes session or run /reload-mcp to load the MCP entry. Ask Hermes to call the attached tool, then check the run in n8n’s Executions tab.
In self-hosted queue mode with multiple webhook replicas, n8n directs operators to route all /mcp* requests to one dedicated webhook replica. For general setup and tool selection, see the Hermes Agent MCP guide.
Start a Hermes run from n8n with a signed webhook
Use this direction when an n8n workflow has an event for Hermes to handle. These steps combine the documented features of each tool for a Hermes installation you administer.
- Run
hermes gateway setupand enable webhooks. Keep the default port of8644for this example and set a global HMAC secret when prompted. Alternatively, add the settings below to~/.hermes/.envand replace the example secret with your own.WEBHOOK_ENABLED=true WEBHOOK_PORT=8644 WEBHOOK_SECRET=your-global-secret - Add a named route under
platforms.webhook.extra.routesinconfig.yamland keep any existing routes. This example uses the global secret, delivers to the log and sets an empty toolset for this route. A route can override the global secret with its ownsecret.
If you use an HTTPS tunnel on the Hermes host, setplatforms: webhook: extra: routes: deploy-hook: signature: generic toolsets: [] deliver: logplatforms.webhook.extra.hostto127.0.0.1and point the tunnel at the local listener. If the tunnel runs on a separate host, use a firewall to allow direct access to port 8644 only from that host. Start the gateway withhermes gateway runfor a foreground test, or restart your existing gateway. On the Hermes host, runcurl http://localhost:8644/healthand check forstatusofok. - In n8n, turn a JSON object into a string and generate a timestamp in Unix seconds. Save both values for use in the Crypto and HTTP Request nodes. Use the Crypto node with Hmac, SHA256 and HEX. Set its value to the timestamp, a literal dot and the raw body, in that order. Use the same route secret in the Crypto credential’s Hmac Secret field. Hermes allows a timestamp within 300 seconds of its clock.
- In the HTTP Request node, send a
POSTto/webhooks/<route-name>on the Hermes host, using the route name from your config. For a local test, use a private address n8n can reach on port 8644. Across the internet, send the request to the tunnel’s HTTPS URL. - Under Send Headers, use the Crypto node’s hex output for
X-Webhook-Signature-V2. With the default Property Name, find the digest underdatain the JSON output. Use the exact timestamp you passed to Crypto forX-Webhook-Timestamp. Under Send Body, set Body Content Type to Raw and Content Type toapplication/json. Put the original JSON string in Body. - In the HTTP Request node, open Options → Response and turn on Include Response Headers and Status to see the HTTP status code in the output. To see a 404 in the output during the test, also turn on Never Error.
When Hermes admits the request, a normal agent route returns HTTP 202 with status set to accepted in the response body. The body also includes route, event and delivery_id. With this route’s deliver setting, check gateway.log for the response length. To see the response text, set logging.level to DEBUG in config.yaml, restart the gateway and check agent.log after sending the test request.
A wrong route or a missing or invalid signature can each return HTTP 404. Check the route name, clock, shared secret and raw body, then look for an invalid signature message in the gateway log. Setting a secret on both sides still requires sending the signed headers. Hermes 0.23.5 rejects the old body-only X-Webhook-Signature header.
A valid signature shows the request was signed with the shared secret. Treat the payload text as untrusted. Before using the route with real events, set a prompt that includes only the fields the agent needs. Keep approvals on for destructive or outbound actions. If the route is exposed to the internet, run the gateway in an isolated environment such as a virtual machine.
Start an n8n workflow when a Hermes event fires
Use an outbound hook to notify n8n when a Hermes turn finishes. In n8n, add a Webhook node and set its method to POST. Set Respond to Using 'Respond to Webhook' Node so the workflow can check the signature before replying. Copy the Test URL into the hooks.outbound entry in ~/.hermes/config.yaml. Use an endpoint you trust and that the computer running Hermes can reach. Use HTTPS if the test crosses the internet. This example follows the tagged outbound hook guide.
hooks:
outbound:
- name: ci-notify
url: https://ci.example.com/hermes-events
events: [on_session_end]
secret_env: HERMES_OUTBOUND_WEBHOOK_SECRETSet HERMES_OUTBOUND_WEBHOOK_SECRET in ~/.hermes/.env to sign the raw JSON body. Hermes sends the signature in X-Hermes-Signature-256. In the n8n Webhook node, enable Raw Body. In the Crypto node, select Hmac, SHA256 and HEX. Turn on Binary File and set Binary Property Name to data so Crypto reads the exact bytes Hermes signed. Use the same secret as Hermes.
After the Crypto node, add a JavaScript Code node. Load the built-in crypto module with require. On self-hosted n8n with an internal task runner, set NODE_FUNCTION_ALLOW_BUILTIN=crypto on the n8n process. The standard external runner image already allows crypto. For a custom external runner, allow crypto in the JavaScript runner launcher configuration.
In the Crypto node’s JSON output, read headers['x-hermes-signature-256'] and the hex digest in data. Prefix the digest with sha256=. If the header is present, convert it and the expected signature to byte buffers. Use crypto.timingSafeEqual only when the buffers have the same byte length. Treat a missing header or different lengths as an invalid signature.
Pass the result to an If node. Send the invalid branch to a Respond to Webhook node with Response Code set to 401. On the valid branch, check the signed timestamp against your clock and skip stale events or any signed delivery_id you’ve already processed before taking action. Send the success response from this branch.
Open a new Hermes terminal session or restart the gateway so it reads the config. In n8n, select Listen for Test Event, then complete a Hermes turn and check for on_session_end in the received event. When that works, publish the workflow, replace the test URL in Hermes with the final Production URL on a trusted HTTPS endpoint. Reload the config the same way and check the next run in Executions. Hermes treats redirects as delivery failures. Use this hook for best-effort notifications. Hermes ignores the HTTP response body even when n8n returns workflow output.
Hermes Agent on ReadyHermes
ReadyHermes hosts your own Hermes Agent and keeps it running. The free trial lasts 30 minutes and includes AI.
We have not tested running n8n on or with a ReadyHermes assistant or using the Hermes webhook adapter on ReadyHermes. The workspace has no screen for adding your own MCP servers or changing config.yaml settings. See what managed Hermes Agent hosting includes.
Questions
When should you use Hermes Agent or n8n?
Use n8n for repeatable workflows with steps and rules you can lay out in advance. Use Hermes Agent for conversational work that calls for tool choice and context from earlier sessions. You can also have Hermes call a workflow you keep in n8n.
Is n8n open source?
n8n describes its code as source-available and its licensing model as fair-code. Its Sustainable Use License restricts use, so n8n says it falls outside the Open Source Initiative definition. Hermes Agent uses the MIT licence.
How do you connect Hermes Agent to n8n?
Enable Instance-level MCP in n8n and copy the Server URL ending in /mcp-server/http. Run hermes mcp install n8n-official and paste the URL. If sign-in does not complete during installation, run hermes mcp login n8n-official. Open the sign-in URL Hermes shows and approve access in your browser. If Hermes asks for the callback URL, copy the full URL from the final browser page into the Hermes terminal, even if the page shows a connection error. Turn on Available in MCP for the workflow and save its settings. Review the tools and start a new Hermes session or use /reload-mcp.
Can an n8n workflow start a Hermes Agent run?
Yes. Use n8n’s HTTP Request node to POST a JSON object as a raw body to a reachable Hermes webhook route. Use HTTPS across the internet. For generic V2 signing, sign the Unix timestamp, a dot and the exact body with HMAC-SHA256, then send the digest and that same timestamp in the corresponding headers. Under Options → Response, turn on Include Response Headers and Status. To see a 404 in the output during the test, also turn on Never Error. HTTP 202 with status accepted in the body means Hermes admitted the request. The agent’s output is delivered separately.
Has ReadyHermes tested the n8n connection?
ReadyHermes has not tested running n8n on or with its assistants or using the Hermes webhook adapter. Its workspace has no screen for adding custom MCP servers or changing config.yaml settings.