mcp-filesystem-server MCP Server

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

Local serverstdio

What is the mcp-filesystem-server MCP Server?

mcp-filesystem-server is an MCP project maintained in the mark3labs/mcp-filesystem-server repository. The maintainer describes its purpose as “This MCP server provides secure access to the local filesystem via the Model Context Protocol (MCP)”. Read the project documentation for the complete scope.

Local setup

The project provides a local client configuration using mcp-filesystem-server. Follow the repository’s build and installation steps before copying it, and replace example paths with the paths on your own computer.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
read_fileRead the complete contents of a file from the file system
ParametersNone
read_multiple_filesRead the contents of multiple files in a single operation
write_fileCreate a new file or overwrite an existing file with new content
copy_fileCopy files and directories
move_fileMove or rename files and directories
delete_fileDelete a file or directory from the file system
modify_fileUpdate file by finding and replacing text using string matching or regex
list_directoryGet a detailed listing of all files and directories in a specified path
create_directoryCreate a new directory or ensure a directory exists
treeReturns a hierarchical JSON representation of a directory structure
search_filesRecursively search for files and directories matching a pattern
search_within_filesSearch for text within file contents across directory trees
get_file_infoRetrieve detailed metadata about a file or directory
list_allowed_directoriesReturns the list of directories that this server is allowed to access

How to install the mcp-filesystem-server MCP Server

{
  "mcpServers": {
    "filesystem": {
      "command": "mcp-filesystem-server",
      "args": [
        "/path/to/allowed/directory",
        "/another/allowed/directory"
      ]
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.