Back to Home
gomcpgo icon

filesys

Verified Safe

by gomcpgo

Overview

A secure MCP server providing filesystem operations with controlled access to specified directories for agent-based interactions.

Installation

Run Command
go run ./cmd/main.go

Environment Variables

  • MCP_ALLOWED_DIRS

Security Notes

The server implements robust path validation including symbolic link resolution using `filepath.EvalSymlinks()` to prevent traversal attacks. It enforces canonical path checking against a list of explicitly allowed directories, preventing `../` traversal and prefix matching attacks (e.g., `/allowed` vs `/allowed_attacker`). Non-existent paths for write operations are validated by checking their parent directory chains. Broken symbolic links are explicitly blocked. All access denial attempts are logged with a 'SECURITY:' prefix for monitoring. Allowed directories are configured via an environment variable, preventing hardcoded paths. While highly secure, no system is entirely impervious to all theoretical attack vectors, hence a 9/10.

Similar Servers

Stats

Interest Score12
Security Score9
Cost ClassHigh
Avg Tokens5000
Stars3
Forks1
Last Update2025-12-17

Tags

FilesystemMCPSecurityFile ManagementDirectory Operations