← Claude MCP Servers Directory

📂

Filesystem MCP Server

Official

About

The Filesystem MCP server provides secure file operations with configurable access controls. It allows AI assistants to read, write, and manage files on your local filesystem with fine-grained permission controls to ensure security.

Features

  • Secure file reading and writing
  • Directory listing and navigation
  • Configurable access controls
  • File creation and deletion
  • Path validation and sanitization
  • Support for various file encodings

Installation

Using Claude Desktop

Add this configuration to your Claude Desktop config file:

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

Using Cursor

Configure in your Cursor settings (Settings > MCP):

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

How to Use

Once installed, you can ask your AI assistant to:

  • "List all files in this directory"
  • "Read the contents of config.json"
  • "Create a new file called README.md"
  • "Delete the temporary file"
  • "Show me what's in the src folder"