MCP servers / Filesystem

Filesystem MCP server: setup for Claude Code, Claude Desktop and Cursor

The Filesystem server lets your AI read, search, edit and move files, but only inside the folders you name when the server starts. Anything outside those folders is off limits.

Claude Code and Cursor already work with your project files, so this server matters most in Claude Desktop, or when you want to give the AI one specific folder outside your project.

Runs with
npx (Node.js)
Package
@modelcontextprotocol/server-filesystem on npm
Needs
Node.js (for npx) and at least one folder to allow.
Tools
14 (10 read-only, 4 can change things)
Source
modelcontextprotocol/servers
Last checked
2026-09-20 (server reported version 0.2.0)

Config for Filesystem

Generated by the same code as the free builder, so it matches what you get there. Pick your client, then copy.

Replace /path/to/your/project with the folder the AI may access.

Claude Code

Save as .mcp.json in your project root. Claude Code asks you to approve it the first time.

Claude Code config
{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-filesystem",
        "/path/to/your/project"
      ]
    }
  }
}

Or add it from a terminal instead (single quotes work in bash, zsh and PowerShell; more on this command):

Terminal command
claude mcp add filesystem -- npx -y @modelcontextprotocol/server-filesystem /path/to/your/project

Claude Desktop

Merge into claude_desktop_config.json (Settings → Developer → Edit Config), then fully quit and restart Claude Desktop.

Claude Desktop config
{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-filesystem",
        "/path/to/your/project"
      ]
    }
  }
}

Cursor

Save as .cursor/mcp.json in your project, or ~/.cursor/mcp.json for all projects.

Cursor config
{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-filesystem",
        "/path/to/your/project"
      ]
    }
  }
}

What it can do

These are all 14 tools the server reported when we started it and asked on 2026-09-20. The labels come from the hints each tool declares about itself.

Watch out for

Variations

Allow more than one folder

Add each extra folder as another argument at the end. Every folder is fully reachable, so add only the ones you need.

Variation: Allow more than one folder
{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-filesystem",
        "/path/to/your/project",
        "/path/to/another/folder"
      ]
    }
  }
}

The same in Claude Code, Claude Desktop and Cursor.

Try asking

Related servers

Building a full setup? Combine this with other servers in the config builder. Trouble connecting? See fixing connection errors.

Open the config builder Get early access to Pro