1. Conduid
  2. Developer Tools
  3. Filesystem MCP
MCP server ยท Developer Tools

Filesystem MCP

๐Ÿ“ Secure, efficient MCP filesystem server - token-saving batch operations with project root confinement

65Good

Scored 3 months ago ยท breakdown

About Filesystem MCP

Filesystem MCP is an MCP server published by SylphxAI in the Developer Tools category: ๐Ÿ“ Secure, efficient MCP filesystem server - token-saving batch operations with project root confinement. It has been installed 0 times through Conduid.

The repository has 6 stars and 7 forks, with the last commit 6 months ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues (0) before depending on it in production.

Install

Install
npx filesystem-mcp

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

Ask AI about Filesystem MCP

Powered by Claude · Grounded in docs

I know everything about Filesystem MCP. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ยทREADME presentNot checked yet.
  • ยทLicense declaredNot checked yet.
  • ยทTests presentNot checked yet.
  • ยทDependencies pinnedNot checked yet.
  • ยทNo dynamic code executionNot checked yet.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

README

Filesystem MCP ๐Ÿ“

Secure filesystem operations for AI agents - Token-optimized with batch processing

npm version Docker Pulls License

Batch operations โ€ข Project root safety โ€ข Token optimized โ€ข Zod validation

Quick Start โ€ข Installation โ€ข Tools


๐Ÿš€ Overview

Empower your AI agents (like Claude/Cline) with secure, efficient, and token-saving access to your project files. This Node.js server implements the Model Context Protocol (MCP) to provide a robust set of filesystem tools.

The Problem:

Traditional AI filesystem access:
- Shell commands for each operation โŒ
- No batch processing (high token cost) โŒ
- Unsafe (no project root boundaries) โŒ
- High latency (shell spawn overhead) โŒ

The Solution:

Filesystem MCP Server:
- Batch operations (10+ files at once) โœ…
- Token optimized (reduce round trips) โœ…
- Secure (confined to project root) โœ…
- Direct API (no shell overhead) โœ…

Result: Safe, fast, and token-efficient filesystem operations for AI agents.


โšก Performance Advantages

Token & Latency Optimization

Metric Individual Shell Commands Filesystem MCP Improvement
Operations/Request 1 file 10+ files 10x reduction
Round Trips N operations 1 request Nร— fewer
Latency Shell spawn per op Direct API 5-10ร— faster
Token Usage High overhead Batched context 50-70% less
Error Reporting stderr parsing Per-item status Detailed

Real-World Benefits

  • Batch file reads - Read 10 files in one request vs 10 requests
  • Multi-file edits - Edit multiple files with single tool call
  • Recursive operations - List entire directory trees efficiently
  • Detailed status - Per-item success/failure reporting

๐ŸŽฏ Why Choose This Server?

Security & Safety

  • ๐Ÿ›ก๏ธ Project Root Confinement - All operations restricted to cwd at launch
  • ๐Ÿ”’ Permission Control - Built-in chmod/chown tools
  • โœ… Validation - Zod schemas validate all arguments
  • ๐Ÿšซ Path Traversal Prevention - Cannot escape project directory

Efficiency & Performance

  • โšก Batch Processing - Process multiple files/directories per request
  • ๐ŸŽฏ Token Optimized - Reduce AI-server communication overhead
  • ๐Ÿš€ Direct API - No shell process spawning
  • ๐Ÿ“Š Detailed Results - Per-item status for batch operations

Developer Experience

  • ๐Ÿ”ง Easy Setup - npx/bunx for instant use
  • ๐Ÿณ Docker Ready - Official Docker image available
  • ๐Ÿ“ฆ Comprehensive Tools - 11+ filesystem operations
  • ๐Ÿ”„ MCP Standard - Full protocol compliance

๐Ÿ“ฆ Installation

Method 1: npx/bunx (Recommended)

The simplest way - always uses latest version from npm.

Using npx:

{
  "mcpServers": {
    "filesystem-mcp": {
      "command": "npx",
      "args": ["@sylphx/filesystem-mcp"],
      "name": "Filesystem (npx)"
    }
  }
}

Using bunx:

{
  "mcpServers": {
    "filesystem-mcp": {
      "command": "bunx",
      "args": ["@sylphx/filesystem-mcp"],
      "name": "Filesystem (bunx)"
    }
  }
}

Important: The server uses its own Current Working Directory (cwd) as the project root. Ensure your MCP host (e.g., Cline/VSCode) launches the command with cwd set to your project's root directory.

Method 2: Docker

Use the official Docker image for containerized environments.

{
  "mcpServers": {
    "filesystem-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-v",
        "/path/to/your/project:/app",
        "sylphx/filesystem-mcp:latest"
      ],
      "name": "Filesystem (Docker)"
    }
  }
}

Remember to replace /path/to/your/project with your actual project path.

Method 3: Local Build (Development)

# Clone repository
git clone https://github.com/SylphxAI/filesystem-mcp.git
cd filesystem-mcp

# Install dependencies
pnpm install

# Build
pnpm run build

# Watch mode (auto-rebuild)
pnpm run dev

MCP Host Configuration:

{
  "mcpServers": {
    "filesystem-mcp": {
      "command": "node",
      "args": ["/path/to/filesystem-mcp/dist/index.js"],
      "name": "Filesystem (Local Build)"
    }
  }
}

๐Ÿš€ Quick Start

Once configured in your MCP host (see Installation), your AI agent can immediately use the filesystem tools.

Example Agent Interaction

<use_mcp_tool>
  <server_name>filesystem-mcp</server_name>
  <tool_name>read_content</tool_name>
  <arguments>{"paths": ["src/index.ts", "package.json"]}</arguments>
