Content
1{
2 "mcpServers": {
3 "filesystem": {
4 "command": "npx",
5 "args": [
6 "-y",
7 "@modelcontextprotocol/server-filesystem",
8 "/Users/YOUR_USERNAME/Projects",
9 "/Users/YOUR_USERNAME/Documents"
10 ]
11 }
12 }
13}
14
15// ── Setup ────────────────────────────────────────────────────────────────────
16// Positional args after the package name are the allowed directories.
17// Add as many absolute paths as needed. The server refuses access to
18// anything outside these roots.
19//
20// ── Available tools ──────────────────────────────────────────────────────────
21// read_file read a file's contents
22// read_multiple_files read several files at once
23// write_file write / overwrite a file
24// edit_file apply line-level edits
25// create_directory mkdir -p
26// list_directory ls with metadata
27// directory_tree recursive tree view
28// move_file rename or move
29// search_files glob / regex file search
30// get_file_info stat (size, dates, permissions)
31// list_allowed_directories confirm which roots are exposed
32