Node.js server for read-only file access: read files, list directories, search and get metadata within allowed directories.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add read-only-filesystem -- npx -y @danielsuguimoto/readonly-server-filesystem /Users/username/Desktop /path/to/other/allowed/dir~/.codex/config.toml
[mcp_servers.read-only-filesystem]
command = "npx"
args = ["-y", "@danielsuguimoto/readonly-server-filesystem", "/Users/username/Desktop", "/path/to/other/allowed/dir"]
# codex mcp add read-only-filesystem -- npx -y @danielsuguimoto/readonly-server-filesystem /Users/username/Desktop /path/to/other/allowed/dir~/.cursor/mcp.json
{
"mcpServers": {
"read-only-filesystem": {
"command": "npx",
"args": [
"-y",
"@danielsuguimoto/readonly-server-filesystem",
"/Users/username/Desktop",
"/path/to/other/allowed/dir"
]
}
}
}.vscode/mcp.json
{
"servers": {
"read-only-filesystem": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@danielsuguimoto/readonly-server-filesystem",
"/Users/username/Desktop",
"/path/to/other/allowed/dir"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"read-only-filesystem": {
"command": "npx",
"args": [
"-y",
"@danielsuguimoto/readonly-server-filesystem",
"/Users/username/Desktop",
"/path/to/other/allowed/dir"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"read-only-filesystem": {
"command": "npx",
"args": [
"-y",
"@danielsuguimoto/readonly-server-filesystem",
"/Users/username/Desktop",
"/path/to/other/allowed/dir"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"read-only-filesystem": {
"command": "npx",
"args": [
"-y",
"@danielsuguimoto/readonly-server-filesystem",
"/Users/username/Desktop",
"/path/to/other/allowed/dir"
]
}
}
}