Reference MCP server for reading, writing, moving, and searching files inside directories the client allows, including directory lists supplied through MCP roots.
Reference: Repository owner is modelcontextprotocol. This is a reference or example server. Archived status is a separate field on the listing. Source.
Listing
https://github.com/modelcontextprotocol/servers/tree/main/src/filesystemRepository
https://github.com/modelcontextprotocol/serversSource
https://github.com/modelcontextprotocol/servers/blob/main/src/filesystem/README.mdPackage named in the source
@modelcontextprotocol/server-filesystem
from vendor docs, not tested by us
Configuration validation checks that these snippets parse and include every environment variable named in the Auth fact. It is not a connection test.
Source: Filesystem reference server README
Those two paths are the examples in the README, not directories on this site.
Claude Desktop
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/Users/username/Desktop",
"/path/to/other/allowed/dir"
]
}
}
}Claude Code
claude mcp add filesystem -- npx -y @modelcontextprotocol/server-filesystem /Users/username/Desktop /path/to/other/allowed/dirCursor
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/Users/username/Desktop",
"/path/to/other/allowed/dir"
]
}
}
}VS Code
{
"servers": {
"filesystem": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/Users/username/Desktop",
"/path/to/other/allowed/dir"
]
}
}
}Optional README image. Adding it is not required and does not change the listing.
Markdown
[](https://agentconnectors.dev/tools/filesystem)The description is paraphrased from the source link. This page does not add star counts, install counts, or a price.
Machine-readable copy: /api/tools/filesystem.json
Search this directory from your agent