Back to Home
gomcpgo icon

filesys

Verified Safe

by gomcpgo

Overview

A secure Model Context Protocol (MCP) server that provides controlled filesystem operations for client applications and coding agents.

Installation

Run Command
go run ./cmd/main.go

Environment Variables

  • MCP_ALLOWED_DIRS

Security Notes

The server implements robust security measures for path validation, including: 1) Resolving all symbolic links (`filepath.EvalSymlinks`) to prevent traversal attacks. 2) Converting all paths to absolute form. 3) Strict prefix matching with path separators to prevent `/allowed` matching `/allowed_attacker`. 4) Validation of parent directories for non-existent paths (write operations). Broken symlinks are explicitly rejected. All access attempts are logged with a 'SECURITY:' prefix. No `eval` or similar dangerous patterns are used. No hardcoded secrets are evident in the provided code. The security model appears comprehensive and well-implemented.

Similar Servers

Stats

Interest Score33
Security Score10
Cost ClassMedium
Avg Tokens500
Stars3
Forks1
Last Update2025-12-01

Tags

FilesystemMCP ServerSecurityGoFile Management