Secure read-only access to files and directories with configurable permissions.
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/allowed/directory"]
}
}
}
Copy this configuration and paste it into your claude_desktop_config.json or Cursor settings.
Official MCP server for secure filesystem access. Provides read-only access to specified directories, perfect for giving AI assistants context about your codebase or documents.
Security: Read-only by default, explicitly specify allowed directories.
Installation: Replace /path/to/allowed/directory with your project path in the config above.