Configuration: Hermes Agent with MCP access to a single folder
In 30 seconds
A copyable recipe for connecting Hermes Agent to the filesystem MCP server, limited to one folder and to only the tools you need, explained line by line.
In this guide · 8
What it’s for
MCP is an open standard that its website describes as “a USB-C port for AI applications”: a common way to connect an AI to tools and data. With this recipe, Hermes Agent can work with the files in a single folder and nothing else.
The recipe
Open (or create) the file ~/. and add:
mcp_servers:
filesystem:
command: "npx"
args: ["-y", "@modelcontextprotocol/server-filesystem", "/home/your-user/ai-projects"]
tools:
include: ["read_*", "list_*", "search_*"]
Line by line
| Line | What it does |
|---|---|
mcp_ | Opens the list of MCP servers Hermes should connect |
filesystem: | A name you choose for this server |
command: "npx" | The program that starts the server (comes with Node.js) |
args: [...] | Downloads the official filesystem server and gives it the only allowed folder |
tools: include: | Keeps available only the tools whose names match these patterns (here, read tools) |
Replace / with your folder’s real path. On Windows it looks like C:/.
When you want it to write too
Remove the tools: block or use exclude to remove only what you don’t want, for example:
tools:
exclude: ["move_*"]
Back up the folder first.
How to check
Restart Hermes with hermes chat and use the template below: it should list only the allowed tools and the folder you set.
Precautions
- Install MCP servers only from known sources: the MCP security guide describes the risk of compromised local servers.
- Keep the tool list as short as possible (scope minimisation).
Ready-to-copy prompt: Explain a configuration file
Frequently asked questions
What is an MCP server?
A small program that gives an AI access to a specific tool or data, following the open Model Context Protocol standard. Here, the filesystem server gives access to a folder.
Do I need Node.js?
Yes: the official example uses npx, which comes with Node.js, to download and start the filesystem server.
Can I give access to several folders?
Yes, by adding more paths to the args list. The fewer, the better.
Keep reading
Hermes Agent: installation guide
A guide to Hermes Agent, Nous Research’s open-source AI agent: requirements, installing the desktop app, first settings, privacy, limits and precautions.
AI agents: real risks
What changes when an AI doesn’t just answer but acts: files, commands, browser and messages. The risks documented by the projects themselves (prompt injection, permissions, keys) and a checklist.
Sources
- MCP in Hermes Agent (official documentation) — Nous Research (GitHub)
- What is the Model Context Protocol? — Model Context Protocol
- Security Best Practices (MCP) — Model Context Protocol
Change log
Change log
- : First published.
Educational content, prepared with the help of AI tools, with sources cited. It is not a substitute for professional advice. Tools change fast: if you spot something out of date, write to us at contacto@cognenza.com. How we work.