</use_mcp_tool>

Server Response:

{
  "results": [
    {
      "path": "src/index.ts",
      "content": "...",
      "success": true
    },
    {
      "path": "package.json",
      "content": "...",
      "success": true
    }
  ]
}

๐Ÿ“‹ Features

File Operations

Tool Description Batch Support
read_content Read file contents โœ… Multiple files
write_content Write/append to files โœ… Multiple files
edit_file Surgical edits with diff output โœ… Multiple files
search_files Regex search with context โœ… Multiple files
replace_content Multi-file search & replace โœ… Multiple files

Directory Operations

Tool Description Batch Support
list_files List files/directories recursively Single path
stat_items Get detailed file/directory status โœ… Multiple items
create_directories Create directories with parents โœ… Multiple paths

Management Operations

Tool Description Batch Support
delete_items Remove files/directories โœ… Multiple items
move_items Move/rename files/directories โœ… Multiple items
copy_items Copy files/directories โœ… Multiple items

Permission Operations

Tool Description Batch Support
chmod_items Change POSIX permissions โœ… Multiple items
chown_items Change ownership โœ… Multiple items

Key Benefit: Tools supporting batch operations process each item individually and return detailed per-item status reports.


๐Ÿ’ก Design Philosophy

Core Principles

  1. Security First

    • All operations confined to project root
    • Path traversal prevention
    • Permission controls built-in
  2. Efficiency Focused

    • Batch processing reduces token usage
    • Direct API calls (no shell overhead)
    • Minimal communication round trips
  3. Robustness

    • Per-item success/failure reporting
    • Detailed error messages
    • Zod schema validation
  4. Simplicity

    • Clear, consistent API
    • MCP standard compliance
    • Easy integration

๐Ÿ“Š Comparison with Alternatives

Feature Filesystem MCP Shell Commands Other Scripts
Security โœ… Root confined โŒ Full shell access โš ๏ธ Variable
Token Efficiency โœ… Batching โŒ One op/command โš ๏ธ Variable
Latency โœ… Direct API โŒ Shell spawn โš ๏ธ Variable
Batch Operations โœ… Most tools โŒ No โš ๏ธ Maybe
Error Reporting โœ… Per-item detail โŒ stderr parsing โš ๏ธ Variable
Setup โœ… Easy (npx/Docker) โš ๏ธ Secure shell setup โš ๏ธ Custom
MCP Standard โœ… Full compliance โŒ No โš ๏ธ Variable

๐Ÿ› ๏ธ Tech Stack

Component Technology
Language TypeScript (strict mode)
Runtime Node.js / Bun
Protocol Model Context Protocol (MCP)
Validation Zod schemas
Package Manager pnpm
Distribution npm + Docker Hub

๐ŸŽฏ Use Cases

AI Agent Development

Enable AI agents to:

  • Read project files - Access code, configs, docs
  • Edit multiple files - Refactor across codebase
  • Search codebases - Find patterns and definitions
  • Manage project structure - Create, move, organize files

Code Assistants

Build powerful coding tools:

  • Cline/Claude integration - Direct filesystem access
  • Batch refactoring - Edit multiple files at once
  • Safe operations - Confined to project directory
  • Efficient operations - Reduce token costs

Automation & Scripting

Automate development tasks:

  • File generation - Create boilerplate files
  • Project setup - Initialize directory structures
  • Batch processing - Handle multiple files efficiently
  • Content transformation - Search and replace across files

๐Ÿ—บ๏ธ Roadmap

โœ… Completed

  • Core filesystem operations (read, write, edit, etc.)
  • Batch processing for most tools
  • Project root security
  • Docker image
  • npm package
  • Zod validation

๐Ÿš€ Planned

  • File watching capabilities
  • Streaming support for large files
  • Advanced filtering for list_files
  • Performance benchmarks
  • Compression/decompression tools
  • Symlink management

๐Ÿค Contributing

Contributions are welcome! Please follow these guidelines:

  1. Fork the repository
  2. Create a feature branch - git checkout -b feature/my-feature
  3. Write tests - Ensure good coverage
  4. Follow TypeScript strict mode - Type safety first
  5. Add documentation - Update README if needed
  6. Submit a pull request

Development Setup

# Clone and install
git clone https://github.com/SylphxAI/filesystem-mcp.git
cd filesystem-mcp
pnpm install

# Build
pnpm run build

# Watch mode (auto-rebuild)
pnpm run dev

๐Ÿค Support

npm GitHub Issues

Show Your Support: โญ Star โ€ข ๐Ÿ‘€ Watch โ€ข ๐Ÿ› Report bugs โ€ข ๐Ÿ’ก Suggest features โ€ข ๐Ÿ”€ Contribute


๐Ÿ“„ License

MIT ยฉ Sylphx


๐Ÿ™ Credits

Built with:

Special thanks to the MCP community โค๏ธ


๐Ÿ“š Publishing

This repository uses GitHub Actions to automatically publish to:

Triggered on version tags (v*.*.*) pushed to main branch.

Required secrets: NPM_TOKEN, DOCKERHUB_USERNAME, DOCKERHUB_TOKEN


README mirrored from the source repository 3 months ago. The original is authoritative.

Questions

About Filesystem MCP

How do I install Filesystem MCP?

Run npx filesystem-mcp, then add the server to your MCP client's configuration. Conduid has recorded 0 installs, so the command is known to work with current clients.

Is Filesystem MCP safe to use with an AI agent?

Its trust score is 65 out of 100 (good). It passes 0 of 1 static security checks; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Filesystem MCP still maintained?

The last commit was 6 months ago, with 0 open issues. That's long enough that you should check whether the maintainer is responding to issues before depending on it.