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.
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
| Tool | Description |
|---|---|
read_file | Read complete contents of a file |
read_multiple_files | Read multiple files simultaneously |
write_file | Create or overwrite a file |
edit_file | Make line-based edits to existing files |
create_directory | Create a new directory (with parents) |
list_directory | List directory contents |
directory_tree | Get recursive directory tree |
move_file | Move or rename files and directories |
search_files | Search for files matching a pattern |
get_file_info | Get file metadata (size, modified, permissions) |
list_allowed_directories | Show which directories are accessible |
Setup
- Add the configuration to
.claude/settings.json - Update the directory path(s) to match your project
- No API keys needed β runs locally
- Requires Node.js and npx available in PATH
Security Notes
- Sandboxed access β Only directories listed in
argsare 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
Reviews
No reviews yet. Be the first to review this template!
Similar Templates
Database MCP Integration
MCP server configuration for connecting Claude Code to PostgreSQL, MySQL, and MongoDB databases. Enables schema inspection, query building, and migration generation.
Elevenlabs Server
Streamline your workflow with this official, elevenlabs, text, speech. Includes structured workflows, validation checks, and reusable patterns for audio.
Browser Use Portal
Powerful mcp for server, enables, agents, control. Includes structured workflows, validation checks, and reusable patterns for browser_automation.