mcp servers · featured

Filesystem MCP Server

Anthropic's reference MCP server for filesystem operations. Gives your agent read, write, list, and search access to local directories with configurable sandbox boundaries.
★ 38.2k ↓ 94.0k installs by Anthropic updated Mar 1, 2025 MIT
← back to shelf
install via your agent of choice
npx -y @modelcontextprotocol/server-filesystem /path/to/allowed/directory

## what it does

What it does

The Filesystem MCP server exposes a directory (or set of directories) to your AI agent. You specify which paths are allowed at startup — the server enforces that sandbox boundary for every operation.

This is Anthropic’s reference implementation from the official MCP servers monorepo.

Installation

# Run directly via npx (no install required):
npx -y @modelcontextprotocol/server-filesystem ~/projects

# Or install globally:
npm install -g @modelcontextprotocol/server-filesystem

Claude Desktop configuration

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-filesystem", "/Users/you/projects"]
    }
  }
}

You can specify multiple directories:

{ "args": ["-y", "@modelcontextprotocol/server-filesystem", "/Users/you/projects", "/Users/you/documents"] }

Available tools

ToolDescription
read_fileRead the complete contents of a file
write_fileCreate or overwrite a file
edit_fileApply targeted edits with diff-style precision
list_directoryList directory contents
search_filesRegex search across files
directory_treeRecursive tree view
move_fileMove or rename files
get_file_infoMetadata: size, permissions, dates

Security model

  • Sandbox enforced at startup: the server only serves paths you explicitly allow.
  • No network access: purely local filesystem operations.
  • No auth required: access is controlled by running the server in a trusted context.

All operations are rejected if the path would escape the configured allowed directories via symlinks or .. traversal.

## compatibility

claude-desktop
claude-code
cline
cursor

## exposed tools

read_file
read_multiple_files
write_file
edit_file
create_directory
list_directory
directory_tree
move_file
search_files
get_file_info
list_allowed_directories

## embed this badge

cache ✓ in cache.directory
![cached](https://cache.directory/badge/filesystem-mcp.svg)