MCP SERVER PROFILE · Utilities
Utilities

Filesystem MCP Server

Secure, configurable filesystem access for MCP agents. Supports reading, writing, listing, searching, and moving files — with sandboxed directory restrictions for safe autonomous file operations.

GitHub stars18400
Setup options1
Documented tools15
Maintained bymodelcontextprotocol

Overview

Official reference filesystem MCP server for reading, searching and modifying files within explicitly allowed directories. Supports read-only mode and directory access controls; review paths before granting access.

filesystemfilesiosandboxcrewai

Installation & configuration 1 documented option

Choose the configuration documented for your client. Replace placeholders with your own values, and review the maintainer documentation before connecting.

Local NPX

Claude Desktop · macOS / Linux

{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-filesystem",
        "/ABSOLUTE/PATH/TO/ALLOWED/DIRECTORY"
      ]
    }
  }
}

Replace the placeholder with an absolute path.

Read maintainer installation documentation ↗

Before you install

  • Node.js and npm/npx.
  • At least one explicitly allowed absolute directory path.
  • Grant access only to directories that the agent should read or modify.

Documented tools 15

Capabilities provided in the listing metadata. Check upstream documentation for current availability and parameters.

read_text_file

Read complete contents of a file as text

read_media_file

Read a file and return it as a base64-encoded content block with its MIME type

read_multiple_files

Read multiple files simultaneously

write_file

Create new file or overwrite existing (exercise caution with this)

append_file

Append text to the end of a file, creating the file if it does not exist

edit_file

Make selective edits using advanced pattern matching and formatting

create_directory

Create new directory or ensure it exists

list_directory

List the entries directly inside a directory, one per line, with [FILE] or [DIR] prefixes

list_directory_with_sizes

List the entries directly inside a directory with [FILE] or [DIR] prefixes, including file sizes

move_file

Move or rename files and directories

copy_file

Copy a file to a new location, without its content passing through the

search_files

Recursively find files/directories by name (a glob over their paths), not

directory_tree

Get recursive JSON tree structure of directory contents

get_file_info

Get detailed file/directory metadata

list_allowed_directories

List all directories the server is allowed to access

Listed on FreeMCP badge

Maintaining this MCP server? Add this optional badge to your GitHub README so visitors can find its FreeMCP listing. Listing is not a security certification or independent verification.

MCP — Listed on FreeMCP

[![Listed on FreeMCP](https://freemcp.in/badges/listed.svg)](https://freemcp.in/servers/filesystem-mcp)

Security & permissions

  • Grant access only to specific directories; never use the entire home directory unless necessary.
  • Use --read-only when editing is not needed; consider --confine-roots for older Roots-capable clients.
  • Write and edit tools can change or overwrite files.

See the installation and security guide for a setup checklist.

Buy me a beer