Filesystem MCP Server
About This Server
Node.js server implementing Model Context Protocol (MCP) for filesystem operations.
Server Information
This webpage is a GitHub repository page for the "servers" project under the "modelcontextprotocol" organization. Specifically, it displays the contents of the "src/filesystem" directory within the "main" branch. The repository aims to provide Model Context Protocol (MCP) servers.
ā Key Points:
* The "servers" repository is a public project by "modelcontextprotocol" on GitHub.
* The page is focused on the "src/filesystem" directory, which contains code and configurations for a file system MCP server.
* The file system MCP server enables operations on files and directories, including reading, writing, creating, listing, moving, searching, and retrieving metadata.
* The server only permits actions within specified directories.
* The page also includes information on how to use the server with Claude Desktop, including configuration details and Docker build instructions.
* The project is licensed under the MIT License.
š Main Findings:
* The repository contains a functional file system MCP server implemented in Node.js.
* The provided configuration examples for Docker and NPX indicate how to set up and run the server.
* The README.md file comprehensively documents the server's features, API, and usage.
š Details:
* The file system MCP server supports various tools such as read\file, read\multiple\files, write\file, edit\file, create\directory, list\directory, move\file, search\files, and get\file\_info.
* The edit\_file tool supports line-based and multi-line content matching, whitespace normalization, fuzzy matching, multiple edits, indentation preservation, Git-style diff output, dry run mode, and debugging.
* Claude Desktop usage involves specifying a command (e.g., "docker" or "npx") and arguments, including directory mappings.
* Docker build command: docker build -t mcp/filesystem -f src/filesystem/Dockerfile .
šÆ Conclusion:
The webpage provides access to the source code and documentation for a file system MCP server, enabling developers to integrate file system operations into applications using the Model Context Protocol. The comprehensive documentation and configuration examples facilitate easy setup and use.
Server Features
read_file
Read complete contents of a file
read_multiple_files
Read multiple files simultaneously
write_file
Create new file or overwrite existing (exercise caution with this)
edit_file
Make selective edits using advanced pattern matching and formatting
create_directory
Create new directory or ensure it exists
list_directory
List directory contents with [FILE] or [DIR] prefixes
move_file
Move or rename files and directories
search_files
Recursively search for files/directories
get_file_info
Get detailed file/directory metadata
list_allowed_directories
List all directories the server is allowed to access
Provider Information
Modelcontextprotocol
cloud Provider