MCP server for filesystem access
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add filesystem -- npx -y @agent-infra/mcp-server-filesystem allowed-directories '<ALLOWED_DIRECTORIES>'~/.codex/config.toml
[mcp_servers.filesystem]
command = "npx"
args = ["-y", "@agent-infra/mcp-server-filesystem", "allowed-directories", "<ALLOWED_DIRECTORIES>"]
# codex mcp add filesystem -- npx -y @agent-infra/mcp-server-filesystem allowed-directories '<ALLOWED_DIRECTORIES>'~/.cursor/mcp.json
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@agent-infra/mcp-server-filesystem",
"allowed-directories",
"<ALLOWED_DIRECTORIES>"
]
}
}
}.vscode/mcp.json
{
"servers": {
"filesystem": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@agent-infra/mcp-server-filesystem",
"allowed-directories",
"<ALLOWED_DIRECTORIES>"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@agent-infra/mcp-server-filesystem",
"allowed-directories",
"<ALLOWED_DIRECTORIES>"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@agent-infra/mcp-server-filesystem",
"allowed-directories",
"<ALLOWED_DIRECTORIES>"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@agent-infra/mcp-server-filesystem",
"allowed-directories",
"<ALLOWED_DIRECTORIES>"
]
}
}
}