Back to Home
Vishakhavel icon

filesystem-mcp-server

Verified Safe

by Vishakhavel

Overview

Provides an agent or external system with controlled file system access (listing, reading, searching) over a JSON-RPC stdin/stdout interface.

Installation

Run Command
ts-node src/server.ts

Environment Variables

  • MCP_FS_ROOT
  • MAX_READ_BYTES

Security Notes

The server implements robust path traversal protection using `resolveSafePath` to confine all file operations strictly within a configured `ROOT_DIR`. File read operations are limited by `MAX_READ_BYTES` to prevent excessive memory usage or denial-of-service, and the search tool crudely filters out common binary file types. Communication occurs via stdin/stdout, which inherently limits direct network attack vectors. The default `ROOT_DIR` (`/Users/vichu/Desktop/`) is user-specific and highlights the critical need for users to configure the `MCP_FS_ROOT` environment variable to a sensible, isolated directory.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassMedium
Avg Tokens2000
Stars0
Forks0
Last Update2025-11-27

Tags

FilesystemJSON-RPCToolingNode.jsAgent Utility