
modelcontextprotocol/server-filesystem
Direct local file system access
by modelcontextprotocolOpen source
Description
Filesystem is a Node.js Model Context Protocol server, published on npm as @modelcontextprotocol/server-filesystem, that gives an assistant access to local files and folders. It can read and write files, create, list and delete directories, move files and directories, search for files, and read file metadata. What it may touch is set by a directory access control system. You can name the allowed directories on the command line when the server starts, or clients that support MCP Roots can supply them at runtime. A roots update replaces the allowed directories, and a later roots/list_changed notification updates them again without a restart. The README explains the server's startup rules carefully. If the server starts with no command-line directories and the client does not support the roots protocol, it logs the reason to stderr, closes the connection and exits with status 1. A client that supports roots but supplies none keeps the connection with no allowed directories, and once roots are in force, an update with no valid roots refuses every path. Tool calls that arrive before the first roots are loaded wait for them. Because it grants file access, the access list is the main safeguard, so keep it as narrow as the task allows. Its source is in the modelcontextprotocol servers repository.…
Highlights
- Reads, writes, moves and searches files and directories
- Reads file metadata
- Allowed directories set by command line or MCP Roots
- Roots updates without restarting the server
Ratings & Reviews
No ratings yet
Be the first to rate modelcontextprotocol/server-filesystem.
People also visit

filesystem@quarkiverse/quarkus-mcp-servers
Filesystem access for browsing and editing files

efforthye/fast-filesystem-mcp
Filesystem operations with large-file support: read and write files

j0hanz/filesystem-context-mcp-server
Read-only filesystem exploration, search and analysis with symlink protection
modelcontextprotocol/server-filesystem FAQ
What can the server do with files?
Read and write files, create, list and delete directories, move files, search files and read metadata.
How is access limited?
Only the allowed directories can be used. They come from command-line arguments, or from MCP Roots that the client provides.
What happens if I start it with no directories?
If the client does not support roots, the server logs the reason, closes the connection and exits with status 1.
How do I install it?
It is published on npm as @modelcontextprotocol/server-filesystem.
What are the best modelcontextprotocol/server-filesystem alternatives?
Popular alternatives to modelcontextprotocol/server-filesystem include mark3labs/mcp-filesystem-server, Filesystem MCP and filesystem@quarkiverse/quarkus-mcp-servers. See all modelcontextprotocol/server-filesystem alternatives

















