Filesystem MCP for Cursor
io.github.j0hanz/filesystem-mcp
Secure filesystem MCP server for reading, writing, searching, diffing, and patching files.
client:Cursor
transport:stdio
runtime:npm
Install Filesystem MCP in Cursor
~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json
{
"mcpServers": {
"filesystem-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@j0hanz/filesystem-mcp"
],
"env": {
"FS_ALLOWED_DIRS": "<FS_ALLOWED_DIRS>"
}
}
}
}
Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs