§ MCP Server · Filesystem

Official

Filesystem.

by Anthropic

Read, write, and search files on the local disk.

Runs in Claude · Cursor · ChatGPT · Windsurf — any MCP-compatible client

Install

npx -y @modelcontextprotocol/server-filesystem /path/to/dir

Transports

stdio (local)

Tools exposed

8

§ Add to your AI client

Drop this into your client's MCP config — claude_desktop_config.json for Claude Desktop, or .cursor/mcp.json for Cursor — then restart the app. Replace placeholder paths and credentials with your own.

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

§ About

The reference MCP server for filesystem access. Lets an AI agent read directory trees, open files, search by pattern, and (with explicit allowlists) write or move files. The most common starting point for any MCP integration — every coding-adjacent agent uses this or a fork.

§ Features

  • Read files and directory listings
  • Pattern-based search (glob + grep)
  • Move and rename within allowed paths
  • Path allowlisting at start time

§ Use cases

Coding agents working on a local repoDocument-summarization agents reading a folderLocal-first knowledge agents

§ Related MCP servers

Open standardSubmit a server →