Read and write files in the folders you allow, nowhere else.
Pick your agent.
Run in your terminal:
claude mcp add filesystem -- npx -y @modelcontextprotocol/server-filesystem /path/to/allowed/folderOpen Settings, then Developer, then Edit Config, and add:
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/path/to/allowed/folder"
]
}
}
}Add to your Codex config:
[mcp_servers.filesystem]
command = "npx"
args = ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/allowed/folder"]Add to your settings:
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/path/to/allowed/folder"
]
}
}
}Add to your project:
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/path/to/allowed/folder"
]
}
}
}Add to your project:
{
"servers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/path/to/allowed/folder"
]
}
}
}From reading the source. Check it yourself before you trust it.
Read 18 of 60 files 8 days ago. This is a plain read of the source, not a promise that it is safe. How we check
Gives your agent file access limited to the folders you list when you start it.
No reviews yet. Be the first to say how it went.