Filesystem MCP Server
ECOSYSTEM REFERENCENO AUTHApache-2.0Open SourceSource: @agenticmarket· community reference
Give your AI assistant read and write access to local files and directories. The most-used MCP server — lets Claude, Cursor, and other AI tools work with your filesystem directly.
Setup Guide
{
"mcpServers": {
"filesystem-mcp-server": {
"command": "uvx",
"args": [
"mcp-server-fetch"
]
}
}
}Tools
read_text_file
Reads a file as UTF-8 text regardless of extension, with optional support for returning only the first (head) or last (tail) N lines; both head and tail cannot be used together.
read_media_file
Reads an image or audio file and streams it as base64-encoded data along with its corresponding MIME type.
read_multiple_files
Reads multiple files simultaneously by accepting an array of paths; continues execution even if some file reads fail.
write_file
Creates a new file or overwrites an existing file at the specified path with provided content; overwriting is destructive and should be used cautiously.
edit_file
Applies advanced, selective edits to a file using pattern matching with support for line-based and multi-line matching, whitespace normalization, indentation preservation, multiple edits in sequence, git-style diff previews, and optional dry-run mode to preview changes before applying.
create_directory
Creates a directory at the specified path, including any necessary parent directories; succeeds silently if the directory already exists.
list_directory
Lists the contents of a directory, returning files and subdirectories with clear [FILE] or [DIR] prefixes.
list_directory_with_sizes
Lists directory contents including file sizes, supports sorting by name or size, and returns summary statistics such as total files, directories, and combined size.
move_file
Moves or renames files and directories from a source path to a destination path; operation fails if the destination already exists.
search_files
Recursively searches for files or directories starting from a given path using glob-style pattern matching, with optional exclusion patterns; returns full paths of matches.
directory_tree
Generates a recursive JSON tree representation of a directory, including file and directory names, types, and nested children; supports exclusion patterns and uses 2-space indentation formatting.
get_file_info
Retrieves detailed metadata for a file or directory including size, creation time, modified time, access time, type (file or directory), and permissions.
list_allowed_directories
Returns all directories that the server is permitted to access for reading and writing; requires no input.
Compatibility
About
The Filesystem MCP Server is the reference implementation maintained by Anthropic as part of the official MCP server collection. It is the most widely installed MCP server in the ecosystem — currently pulling over 170,000 weekly downloads on npm — and the default starting point for any developer adding MCP capabilities to their IDE.
What makes it essential
Every AI coding assistant needs file access. Without this server (or an equivalent), your assistant can only work with content pasted into the chat window. With it, the assistant can navigate your project, read source files, make edits, and manage directories — all while respecting the path boundaries you configure.
Multiple directory access
You can pass more than one path as arguments to grant access to multiple directories in a single server instance:
json{ "mcpServers": { "filesystem": { "command": "npx", "args": [ "-y", "@modelcontextprotocol/server-filesystem", "/Users/you/projects/app", "/Users/you/shared-libs" ] } } }
Docker installation (sandboxed)
The official image supports read-only mounts via the ro flag, making it a good option when you want stricter isolation:
json{ "mcpServers": { "filesystem": { "command": "docker", "args": [ "run", "-i", "--rm", "--mount", "type=bind,src=/Users/you/projects,dst=/projects/app", "--mount", "type=bind,src=/Users/you/read-only-dir,dst=/projects/ref,ro", "mcp/filesystem", "/projects" ] } } }
All directories must be mounted under /projects when using Docker. The ro flag makes a mount read-only at the OS level — the server cannot write to it even if the AI tries.
Security considerations
The server only accesses directories you explicitly pass as arguments. It does not have access to your entire filesystem by default. Always scope the path to the specific project directory you're working with:
- Good:
/Users/you/projects/my-app - Risky:
/Users/you(exposes everything under your home directory) - Dangerous:
/(never do this)
Common setup issues
"npx not found" on macOS/Linux
If your IDE can't find npx, use the full path. Run which npx in your terminal and use the absolute path in the config:
json"command": "/usr/local/bin/npx"
"Permission denied" errors The server runs as your user. If your project directory has restricted permissions, the server will fail. Ensure your user has read/write access to the configured path.
Windows path format On Windows, use double backslashes or forward slashes in your path args:
json"args": ["-y", "@modelcontextprotocol/server-filesystem", "C:\\Users\\you\\projects"]
Server starts but AI doesn't use file tools Check if you have too many MCP servers enabled. Cursor limits tool discovery when more than ~40 tools are registered. Disable servers you're not actively using.
Zed: server not appearing
Zed uses context_servers (not mcpServers) with a nested command.path structure. See the Zed config tab above — the format is different from every other IDE. Also note Zed only supports stdio transport natively; to use an HTTP/SSE server you need the mcp-remote bridge package.
Continue: config not picked up
Continue reads from ~/.continue/mcpServers/ (note the plural). Drop a .json file there and restart your IDE. Alternatively you can add an mcpServers array directly in ~/.continue/config.yaml. The format uses an array (not an object) — a common source of silent failures when copying from Cursor or Claude Desktop.
Install and Troubleshooting Intent Coverage
Developer-install and troubleshooting intent for community MCP server listings.
install mcp server / mcp server setup guide
mcp json config example / vscode mcp setup
mcp server not working / mcp tools not showing
mcp server compatibility matrix / cursor vs vscode mcp compatibility
mcp server monetization options / convert community mcp server to paid listing
Related Setup, Debug, and Learning Links
CLI installation guide
Install baseline for all IDEs before listing-specific setup.
Using servers guide
Covers runtime usage patterns and auth flow.
Cursor setup walkthrough
High-intent setup path for developer troubleshooting journeys.
Troubleshooting: server not working
Common failure modes for install and runtime issues.
Troubleshooting: tools not showing
Covers discovery/listing failures across major IDEs.
Related explore entry: FreshContext
Keeps same-intent users on matched category and tool shape.
Related explore entry: Memory
Keeps same-intent users on matched category and tool shape.
Related explore entry: Roundtable MCP
Keeps same-intent users on matched category and tool shape.
Related explore entry: Sequential Thinking
Keeps same-intent users on matched category and tool shape.
Install this server instantly with the AgenticMarket CLI — zero config, auto-detects your IDE.
$npx agenticmarket install filesystem-mcp-serverFreshContext
Freshness-aware MCP server with 21 tools for timestamped, decay-ranked retrieval signals across GitHub, HN, jobs, research, market data, and more.
Memory
Give your AI assistant persistent memory across conversations. The Memory server stores entities, relations, and observations in a local knowledge graph that persists between sessions.
Roundtable MCP
Multi-model AI council MCP server that enables collaborative reasoning for architecture, debugging, code review, and engineering decisions.
Sequential Thinking
Enhance your AI assistant's reasoning with structured, step-by-step thinking. Supports revisions, branching, and dynamic adjustment of reasoning depth.
AgenticMarket