hermes-agent-mcp
This server lets an MCP client operate a local Hermes Agent installation over stdio: hand it tasks, inspect and change its config, manage cron jobs, control the gateway, run health checks, list skills/sessions, and optionally run shell commands.
Ask the agent:
hermes_askruns one non-interactive turn with Hermes' own tools, skills, and memory, optionally choosing a model and timeout.Health and status:
hermes_statusreports server/CLI status;doctorrunshermes doctor;model_infoshows default model, provider, and Portal status.Gateway control:
gateway_statuschecks whether the messaging gateway runs;gateway_restartrestarts it.Cron management:
cron_list,cron_create,cron_edit,cron_run, andcron_runslet you list, create, modify, trigger, and inspect scheduled jobs (including per-job model and reasoning effort).Typed config access:
config_getreads dottedconfig.yamlkeys;config_setwrites values with explicit types (str, int, float, bool, null, json) and backs up the file first.Skills and sessions:
skills_listshows installed skills;sessions_listlists recent sessions.Optional shell access:
shellruns host commands, but is disabled unlessHERMES_MCP_ALLOW_SHELL=1.Operational safety: read-only mode via
HERMES_MCP_ALLOW_WRITE=0, subcommand allowlist, credential redaction, and no network exposure (stdio only).
Allows operating a local Hermes Agent installation: handing the agent tasks, reading and changing its configuration, managing cron jobs, restarting the gateway, running diagnostics, listing skills and sessions, and checking model/provider status.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@hermes-agent-mcp run hermes_ask: summarize my unread emails and draft replies for the top 3 urgent ones"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
hermes-agent-mcp
Operate your local Hermes Agent install from any MCP client — without exposing it to the network.
hermes-agent-mcp is a Model Context Protocol server that wraps the local hermes CLI over stdio. Point Claude Code, Cursor, Codex or any other MCP-capable agent at it and they can hand Hermes a task, read and change its config, manage cron jobs, restart the gateway and run hermes doctor — without a terminal and without ever seeing a token.
uvx hermes-agent-mcpThat is the whole install. No ports, no tunnel, no OAuth. It runs as a child process of your MCP client, on the same machine as Hermes, and nothing leaves the box.
mcp-name: io.github.woonyong-choi/hermes-agent-mcp
Why this exists
Hermes is a great always-on agent, but everything about operating it happens in a terminal: hermes cron edit, hermes config set, hermes gateway restart. If the agent that wants to do those things has no terminal — a desktop app, a coding assistant sandboxed away from your shell — it is stuck asking a human to type for it.
There is already a good project called hermes-mcp by mlennie. It solves a different problem: reaching Hermes remotely, over HTTP through a cloudflared tunnel with OAuth, so a hosted client can delegate tasks. If that is what you need, use it.
This project was written by someone who did not want that. Opening a Hermes gateway to the internet means an agent with a shell is one leaked token away from anyone. hermes-agent-mcp stays local on purpose:
it never listens on a port — MCP over stdio only
it never handles credentials — it calls the CLI, which already has them
it exposes the operations surface (cron, config, gateway, doctor, skills), not just "send a prompt"
hermes-agent-mcp (this) | hermes-mcp (mlennie) | |
Transport | stdio, local process | HTTP, tunnel + OAuth |
Reachable from | MCP clients on the same machine | Anywhere |
Surface | 16 tools: ask + cron, config, gateway, doctor, skills, sessions | 4 tools: ask, check, cancel, reset |
Typed | Yes | — |
Network exposure | None | By design |
Related MCP server: hermes-gpt
Tools
Tool | What it does |
| Server config, whether the CLI answers, which tools are enabled |
| Hand the agent a task and get its reply (one non-interactive turn) |
|
|
| Messaging gateway state and restart |
| Scheduled jobs, including per-job model and reasoning effort |
| Typed reads and writes against |
| Installed skills |
| Recent sessions |
| Default model, provider and Nous Portal status |
| Run a shell command on the host — off by default |
| Point the bridge at a chat (Telegram by default) |
| Ask through the gateway and mirror prompt + reply into that chat |
bridge_ask keeps the phone in the loop
hermes_ask runs a one-shot CLI turn: fine for work, but it runs outside the gateway, so nothing appears in the user's chat. bridge_ask goes through the gateway's own webhook adapter instead: your prompt is posted into the chat (prefixed ▸ Claude Code · — the caller name comes from HERMES_MCP_CALLER, the format from HERMES_MCP_LABEL_FORMAT), the agent runs inside the gateway with its full toolset, and the reply lands in the chat and comes back to you. The person can pick the thread up on their phone as if they had typed it themselves.
bridge_setup registers two loopback-only, HMAC-signed webhook routes and targets the most recently active chat unless you pass chat_id. The secret lives in $HERMES_HOME/hermes-agent-mcp.json (mode 0600) and is never returned to the model. The bridged turn does not share the chat's own session history — Hermes keys webhook sessions separately — but memory and skills are shared and the transcript in the chat is continuous.
config_set fixes a real trap
hermes config set platforms.telegram.reply_to_mode off stores the YAML boolean False, not the string "off". Several Hermes options compare against the string, so the setting silently does nothing. config_set takes an explicit value_type (str, int, float, bool, null, json), writes a .bak before touching the file, and returns the resulting section so you can see what landed.
Setup
Claude Code
claude mcp add hermes -- uvx hermes-agent-mcpCursor / Windsurf / Claude Desktop
{
"mcpServers": {
"hermes": {
"command": "uvx",
"args": ["hermes-agent-mcp"]
}
}
}Hermes itself
Hermes can drive its own install — useful for a supervisor profile that manages other profiles. Add to ~/.hermes/config.yaml:
mcp_servers:
hermes:
command: uvx
args: ["hermes-agent-mcp"]From a clone
git clone https://github.com/woonyong-choi/hermes-agent-mcp
cd hermes-agent-mcp
uv tool install -e .Configuration
Everything is an environment variable, so the same server works on macOS, Linux, WSL and inside a container that mounts someone else's ~/.hermes.
Variable | Default | Meaning |
|
| Hermes data directory |
|
| Path to the CLI |
|
| Allow tools that change state (cron edit, config set, restart). Set |
|
| Enable the |
|
| Seconds for ordinary CLI calls |
|
| Seconds for |
|
| Characters returned per call before truncation |
|
| Who this registration is for; shown in the chat prefix ( |
|
| Template for that prefix, e.g. |
Security model
This server gives a language model the ability to operate an agent that has a terminal. The design assumes the model is talking to untrusted content and keeps the blast radius small:
Argument lists, never a shell. Every CLI call is
subprocess.run([...])withshell=False. Prompt text cannot become shell syntax.Subcommand allowlist. Only
config,cron,doctor,gateway,model,portal,profile,sessions,skills,toolsand--versionare reachable.hermes authand anything that handles credentials is not, on purpose.Redaction on every return. Telegram bot tokens, Anthropic/OpenAI/GitHub/Slack/AWS keys and JWTs are replaced with
[redacted]before output reaches the model..envis never read.Read-only mode.
HERMES_MCP_ALLOW_WRITE=0blocks every state-changing verb.Shell is opt-in.
shellrefuses to run until you setHERMES_MCP_ALLOW_SHELL=1, and you should only do that on a machine you control, for an agent you trust.
See SECURITY.md for reporting.
Releasing
Tag a version and CI publishes to PyPI via Trusted Publishing and attaches the wheel to a GitHub release:
git tag v0.1.0 && git push --tagsserver.json at the repo root is the manifest for the MCP Registry; publish it with mcp-publisher publish after the PyPI release exists.
Development
uv venv && source .venv/bin/activate
uv pip install -e ".[dev]"
pytest
ruff check .Tests do not need a Hermes install; the runner is exercised against a missing binary and the config writer against a temp directory.
Compatibility
Built against Hermes Agent 0.21.x. The CLI is moving fast — if a subcommand's flags change, the tool returns the CLI's own error text rather than guessing. Issues and PRs that track upstream changes are welcome.
License
MIT. Hermes Agent is MIT-licensed by Nous Research; this project is independent and not affiliated with them.
Available Tools
16 toolsconfig_getA
Read one config.yaml value by dotted key, e.g. display.show_reasoning.
Inputs: key (required). Returns: result
config_setA
Write one config.yaml value with an explicit type.
value_type is one of str, int, float, bool, null, json. Passing a type
avoids the YAML trap where "off", "no" and "yes" silently become booleans -
several Hermes options compare against the string, so an auto-parsed value
quietly does nothing. A .bak copy is written before the file changes.
Inputs: key (required), value (required), value_type. Returns: result
cron_createB
Create a scheduled job.
schedule accepts what the Hermes CLI accepts, including natural language
such as "every day at 23:00".
Inputs: name (required), prompt (required), schedule (required), deliver. Returns: result
cron_editB
Change a scheduled job in place, keeping its id and run history.
Inputs: job_id (required), model, prompt, schedule, +1 more. Returns: result
cron_listA
List scheduled jobs with their schedules and next run times.
Inputs: no named parameters. Returns: result
cron_runA
Queue a job to run on the next scheduler tick instead of waiting.
Inputs: job_id (required). Returns: result
cron_runsA
Show recorded execution attempts, newest first.
Inputs: job_id. Returns: result
doctorA
Run hermes doctor and return its health report.
Inputs: no named parameters. Returns: result
gateway_restartA
Restart the messaging gateway so configuration changes take effect.
Inputs: no named parameters. Returns: result
gateway_statusA
Show whether the messaging gateway is running and supervised.
Inputs: no named parameters. Returns: result
hermes_askA
Give the Hermes agent a task and return its reply.
Runs one non-interactive turn with the agent's own tools, skills and memory. Use this for work; use the specific tools below for inspection and config.
Inputs: prompt (required), model, timeout_seconds. Returns: result
hermes_statusA
Report how this server is configured and whether the Hermes CLI answers.
Inputs: no named parameters. Returns: result
model_infoA
Show the configured default model and provider, plus Nous Portal status.
Inputs: no named parameters. Returns: result
sessions_listA
List recent sessions so you can resume or inspect one.
Inputs: limit. Returns: result
shellA
Run a shell command on the Hermes host.
Disabled unless HERMES_MCP_ALLOW_SHELL=1. Intended for agents that can reach this MCP server but have no terminal of their own.
Inputs: command (required), timeout_seconds. Returns: result
skills_listA
List installed skills with category, source and enabled state.
Inputs: no named parameters. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 16 tools
Most tools target distinct concerns (cron vs config vs gateway), but hermes_status, doctor, config_get, and model_info all provide overlapping status/configuration information, requiring careful description reading.
Naming patterns are mixed: single nouns (doctor, shell), noun_noun compounds (hermes_status, model_info), and noun_verb constructions (cron_create, config_get) appear without a consistent convention. Some tools have domain prefixes while others do not.
At 16 tools, the set sits at the heavy end of the reasonable range. The breadth of domains (agent execution, gateway, cron, config, skills, sessions, shell) mostly justifies the count, but it feels slightly sprawling for a single server.
Core agent interaction and inspection are well covered, and cron has rich lifecycle support, but notable gaps exist: no cron_delete, no skill management beyond listing, and session support stops at listing with no resume or detail operations.
Maintenance
Related MCP Connectors
Develop, manage, and debug Railway projects, services, and deployments from within agents.
Work with roles, tasks and delegated agent work within current workspace permissions. Setup: In a remote MCP client that supports Streamable HTTP and OAuth, add https://platform.samuelz.com/api/v1/mcp/operator?toolset=agent. Sign in to Samuelz and select your authorized workspace. An active workspace membership and the relevant module permissions are required. Review the requested permissions before authorizing. Existing approval requirements continue to apply.
Operate smplkit from your agent: feature flags, config, logging, audit, and scheduled jobs.
Remote MCP server exposing your Node Command fleet (files, shell, processes, browser) to AI hosts.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables MCP-based interaction with a local Hermes Agent installation, providing file read/search, skill management, and optional sandboxed write, terminal, and memory tools.9MIT
- AlicenseCqualityDmaintenanceMCP sidecar for Hermes Agent exposing operator tools (cron, skills, config, workspace) with tiered read-only/operator/owner modes and dry-run by default for safe local development.431MIT
- AlicenseNot gradedqualityDmaintenanceEnables MCP agents to delegate tasks to a local Hermes Agent for terminal, file, browser, and coding operations, and schedule recurring jobs.MIT
- AlicenseNot gradedqualityBmaintenanceProvides a stdio MCP server for single-user local operation of the otaman platform, enabling agent orchestration, slash commands, and skill management within Claude Code without a remote bridge daemon.3AGPL 3.0