F

Filesystem MCP Server

Provides secure file system operations through MCP with configurable directory access controls. Read, write, search, and manage files and directories with sandboxed permissions to prevent unauthorized access.

MCPAnthropicdevelopmentv1.0.0MIT
0 views0 copies

MCP Server Configuration

{ "mcpServers": { "filesystem": { "command": "npx", "args": [ "-y", "@modelcontextprotocol/server-filesystem", "/path/to/allowed/directory" ] } } }

Important: Replace /path/to/allowed/directory with the actual directory you want to grant access to. You can specify multiple directories:

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

Available Tools

ToolDescription
read_fileRead complete contents of a file
read_multiple_filesRead multiple files simultaneously
write_fileCreate or overwrite a file
edit_fileMake line-based edits to existing files
create_directoryCreate a new directory (with parents)
list_directoryList directory contents
directory_treeGet recursive directory tree
move_fileMove or rename files and directories
search_filesSearch for files matching a pattern
get_file_infoGet file metadata (size, modified, permissions)
list_allowed_directoriesShow which directories are accessible

Setup

  1. Add the configuration to .claude/settings.json
  2. Update the directory path(s) to match your project
  3. No API keys needed β€” runs locally
  4. Requires Node.js and npx available in PATH

Security Notes

  • Sandboxed access β€” Only directories listed in args are accessible
  • Files outside the allowed directories cannot be read or written
  • Symlinks that point outside allowed directories are blocked
  • No network access β€” purely local file operations
  • Always use the most restrictive directory scope possible
  • Avoid granting access to home directory or root
Community

Reviews

Write a review

No reviews yet. Be the first to review this template!

Similar Templates