Ad space · Your tool here
PluginStack
MCP Servers · by Model Context Protocol

Filesystem MCP Server

Filesystem MCP Server official site ↗

Last checked against the official docs:

What it does

Reference MCP server that lets an AI read, write, edit, move and search files and directories, restricted to the folders you pass it. Version 2.0.1 (25 Oct 2026) includes security fixes for how it checks paths.

Who it's for

People who want Claude Desktop or another chat app to work with files on their computer.

How to set it up

  1. Install Node.js 24 or later. Version 2.0.0 raised the minimum from earlier Node versions to 24, and the README says the server needs Node 24+ when it runs through npx.

  2. Add the server to your MCP client config, listing each folder the AI may access as an argument (at least one is required):

    json
    {
      "mcpServers": {
        "filesystem": {
          "command": "npx",
          "args": [
            "-y",
            "@modelcontextprotocol/server-filesystem",
            "<absolute-path-to-folder>"
          ]
        }
      }
    }
  3. On Windows, the README launches npx through cmd /c:

    json
    {
      "mcpServers": {
        "filesystem": {
          "command": "cmd",
          "args": [
            "/c",
            "npx",
            "-y",
            "@modelcontextprotocol/server-filesystem",
            "C:\\Users\\you\\Documents"
          ]
        }
      }
    }
  4. Only list folders you're happy for the AI to access. Folders passed on the command line work with every protocol version. MCP Roots, where a client sets the folders for you, only works with older (2025-era) clients and is deprecated; 2026-07-28 clients can't use it. With no folders on the command line, the server exits at startup if a 2025-era client doesn't support Roots, and answers every tool call with an error for a 2026-07-28 client. Restart the client after editing its config.

  5. Already running a date-versioned release (2025.x or 2026.x)? The project warns that package managers rank 2.0.1 below those, so they won't offer it as an upgrade. Install it explicitly, or pin it in your config:

    bash
    npm install @modelcontextprotocol/server-filesystem@2.0.1

Check the official Filesystem MCP Server docs for the latest steps.

Install Filesystem MCP Server in your client

Runs on your computer. Needs: Node.js 24 or later. Sign-in or keys: None.

No one-click install for this one: the snippet has a placeholder (like an API key or a folder path) that you need to fill in first, so copy it below and edit it.

Claude Code

Run in a terminal

bash
claude mcp add --transport stdio filesystem -- npx -y @modelcontextprotocol/server-filesystem '<absolute-path-to-folder>'

Everything after -- is the server command. Run /mcp inside Claude Code to check it connected.

Claude Desktop

Settings → Developer → Edit Config (claude_desktop_config.json)

json
{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-filesystem",
        "<absolute-path-to-folder>"
      ]
    }
  }
}

Fully quit and reopen Claude Desktop after saving.

Cursor

.cursor/mcp.json in a project, or ~/.cursor/mcp.json for all projects

json
{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-filesystem",
        "<absolute-path-to-folder>"
      ]
    }
  }
}
VS Code

.vscode/mcp.json (note the top-level "servers" key)

json
{
  "servers": {
    "filesystem": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-filesystem",
        "<absolute-path-to-folder>"
      ]
    }
  }
}
Codex

Run in a terminal, or edit ~/.codex/config.toml

CLI

bash
codex mcp add filesystem -- npx -y @modelcontextprotocol/server-filesystem '<absolute-path-to-folder>'

Or in ~/.codex/config.toml

toml
[mcp_servers.filesystem]
command = "npx"
args = ["-y", "@modelcontextprotocol/server-filesystem", "<absolute-path-to-folder>"]

Checked against the official docs. Snippets use placeholders; keep real keys out of files you commit. Windsurf is not listed because we have not verified its format.

Set it up / Fixes

Step-by-step guides for getting Filesystem MCP Server running and fixing common errors.

Example prompts

prompt
Find every markdown file in my notes folder that mentions 'invoice'.
prompt
Show me a directory tree of my project folder, excluding node_modules.
prompt
Read my README and suggest a clearer intro, then preview the edit before applying it.

Made Filesystem MCP Server? Add the badge

If you like, show that Filesystem MCP Server is listed and hand-checked here. It's optional: listings are free and we never ask for a link back.

Hand-checked on PluginStack
Get the Markdown or HTML

Markdown (for a GitHub README)

markdown
[![Hand-checked on PluginStack](https://www.pluginstackai.com/badge/hand-checked.svg)](https://www.pluginstackai.com/plugins/filesystem-mcp/)

HTML (for a website)

html
<a href="https://www.pluginstackai.com/plugins/filesystem-mcp/"><img src="https://www.pluginstackai.com/badge/hand-checked.svg" alt="Hand-checked on PluginStack" width="226" height="28"></a>

About the badge

Free: MCP Starter Checklist

After you set this tool up, use the one-page checklist so your next MCP server doesn't fail on first connect.

Markdown download + occasional PluginStack updates. No spam. Privacy policy.

See all MCP Servers on PluginStack