EN
My account

Your privacy, your call. No advertising cookies. May we count your visit in aggregate (Cloudflare, no cookies) and remember where you came from? If you reject, we won’t measure your visit. · Cookies · Privacy

Privacy settings

Choose what we measure and what we keep in this browser. We never sell or share your data.

Essential

Remember your theme, language, saved items and this choice. Without them the site cannot work the way you ask.

Always on

Keeps the source of your first and latest visit for 90 days (utm parameters and referring site). It only leaves your browser if you subscribe to the newsletter.

Cloudflare Web Analytics counts visits in aggregate: page, referring site, country, browser and load times. No cookies, no identifiers and no profiling; nothing is stored in your browser. It only loads if you accept it. If you reject it or switch it off, it does not load (or stops loading from the next page) and we do not count your Telegram clicks either.

Cookies · Privacy

Configurations · Level intermediate

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.

Start with:

By Cognenza editorial team · Updated · 3 min read · Sources cited

In this guide · 8
  1. What it’s for
  2. The recipe
  3. Line by line
  4. When you want it to write too
  5. How to check
  6. Precautions
  7. Frequently asked questions
  8. Sources

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 ~/.hermes/config.yaml 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 by line
LineWhat it does
mcp_servers: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 /home/your-user/ai-projects with your folder’s real path. On Windows it looks like C:/Users/your-user/ai-projects.

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.

Glossary · Configurations

Keep reading

Next step · Tools

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.

Safety and good use

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

Source titles are translated by Cognenza. Links go to the official page in your language when there is one; otherwise, to the English or Spanish original.

  1. MCP in Hermes Agent (official documentation) — Nous Research (GitHub)
  2. What is the Model Context Protocol? — Model Context Protocol
  3. 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.

Found this guide useful? A new guide in your inbox every Tuesday

Every Tuesday, 5 minutes: AI news with sources, a tool with its prompt and a guide. Free, with one-click unsubscribe. What is inside and a sample issue