FilesystemMCP
A local, customizable MCP (Model Context Protocol) server for filesystem access — forked from the official Anthropic implementation and extended with additional functionality.
Credits
This project is based on the official @modelcontextprotocol/server-filesystem package by Anthropic, licensed under the terms found in the original repository. The original codebase provides a secure, well-structured foundation for filesystem access via MCP.
Why this fork?
The goal of this fork is to extend the original server with additional tools and customizations for personal/local use, while keeping the core security model (allowed directories, path validation) intact.
Setup
1. Install dependencies
cd FilesystemMCP
npm install
2. Build
npm run build
3. Configure Claude
In your claude_desktop_config.json, point the filesystem server to your local build:
{
"mcpServers": {
"filesystem": {
"command": "node",
"args": [
"/path/to/FilesystemMCP/dist/index.js",
"/your/allowed/directory"
]
}
}
}
Restart Claude after saving.
Tools
All tools from the original server are included:
read_text_file/read_file— Read file contents as textread_media_file— Read image or audio files as base64read_multiple_files— Read multiple files in one callwrite_file— Create or overwrite a fileedit_file— Make line-based edits with diff outputcreate_directory— Create directories recursivelylist_directory— List directory contentslist_directory_with_sizes— List with file sizes and sortingdirectory_tree— Recursive JSON tree viewmove_file— Move or rename filessearch_files— Glob-based recursive file searchget_file_info— File metadatalist_allowed_directories— Show configured allowed paths
License
See the original repository for license details.