Filesystem MCP ServerServer

rawr-ai
GitHub
file systemMCPNode.js

Loading subscription status...

💡 Description

Node.js server implementing Model Context Protocol (MCP) for filesystem operations with comprehensive permission control, allowing secure file and directory operations through fine-grained access restrictions.

📝 JSON Entries

{
  "mcpServers": [
    {
      "my-filesystem": {
        "args": [
          "/path/to/mcp-filesystem/dist/index.js",
          "~/path/to/allowed/directory",
          "--full-access"
        ],
        "command": "node"
      }
    },
    {
      "filesystem": {
        "args": [
          "run",
          "-i",
          "--rm",
          "--mount",
          "type=bind,src=/Users/username/Desktop,dst=/projects/Desktop",
          "--mount",
          "type=bind,src=/path/to/other/allowed/dir,dst=/projects/other/allowed/dir,ro",
          "--mount",
          "type=bind,src=/path/to/file.txt,dst=/projects/path/to/file.txt",
          "mcp/filesystem",
          "--readonly",
          "--no-follow-symlinks",
          "/projects"
        ],
        "command": "docker"
      }
    },
    {
      "filesystem": {
        "args": [
          "-y",
          "@modelcontextprotocol/server-filesystem",
          "--full-access",
          "/Users/username/Desktop",
          "/path/to/other/allowed/dir"
        ],
        "command": "npx"
      }
    }
  ]
}

🛠️ Tools

File Reading ToolDirectory Listing ToolFile Creation ToolFile Deletion Tool

Features

  • Fine-grained permission control (read-only, full access, or specific operation permissions)
  • Secure file operations within allowed directories
  • Detailed file and directory operations

💬 Example Queries

  • List all files in the specified directory
  • Read the contents of a specific file
  • Create a new file with specific content