Filesystem MCP server for AI agents

Filesystem MCP server for AI agents

filesystem-mcp-sylphlab•bysylphlab

A filesystem MCP server providing batch file reads, writes, surgical edits, and search operations confined to the project root.

License: MIT•Runtime: Awaiting documentation review•Category: file systems-docs

WHAT IT DOES

  • •Reads multiple files in a single call with optional line ranges, returning per-file results.
  • •Writes, appends, and applies structured diffs across multiple files per call.
  • •Searches the tree with regex and performs multi-file search and replace.
  • •Confines all operations to the server cwd, rejecting absolute paths and blocking path traversal.

BEST FOR

  • •Agents that need bounded, batch-friendly file operations inside a project root instead of shell commands.
  • •Refactoring across multiple files with search and replace.
  • •Exploring a repository structure with recursive listings and metadata stats.

ABOUT FILESYSTEM-MCP-SYLPHLAB

Filesystem MCP server for AI agents is cataloged as an MCP server attributed to sylphlab. A filesystem MCP server providing batch file reads, writes, surgical edits, and search operations confined to the project root. It is categorized under file systems-docs. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Filesystem MCP server for AI agents are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

How does the server prevent agents from accessing files outside the project?

All operations are confined to the server cwd at launch, absolute paths are rejected, and path traversal is blocked.

How are tool arguments validated?

Every tool argument is validated with Zod schemas.

What happens if one item fails in a batch operation?

Batch tools return per-item status so one failure does not hide the rest.

Upstream README

View this exact version on GitHub

README.md · 7e4b2768f582 · Fetched 2026-11-13 10:27:34 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

Filesystem MCP — ARCHIVED

ARCHIVED / NON-PRIMARY
This product is not an active Sylphx agent-instrument.
Prefer independent products: Citra, Iris, Cue, Prism, Spine, Lookout.

Historical source remains for reference only. Do not treat npm/Docker badges or install CTAs below as current install authority.


Historical README (archived product)

Filesystem MCP

filesystem-mcp — Sylphx Mark banner

Your agent touched the repo. Did it stay in the project?

Secure, token-optimized filesystem operations for AI agents — batch reads, surgical edits, and project-root confinement without shell spawn overhead.

npm version Docker Pulls License TypeScript

Batch operations · Project root safety · Zod validation · 13 MCP tools · Docker-ready

⭐ Star this repo if agents should read and edit your codebase safely — not spawn shells per file. · Quick start · See it work · Why not shell commands? · Roadmap

Filesystem MCP Server

The problem

Agents need filesystem access to read code, apply edits, and search across a repo. The default path is shell commands — one spawn per operation, no batching, stderr parsing, and paths that can wander outside the project.

That costs tokens, adds latency, and turns every file touch into a trust exercise.

Filesystem MCP is built for the moment your agent needs fast, bounded, batch-friendly file operations — confined to the project root.

Why not shell commands?

Shell commands per fileFilesystem MCP
One operation per spawnBatch 10+ files in one MCP call
Full shell accessConfined to server cwd at launch
stderr parsingPer-item success/failure in structured JSON
High token round tripsFewer host↔server calls
Path traversal riskRelative paths only; traversal blocked
No schemaZod-validated arguments on every tool

Full benchmark contract: docs/benchmark.md.

See it work

Configure once. Read many files in one call.

claude mcp add filesystem -- npx @sylphx/filesystem-mcp
{
  "paths": ["src/index.ts", "package.json", "README.md"]
}

read_content returns per-file results in one response:

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

Important: launch the MCP server with cwd set to your project root. All paths are relative to that directory.

Why agents use it

NeedWhat you get
Read multiple filesread_content — batch paths, optional line ranges
Write or appendwrite_content — multiple files per call
Surgical editsapply_diff, replace_content — diff output and per-file status
Search the treesearch_files — regex with context
Refactor across filesreplace_content — multi-file search & replace
Explore structurelist_files — recursive listing with optional stats
Move/copy/deletemove_items, copy_items, delete_items
Permissionschmod_items, chown_items
Inspect metadatastat_items, create_directories

Quick Start

Claude Code

claude mcp add filesystem -- npx @sylphx/filesystem-mcp

Run from your project directory so cwd is the repo root.

Claude Desktop / any MCP host

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

Set the host's working directory to your project root.

Docker

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

Local development

git clone https://github.com/SylphxAI/filesystem-mcp.git
cd filesystem-mcp
bun install
bun run build
bun run test

MCP Tool Surface

ToolUse it when the agent needs to...
read_contentRead one or more files (optional line ranges)
write_contentWrite or append to files
apply_diffApply structured diffs across files
search_filesRegex search with context lines
replace_contentMulti-file search and replace
list_filesList a directory tree (optional stats)
stat_itemsGet detailed file/directory metadata
create_directoriesCreate directories (with parents)
delete_itemsRemove files or directories
move_itemsMove or rename items
copy_itemsCopy files or directories
chmod_itemsChange POSIX permissions
chown_itemsChange ownership

Release proof

Claims are backed by CI benchmark:release-gate, safety fixture corpus, and the shipped-path matrix (Rust-default primary tools).

bun run benchmark:release-gate

Artifact: benchmark-artifacts/filesystem_release_gate.json — must report status: passed before release.

Performance benchmarks

Reproduce local throughput on the shipped Rust CLI path:

bunx vitest bench __tests__/benchmarks/throughput.bench.ts --run

See docs/benchmark.md for scenarios, design goals, and how to interpret results.

Security model

  • All operations confined to the server cwd at launch.
  • Absolute paths rejected; path traversal blocked.
  • Zod schemas validate every tool argument.
  • Batch tools return per-item status — one failure does not hide the rest.

Documentation

Development

bun run validate    # lint + typecheck + test
bun run docs:build  # VitePress + API docs
bun run benchmark   # vitest bench

Support

Help this reach more builders

If shell-per-file agent workflows have burned your tokens or your trust in path safety, this project is for you.

⭐ Star the repo — it helps more agent builders find secure, batch-friendly filesystem access.

Discovery (in progress)

ChannelStatus
Glama MCP directoryListed — claim server for full discoverability
Official MCP RegistryNot listed yet
mcp.so submitNot listed yet — directory submission
mcpservers.org submitNot listed yet — free web-form submission

Know another MCP directory? Open an issue with the link.

License

MIT © Sylphx

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Filesystem MCP server for AI agents from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/filesystem-mcp-sylphlab)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related file systems-docs MCP Servers

Alternative and complementary servers in the same category

View all in file systems-docs →

A Model Context Protocol server for global law with read-only tools to find and read provisions by date, trace the law behind each word, search text and changes, and check cases or briefs against law in force.

Repository stats unavailable
Files & Documentation
LoreKeeper MCP server
lorekeeper-rpg-lorekeeper-com•lore-keeper

Hosted MCP server for tabletop RPG worlds that organizes messy notes and documents into a private store and lets MCP apps search lore, read documents, find characters, and optionally generate character or world pictures.

Repository stats unavailable
Files & Documentation

An MCP server that gives AI assistants scoped file system operations inside a project directory, with read-only reference projects plus git and GitHub tools.

Repository stats unavailable
Files & Documentation