Gives AI models file and directory operations limited to predefined directories, with strict path validation.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add filesystem-gabrielmaialva33 --env PUBMED_EMAIL='<PUBMED_EMAIL>' -- npx -y @gabrielmaialva33/mcp-filesystem /Users/username/Desktop /path/to/other/allowed/dir~/.codex/config.toml
[mcp_servers.filesystem-gabrielmaialva33]
command = "npx"
args = ["-y", "@gabrielmaialva33/mcp-filesystem", "/Users/username/Desktop", "/path/to/other/allowed/dir"]
env = { PUBMED_EMAIL = "<PUBMED_EMAIL>" }
# codex mcp add filesystem-gabrielmaialva33 --env PUBMED_EMAIL='<PUBMED_EMAIL>' -- npx -y @gabrielmaialva33/mcp-filesystem /Users/username/Desktop /path/to/other/allowed/dir~/.cursor/mcp.json
{
"mcpServers": {
"filesystem-gabrielmaialva33": {
"command": "npx",
"args": [
"-y",
"@gabrielmaialva33/mcp-filesystem",
"/Users/username/Desktop",
"/path/to/other/allowed/dir"
],
"env": {
"PUBMED_EMAIL": "<PUBMED_EMAIL>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"filesystem-gabrielmaialva33": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@gabrielmaialva33/mcp-filesystem",
"/Users/username/Desktop",
"/path/to/other/allowed/dir"
],
"env": {
"PUBMED_EMAIL": "<PUBMED_EMAIL>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"filesystem-gabrielmaialva33": {
"command": "npx",
"args": [
"-y",
"@gabrielmaialva33/mcp-filesystem",
"/Users/username/Desktop",
"/path/to/other/allowed/dir"
],
"env": {
"PUBMED_EMAIL": "<PUBMED_EMAIL>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"filesystem-gabrielmaialva33": {
"command": "npx",
"args": [
"-y",
"@gabrielmaialva33/mcp-filesystem",
"/Users/username/Desktop",
"/path/to/other/allowed/dir"
],
"env": {
"PUBMED_EMAIL": "<PUBMED_EMAIL>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"filesystem-gabrielmaialva33": {
"command": "npx",
"args": [
"-y",
"@gabrielmaialva33/mcp-filesystem",
"/Users/username/Desktop",
"/path/to/other/allowed/dir"
],
"env": {
"PUBMED_EMAIL": "<PUBMED_EMAIL>"
}
}
}
}Environment variables
PUBMED_EMAIL
Replace the placeholders with your own credentials and keep them out of version control.