MCP.so
登录

Filesystem MCP Server (@sylphlab/filesystem-mcp)

@sylphlab

关于 Filesystem MCP Server (@sylphlab/filesystem-mcp)

📁 Secure, efficient MCP filesystem server - token-saving batch operations with project root confinement

基本信息

分类

文件与存储

许可证

MIT

运行时

node

传输方式

stdio

发布者

sylphlab

配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

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

工具

未检测到工具

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Filesystem MCP Server (@sylphlab/filesystem-mcp)?

The Filesystem MCP Server provides secure, token‑optimized filesystem operations for AI agents via the Model Context Protocol (MCP). It enables agents like Claude and Cline to read, write, edit, search, and manage project files in batch, confined to a project root directory.

How to use Filesystem MCP Server (@sylphlab/filesystem-mcp)?

Install via npx, bunx, Docker, or local build, then configure it in your MCP host (e.g., Cline, VSCode) using the provided JSON snippets. The server uses its current working directory as the security boundary. Once configured, agents can invoke tools such as read_content, write_content, edit_file, and others.

Key features of Filesystem MCP Server (@sylphlab/filesystem-mcp)

  • Project root confinement prevents path traversal
  • Batch processing (10+ files per request) reduces token usage
  • Direct API calls eliminate shell spawning overhead
  • Zod schema validation for all tool arguments
  • 14 tools: file, directory, management, and permission operations
  • Per‑item success/failure reporting in batch results

Use cases of Filesystem MCP Server (@sylphlab/filesystem-mcp)

  • AI agents reading and editing multiple project files in one request
  • Code assistants refactoring across a codebase with batch search‑replace
  • Automating project setup, file generation, and directory creation
  • Securely managing permissions and ownership within a project root

FAQ from Filesystem MCP Server (@sylphlab/filesystem-mcp)

How does project root confinement work?

All operations are restricted to the current working directory (cwd) at launch. Path traversal attempts are prevented, so agents cannot access files outside that directory.

What batch operations are supported?

Most tools support batch processing, including read_content, write_content, edit_file, search_files, replace_content, stat_items, create_directories, delete_items, move_items, copy_items, chmod_items, and chown_items.

What are the runtime requirements?

The server runs on Node.js or Bun, uses TypeScript in strict mode, and can be installed via npm or Docker. For development, pnpm is the package manager.

How does this server compare to using shell commands?

It offers better security (root confinement), higher token efficiency (batching), lower latency (direct API vs. shell spawn), and detailed per‑item error reporting.

Where is data stored and how is it transmitted?

Data resides on the local filesystem within the project root. Communication follows the MCP standard over stdio; no external network calls are made for filesystem operations.

评论

文件与存储 分类下的更多 MCP 服务器