A local, customizable MCP server for filesystem access.
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.
Tools (13)
read_text_fileRead file contents as text.read_media_fileRead image or audio files as base64.read_multiple_filesRead multiple files in one call.write_fileCreate or overwrite a file.edit_fileMake line-based edits with diff output.create_directoryCreate directories recursively.list_directoryList directory contents.list_directory_with_sizesList with file sizes and sorting.directory_treeRecursive JSON tree view.move_fileMove or rename files.search_filesGlob-based recursive file search.get_file_infoFile metadata.list_allowed_directoriesShow configured allowed paths.Configuration
{"mcpServers": {"filesystem": {"command": "node", "args": ["/path/to/FilesystemMCP/dist/index.js", "/your/allowed/directory"]}}}