filesystem TypeScript Official
Filesystem
Give AI agents read and write access to local files and folders
The Filesystem MCP server is one of the official reference implementations from the Model Context Protocol team. It exposes file read, write, search, and directory operations to any MCP-compatible client, with explicit allow-listed paths so you can scope access.
This is the placeholder body for the Filesystem MCP server. Editorial review pending.
Features
- Read, write, and edit files
- Recursive directory listing and search
- Path allow-listing for security
- Streaming for large files
How to set up the Filesystem MCP server
- Install via npm install -g @modelcontextprotocol/server-filesystem
- Add the server to your Claude Desktop or Claude Code config
- Set the allowed root directories in the config
- Restart your MCP client to pick up the new server
Frequently Asked Questions
What is the Filesystem MCP server?
It is an official reference Model Context Protocol server that lets AI agents read, write, and search files in directories you explicitly allow.
Is the Filesystem MCP server safe?
It is as safe as the paths you allow. The server requires you to specify which directories the agent can touch, so scoping it to a project folder is a reasonable default.
Does Filesystem MCP work with Claude Code?
Yes, Claude Code supports MCP natively. You add the server to your Claude Code config with the directories you want to expose, restart, and the agent gains file tools immediately.