MCP -Filesystem
Enhanced MCP filesystem server with fixed limitations and powerful features
claude mcp add --transport stdio redf0x1-mcp-server-filesystem npx -y @redf0x1/mcp-server-filesystem /path/to/allowed/directory
How to use
MCP -Filesystem is an enhanced MCP server that exposes a suite of filesystem operations via MCP client tooling. It provides robust read and write capabilities, directory management, and a secure, feature-rich interface for working with files and directories through MCP requests. Core tools include read_file, read_multiple_files, write_file, delete_file, edit_file, search_files, list_directory, create_directory, get_file_info, move_file, run_command, and list_allowed_directories. These tools are designed to fix common limitations found in standard MCP filesystem implementations such as improved glob pattern handling, combined head/tail reads, and diff-preview-enabled editing. The server is intended to be consumed by MCP clients (e.g., VS Code MCP integrations, Cursor IDE, Windsurf AI Editor) to perform filesystem operations across a controlled workspace.
How to install
Prerequisites:
- Node.js v18 or newer
- npm (bundled with Node.js) or pnpm/yarn if preferred
Installation options:
Option 1: Install globally via NPM (recommended for quick start)
npm install -g @redf0x1/mcp-server-filesystem
Usage (global):
mcp-server-filesystem /path/to/allowed/directory
Option 2: Install locally (per project)
git clone https://github.com/redf0x1/mcp-server-filesystem.git
cd mcp-server-filesystem
npm install
Usage (local):
node server-filesystem.js /path/to/allowed/directory
Option 3: Run with NPX (no installation required)
npx @redf0x1/mcp-server-filesystem /path/to/allowed/directory
Prerequisites recap: Ensure your environment meets Node.js v18+, and you have an accessible workspace path that you authorize for server operation.
Additional notes
Notes and tips:
- The server accepts multiple allowed directories when launched via NPX or local node invocation; specify each path as separate arguments where supported by the client configuration.
- In MCP client configs, the cwd field may be used when running from a local installation to point to the server directory.
- For secure environments, consider using environment variables like NODE_ENV to control behavior (e.g., development vs. production).
- If you encounter issues with glob patterns, verify the read/write permissions of the target directories and ensure the paths are correctly mounted in containerized setups.
- When using Docker integration, bind mounts should reflect your host workspace and data directories correctly to avoid permission or path resolution problems.
Related MCP Servers
mcp-openapi-schema-explorer
MCP server providing token-efficient access to OpenAPI/Swagger specs via MCP Resource Templates for client-side exploration.
Pare
Dev tools, optimized for agents. Structured, token-efficient MCP servers for git, test runners, npm, Docker, and more.
vulcan-file-ops
A Security-centric MCP Server providing enterprise-grade filesystem powers to AI assistants—read, write, edit, and manage files with comprehensive CVE protection and user-controlled access.. [Explore comprehensive code documentation and architecture details on DeepWiki](https://deepwiki.com/n0zer0d4y/vulcan-file-ops)
MCP-Client -Project-using-NodeJS
A minimal Model Context Protocol (MCP) implementation built with Node.js and TypeScript. This project demonstrates client–server communication over stdio, structured message handling, and local data access, developed with VS Code and GitHub Copilot to explore modern AI tool integration workflows.
filesystem
📁 Secure, efficient MCP filesystem server - token-saving batch operations with project root confinement
mcp-debugpy
MCP server for AI-assisted Python debugging using debugpy and Debug Adapter Protocol