MCP Server Studio

Filesystem MCP server

Read, write, search and edit files, with access limited to allowed directories or client Roots

Registry name: io.github.modelcontextprotocol/server-filesystem

Publisher
modelcontextprotocol
Runs
Runs locally
Package
npm
Version
2.4.1
Category
Developer tools
Updated
2026-11-27

Source code on GitHub

Set up Filesystem (run locally)

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "server-filesystem": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/[email protected]",
        "<allowed_directory>"
      ]
    }
  }
}

Claude Code

Run in your terminal:

claude mcp add server-filesystem -- npx -y @modelcontextprotocol/[email protected] '<allowed_directory>'

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "server-filesystem": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/[email protected]",
        "<allowed_directory>"
      ]
    }
  }
}

VS Code

Add to .vscode/mcp.json:

{
  "servers": {
    "server-filesystem": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/[email protected]",
        "<allowed_directory>"
      ]
    }
  }
}

Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "server-filesystem": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/[email protected]",
        "<allowed_directory>"
      ]
    }
  }
}

More developer tools MCP servers