Gives AI models file and directory operations limited to predefined directories, with strict path validation.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
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>"
}
}
}
}需要的环境变量
PUBMED_EMAIL
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。