F

Filesystem

Official
Featured

Read, write, and search local files with sandboxed directory access.

by Anthropic· 38.4k·Development·Updated 3 days ago

Install

Add this command to your MCP client config to connect Filesystem.

npx -y @modelcontextprotocol/server-filesystem /path/to/allowed/dir

About Filesystem

The filesystem server gives your AI assistant safe, scoped access to local files and directories. You point it at one or more allowed roots when starting the server, and from there it can list directories, read files, write files, move and delete entries, and run pattern searches.

It is the workhorse of local agent workflows: any time you want a model to actually edit code or rewrite a document on disk rather than just suggesting changes, you wire this in. Access is gated to the directories you whitelist, so you do not have to worry about the assistant wandering off into your home directory.

Common patterns: pair it with the git server for versioned edits, with fetch for "read this URL and save it to disk," or with the memory server for project-scoped context.

Tags

Other MCP servers in Development and beyond.