drio
Open app

Filesystem MCP Server

Source

A Model Context Protocol (MCP) server that provides filesystem operations for Claude AI

Catalog onlyCatalog onlySTDIO

Overview

Filesystem MCP Server is a Model Context Protocol (MCP) server that provides filesystem operations specifically designed for Claude AI.

To use the Filesystem MCP Server, clone the repository, install the dependencies, build the project, and run the server with specified allowed directories.

  • Read and write files with UTF-8 encoding. - Create directories and ensure they exist. - List directory contents with file and directory prefixes. - Move or rename files and directories. - Search for files and directories recursively with case-insensitive matching. - Get detailed metadata for files and directories. - List all directories the server is allowed to access.
  1. Integrating filesystem operations into AI applications.
  2. Managing file storage for AI models.
  3. Facilitating data access and manipulation for AI workflows.

Add to your AI client

Use these steps to connect Filesystem MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "filesystem-mcp-server-ai-yliu": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-filesystem-mcp-server-ai-yliu"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "filesystem-mcp-server-ai-yliu": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-filesystem-mcp-server-ai-yliu"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "filesystem-mcp-server-ai-yliu": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-filesystem-mcp-server-ai-yliu"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "filesystem-mcp-server-ai-yliu": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-filesystem-mcp-server-ai-yliu"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "filesystem-mcp-server-ai-yliu": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-filesystem-mcp-server-ai-yliu"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "filesystem-mcp-server-ai-yliu": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-filesystem-mcp-server-ai-yliu"
      ]
    }
  }
}

FAQ

What operations can the Filesystem MCP Server perform?

It can read, write, create directories, list contents, move files, search for files, and get file information.

Is there a limit to the number of directories I can specify?

No, you can specify multiple allowed directories when running the server.

How does the server ensure security?

The server restricts operations to directories specified via command-line arguments.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":1905,"uuid":"7b9883a5-68ac-4a18-8e20-580e2b7514ee","name":"filesystem-mcp-server","title":"Filesystem MCP Server","description":"A Model Context Protocol (MCP) server that provides filesystem operations for Claude AI","avatar_url":"https://avatars.githubusercontent.com/u/201327148?v=4","created_at":"2025-03-05T06:01:32.452+00:00","updated_at":"2025-03-12T10:21:40.306+00:00","status":"created","author_name":"ai-yliu","author_avatar_url":"https://avatars.githubusercontent.com/u/201327148?v=4","tags":"filesystem,mcp,server,claude-ai","category":"file-systems","is_featured":false,"sort":1,"url":"https://github.com/ai-yliu/filesystem-mcp-server","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"1\",\"license\":\"\",\"language\":\"JavaScript\",\"is_official\":false,\"latest_commit_time\":\"2025-03-01 17:34:42\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]