Skip to content
AI Dev Toolkit.
Esc
  • Loading…

MCP server · Reference servers

Filesystem MCP server

The Filesystem MCP server is the Model Context Protocol project’s reference server for local files. It lets Claude Code, Cursor or another MCP app read, write, edit, move and search files, but only inside the folders you allow. It runs locally with npx, needs no account, and can overwrite files without a backup.

Maintainer
Model Context Protocol project (official)
Licence
Apache-2.0 AND MIT
Runs
Locally (npx)
Sign-in
None
Last activity
2026-10-11

Overview

What can the Filesystem MCP server do?

The Filesystem server is one of the reference servers kept by the MCP steering group. It runs on your machine with Node.js and gives an assistant a set of file tools that are locked to a list of allowed folders. You pass those folders on the command line, or your client can supply them through MCP Roots, which replace the command-line list and can change while the server runs.

Pick it when you want an assistant to work with local files without giving it a shell. It reads text and media files, makes line-based edits with a dry-run preview and a diff, lists and searches folders, and reports file metadata. Each tool carries read-only and destructive hints, so a client can ask before it writes. A Docker image is also offered: mount folders under /projects and add ro to make a mount read-only. The project calls its servers reference implementations, so review them before production use.

Tools

Tools it gives the assistant

  • Read text files whole or by head and tail lines, and read several files at once
  • Read images, audio and other files as base64 with their MIME type
  • Write files and make line-based edits with a dry-run diff preview
  • Create, list and move folders and files, with a size-sorted listing
  • Search recursively with glob patterns and get a JSON folder tree
  • Report file metadata and list the folders the server may access

Install

How do I install Filesystem MCP in Claude Code, Cursor or VS Code?

You need:

  • Node.js with npx
  • An MCP client; on Windows the README launches npx through cmd /c

Run in your project. --scope local keeps the servers private to you in this project; use user for every project.

Terminal
claude mcp add --scope local filesystem -- npx -y @modelcontextprotocol/server-filesystem /path/to/allowed/folder
Native Windows (PowerShell)
claude mcp add --scope local filesystem -- cmd /c npx -y '@modelcontextprotocol/server-filesystem' /path/to/allowed/folder

Need another app? Open Filesystem MCP Server in the MCP config generator for a shared project .mcp.json, Devin, or several servers at once; it writes one file per app. The snippets follow the setup in the server’s README, checked on 2026-10-14.

Is the Filesystem MCP server safe? Check before you install

  • It can create, overwrite, edit and move files anywhere inside the allowed folders; write_file replaces a file without a backup.
  • Access is limited to the allowed folders, and Roots from the client replace the command-line list, so check what your client exposes.
  • With Docker, mount folders with the ro flag to make them read-only to the server.
  • A local MCP server runs with your user account’s permissions. Install it only from the source linked above. See how to choose a safe server.

FAQ

Filesystem MCP questions

Is the Filesystem MCP server official?

Yes. Model Context Protocol project publishes and maintains it, under the Apache-2.0 AND MIT licence. Install it only from the source linked on this page, not from a copy in another directory.

Is Filesystem MCP server remote or local?

Local. Your MCP app starts it on your machine with npx, and it runs with your user account’s permissions.

Does Filesystem MCP server need an API key or account?

No. It needs no account, API key or sign-in to run. You also need: Node.js with npx; An MCP client; on Windows the README launches npx through cmd /c.

Why it’s listed

Why we list it

The standard way to give an assistant scoped local file access, kept by the MCP project and released alongside the protocol SDKs.

Related

All MCP serversMCP config generatorGuide: MCP servers in Claude CodeGuide: what is MCP?