synology-chat-hermes-mcp
Provides read/write file tools for a Synology NAS SMB share, with strict path jail, size limits, and active-content rejection.
Click on "Install 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., "@synology-chat-hermes-mcplist files in projects folder"
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.
synology-chat-hermes-mcp
A constrained FastMCP HTTP server that exposes a fixed Synology NAS SMB share to AI agents as read/write file tools — with strict path jail, size limits, and active-content rejection built in.
Originally built as the file channel for a family Hermes deployment (control agent → MCP → SMB3 → NAS). Works with any MCP client (Hermes, Claude, etc.).
Why this exists
AI agents with file access are only safe if the access is bounded. This server:
Jails every path to one fixed share (
NAS_SHARE). Path traversal (.., absolute paths, symlink/reparse-point escape) is rejected before any SMB call.Rejects public WAN servers —
NAS_SERVERmust be a private, link-local, or Tailscale (100.64.0.0/10) literal IP. DNS names and public IPs are refused.Never stores credentials — the SMB password is read from a docker secret file at startup (
NAS_PASSWORD_FILE), never from env vars or code.Blocks active content — DOCX/XLSX/PDF writers generate sanitized documents only; binary uploads are scanned for macros, external relationships, and scripts; extension/media-type mismatches are rejected.
Bounds everything — file size, binary size, document characters, spreadsheet cells, image pixels, search results all have hard limits.
Audits operations — every mutation is appended to a JSONL audit log.
Related MCP server: MCP File System Server
Architecture
Hermes (or any MCP client)
→ HTTP :8000/mcp (FastMCP, streamable HTTP)
→ NasService (validation, limits, audit)
→ SMBBackend (smbprotocol, SMB3, encryption+signing required)
→ Synology NAS shareTools
Tool | Description |
| SMB3 connectivity check |
| List a directory below the share |
| Search file names below a path |
| Read a size-limited UTF-8 text file |
| Atomic UTF-8 write (existing files protected unless |
| Validated base64 write (TXT/DOCX/XLSX/PDF/PNG/JPEG) |
| Safe DOCX from title + plain/Markdown-like text |
| Safe XLSX (formulas rejected) |
| Static PDF (no scripts/links/embedded files) |
| Extract text from TXT/MD/CSV/JSON/YAML/DOCX/XLSX/PDF |
| Create a directory (note: create one level at a time — |
| Move within the share |
| Metadata without content |
Known limitation: create_directory validates the parent before makedirs, so a multi-level path whose first segment doesn't exist returns not_found even with parents=True. Create one level at a time.
Quick start
cp .env.example .env # set NAS_SERVER (Tailscale/private IP), NAS_USERNAME
# provide the SMB password as a docker secret:
printf '%s' 'YOUR_SMB_PASSWORD' > ./synology_password
chmod 600 ./synology_password
docker build -t nas-mcp .
docker run -d --name nas-mcp \
--env-file .env \
-v "$PWD/synology_password:/run/secrets/synology_password:ro" \
-v nas-mcp-audit:/var/log/nas-mcp \
-p 8000:8000 \
nas-mcpHealth check:
curl -X POST http://127.0.0.1:8000/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"health","arguments":{}}}'Hermes MCP config
mcp_servers:
nas-mcp:
type: http
url: http://nas-mcp:8000/mcpRunning tests
python -m nas_mcp.smoke # exercises the full tool chain against the live shareEnvironment reference
Variable | Required | Default | Notes |
| ✅ | — | Private/Tailscale literal IP only |
| ✅ | — | Fixed share name, enforced at runtime |
| ✅ | — | Share-level SMB user |
|
| Docker secret path | |
|
| ||
|
| SMB3 encryption required | |
|
| SMB3 signing required | |
|
| ||
|
| ||
|
| ||
|
| ||
|
| ||
|
| ||
|
| ||
|
| ||
|
| ||
|
|
Security notes
The SMB password is the only secret in the system and it lives only in the docker secret file. Nothing is hardcoded, nothing is stored in
.envin plaintext beyond non-secret tuning values (and.envis git-ignored).Bind to a private interface in production; do not expose
:8000publicly.The share name and SMB user are configuration (
NAS_SHARE,NAS_USERNAME) — set them per deployment; nothing in the code assumes a particular value.
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityCmaintenanceProvides a secure, constrained filesystem workspace for LLM agents to manage files, notes, and code artifacts via stdio or remote HTTP. It features granular access controls, including extension whitelisting, storage quotas, and immutable paths for safe automated file operations.BSD 3-Clause
- Flicense-qualityCmaintenanceA secure, sandboxed file system server that enables reading, writing, searching, and managing files through MCP-compatible AI clients with path traversal protection and size limits.
- Alicense-qualityBmaintenanceExposes local file system operations to AI assistants via Streamable HTTP with security features like auth, path whitelisting, and audit logging.2,8841MIT
- FlicenseAqualityBmaintenanceMCP server enabling AI agents to manage and monitor Synology NAS via official DSM API, including file operations, system stats, backups, downloads, and camera lists.15
Related MCP Connectors
OCR, transcription, file extraction, and image generation for AI agents via MCP.
File uploads for AI agents. Upload, list, and manage files. No signup required.
Agent-native MCP server over the public saagarpatel.dev corpus. Read-only, stateless.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/shunnnnn-png/synology-chat-hermes-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server