Back to MCPs
Official
Featured
Filesystem
Secure file operations with configurable access controls. Allows Claude to read, write, and manage files within specified directories with safety guardrails.
filesystemfilesofficial
1,987 upvotes
72,300 views
by Anthropic
Installation
npx -y @modelcontextprotocol/server-filesystem /path/to/allowed/directory
Note: Replace placeholder values (e.g., connection strings, paths) with your own configuration.
How to add to Claude Code
- Open Claude Code settings
Run
claude configor edit~/.claude/config.json - Add the MCP server configuration
{ "mcpServers": { "filesystem": { "command": "npx", "args": [ "-y", "@modelcontextprotocol/server-filesystem", "/path/to/allowed/directory" ] } } }Update the placeholder values above with your actual configuration.
- Restart Claude Code
The MCP server will now be available in your sessions