filesystem-mcpServer

sylphxltd
GitHub
File ManagementAI IntegrationSecure Access

Loading subscription status...

💡 Description

A Node.js server that implements the Model Context Protocol (MCP) and gives AI agents secure, efficient, and token-saving access to project files. It provides robust filesystem tools that work securely within a defined project root directory.

📝 JSON Entries

{
  "mcpServers": [
    {
      "filesystem-mcp": {
        "args": [
          "@sylphlab/filesystem-mcp"
        ],
        "command": "npx"
      }
    },
    {
      "filesystem-mcp": {
        "args": [
          "@sylphlab/filesystem-mcp"
        ],
        "command": "bunx"
      }
    },
    {
      "filesystem-mcp": {
        "args": [
          "run",
          "-i",
          "--rm",
          "-v",
          "/path/to/your/project:/app",
          "sylphlab/filesystem-mcp:latest"
        ],
        "command": "docker"
      }
    },
    {
      "filesystem-mcp": {
        "args": [
          "/path/to/cloned/repo/filesystem-mcp/dist/index.js"
        ],
        "command": "node"
      }
    }
  ]
}

🛠️ Tools

search_fileslist_filesstat_itemswrite_contentmove_itemscopy_itemschmod_itemsreplace_content

Features

  • Secure access restricted to project root directory
  • Optimized tools for batch operations reducing token usage
  • Simple setup via npx / bunx and Docker image availability
  • Comprehensive filesystem functionality with detailed validation

💬 Example Queries

  • Use the filesystem-mcp to read the content of src/index.ts.
  • List all files and directories in the project.