Back to Home
iceener icon

files-stdio-mcp-server

Verified Safe

by iceener

Overview

Provides sandboxed filesystem access for AI agents to explore directories, read/search file content, and safely edit text files with checksum verification.

Installation

Run Command
bun run src/index.ts

Environment Variables

  • FS_ROOTS
  • LOG_LEVEL
  • MAX_FILE_SIZE

Security Notes

The server implements strong sandboxing by preventing absolute paths and directory traversal (`..`) outside configured mount points (`FS_ROOTS`). All file operations are routed through a robust path resolution layer (`src/lib/paths.ts`). Input validation is performed using Zod, mitigating common injection risks. File write operations (`fs_write`) strongly recommend checksum verification to prevent stale or unintended overwrites, enhancing data integrity. There is no apparent use of `eval` or direct arbitrary command execution. Glob patterns for searching are converted to safe regular expressions, not shell commands. Communication is via stdin/stdout, reducing network attack surface.

Similar Servers

Stats

Interest Score72
Security Score9
Cost ClassMedium
Avg Tokens1000
Stars10
Forks0
Last Update2025-12-09

Tags

filesystemmcp-servercoding-agenttext-editingsandboxed