Filesystem
Secure read and write file access with configurable directory scopes. The baseline local dev server.
Add Filesystem to your agent
Pick your host and paste the config snippet. Replace placeholder tokens and paths before connecting to production data.
1Config location
Global: ~/.cursor/mcp.json or project: .cursor/mcp.json
2Copy this snippet
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/allowed/files"]
}
}
}
Add this block under mcpServers, then restart Cursor.