mcp-filesystem-server

MCP.Pizza Chef: mark3labs

Point this at one or more folders and your assistant can read, write, copy, move, rename and delete files inside them, and only inside them. It can show a folder as a tree, find files by name, hunt for a phrase across a whole directory, and do find-and-replace inside a document. Paths are checked so it cannot wander outside the folders you named. It is written in Go and installs from source or as a container image, so setup is technical.

Coding
Files/PDF

Use This MCP server To

Read a folder of notes and summarize them Find every file that mentions a client's name Rename and tidy up a messy downloads folder Replace an old address across a set of documents Show me the structure of this project folder Pull several text files together into one summary

README

MCP Filesystem Server

This MCP server provides secure access to the local filesystem via the Model Context Protocol (MCP).

Components

Resources

  • file://
    • Name: File System
    • Description: Access to files and directories on the local file system

Tools

File Operations
  • read_file

    • Read the complete contents of a file from the file system
    • Parameters: path (required): Path to the file to read
  • read_multiple_files

    • Read the contents of multiple files in a single operation
    • Parameters: paths (required): List of file paths to read
  • write_file

    • Create a new file or overwrite an existing file with new content
    • Parameters: path (required): Path where to write the file, content (required): Content to write to the file
  • copy_file

    • Copy files and directories
    • Parameters: source (required): Source path of the file or directory, destination (required): Destination path
  • move_file

    • Move or rename files and directories
    • Parameters: source (required): Source path of the file or directory, destination (required): Destination path
  • delete_file

    • Delete a file or directory from the file system
    • Parameters: path (required): Path to the file or directory to delete, recursive (optional): Whether to recursively delete directories (default: false)
  • modify_file

    • Update file by finding and replacing text using string matching or regex
    • Parameters: path (required): Path to the file to modify, find (required): Text to search for, replace (required): Text to replace with, all_occurrences (optional): Replace all occurrences (default: true), regex (optional): Treat find pattern as regex (default: false)
Directory Operations

mcp-filesystem-server FAQ

Can it touch files outside the folders I choose?
No. You list the allowed folders when you start it, and it refuses anything outside them.
Can I use this to search my documents for a phrase?
Yes. It can look through file contents across a whole folder tree and report every match.
Which apps does it work in?
Any app that accepts MCP servers. The readme shows the generic settings snippet that most of them use.
Is a paid key needed?
No. Everything happens on your own computer, with no account and no key.
How hard is setup?
Technical. You install it with the Go toolchain or run it as a container, then add a snippet to your app's settings.
Can it delete things?
Yes, including whole folders when asked, so be deliberate about which directories you hand it.
Does it handle images?
It detects file types and supports text, binary and image files, with size limits on what it sends back inline.