Filesystem MCP Server
Reference server for scoped read and write access to local folders
Add it to your client
Officialnpx -y @modelcontextprotocol/server-filesystem /path/to/dir
{
"mcpServers": {
"filesystem-mcp": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/path/to/dir"
]
}
}
}- Transport
- stdio
- Runtime
- Node
- Auth
- Not required
- Tools
- 13
- License
- MIT
Connect the Filesystem server to Claude Desktop or another MCP client and the model can open, edit and search files inside the directories you allow, and nowhere else. It is one of the reference servers maintained in the modelcontextprotocol/servers repository.
Setup
npx -y @modelcontextprotocol/server-filesystem /path/to/dir /path/to/other runs over stdio with no key. Each path argument becomes an allowed directory. Clients that support MCP Roots can send their own list at runtime, and it replaces the command-line list entirely. With no arguments and no roots, the server fails at startup. The Docker image mcp/filesystem expects mounts under /projects; add ro to a mount to make it read-only.
What it exposes
read_text_file(withhead/tail),read_media_file,read_multiple_fileswrite_file, andedit_filewith adryRunmode that returns a git-style diffcreate_directory,list_directory,list_directory_with_sizes,directory_treemove_file,search_files(glob patterns),get_file_info,list_allowed_directories
Every tool carries MCP tool annotations, so a client can tell read-only calls from ones that overwrite or move files.
Limits
write_fileoverwrites existing files, andmove_fileremoves the source.
Start here if you are learning MCP or want a chat client to work inside one project folder.
Similar MCP servers
Serena
MCP serverLanguage-server backed code search and symbol-level editing for coding agents.
SQLite MCP Server
MCP serverThe reference SQLite server: split read/write tools plus a running insight memo.
Memory MCP Server
MCP serverPersistent knowledge graph memory that survives between sessions.

Comments(0)
Sign in to comment