A file snippet for config.yaml that allowlists only the MCP tools you need with tools.include, so Hermes sees fewer tools, spends fewer tokens and cannot reach the risky ones.
An MCP server offers twenty tools and you use three, or some of its tools can delete, send or publish and you do not want Hermes to have them at all. Saves about 20 minutes
[SERVER_NAME] | e.g. notion; the name you gave the server under mcp_servers |
[SERVER_URL] | e.g. https://mcp.example.com/mcp; the address from the provider's docs |
[FIRST_TOOL] | e.g. search; copy the exact tool name from hermes mcp test |
[SECOND_TOOL] | e.g. fetch; another read-only tool you actually use |
Keep a comment above each include list saying when you last checked the server's tools. Servers add tools in updates, and with include those new tools stay hidden until you choose to add them, which is exactly what you want.
For a local stdio server that needs a token, put the token in ~/.hermes/.env and keep the include list just as short. Chapter 10 shows how to keep that value out of config.yaml.
Written for Hermes Agent v0.21.x. Check commands against your version with hermes --version. This site is independent and not affiliated with Nous Research.
Get the Hermes Starter Pack: 15 recipes for setup, SOUL.md, memory, skills, scheduled jobs, Telegram and approvals.
More free recipes: Connect an MCP Server to Hermes Agent · A Code Review Skill for Hermes Agent
Need the whole set? The Hermes Agent Cookbook has 100 recipes for $27.