mcpField
F
Filesystem

Filesystem

Local
github.comFiles & Storage3Updated 4d ago

About Filesystem

Filesystem is an MCP server for reading, creating, and editing files. Its tools support file viewing, overwriting, exact-string replacement, and line-based insertion.

Key features

  1. 01Read files and list directories
  2. 02Create or overwrite files
  3. 03Replace exact strings
  4. 04Insert text at a line

Use cases

  1. 01Save email attachments to a folder
  2. 02Update a configuration value
  3. 03Write a calendar summary to notes
  4. 04Refactor a function name in a file

MCP support

Filesystem exposes file-reading and editing tools to MCP clients, including view, create, str_replace, and insert.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"domdomegg-filesystem": {
"command": "npx",
"args": [
"-y",
"filesystem-mcp"
],
"env": {
"MCP_TRANSPORT": "<MCP_TRANSPORT>"
}
}
}
}
Run commandnpx -y filesystem-mcp
Environment variables to set
MCP_TRANSPORTTransport type.

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npmfilesystem-mcp1.3.0

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

filesystem-mcp

MCP server for filesystem operations - read, create, and edit files.

Use Cases

Save email attachments: "Download all PDFs from my accountant's emails this month" → searches Gmail for matching emails, extracts attachments, and saves them to a local folder.

Update config files: "Change the API endpoint from staging to production in my config" → finds the config file, replaces the URL, and shows you the diff.

Generate reports: "Create a summary of today's calendar events" → reads your calendar, formats a markdown report, and saves it to your notes folder.

Code refactoring: "Rename the function getData to fetchUserData in src/api.ts" → reads the file, makes the precise replacement, and confirms the change.

Backup before changes: "Save a copy of my .zshrc before I modify it" → reads the current file and writes a timestamped backup.

Setup

Follow the instructions on install-mcp, which generates the right config for your MCP client (Claude Code, Claude Desktop, Cursor, Cline, VS Code, and more).

Tools

ToolDescription
viewRead file contents or list directory (with line numbers)
createCreate or overwrite a file
str_replaceReplace an exact string in a file
insertInsert text at a specific line

Contributing

Pull requests are welcomed on GitHub! To get started:

  1. Install Git and Node.js
  2. Clone the repository
  3. Install dependencies with npm install
  4. Run npm run test to run tests
  5. Build with npm run build

Releases

Versions follow the semantic versioning spec.

To release:

  1. Use npm version <major | minor | patch> to bump the version
  2. Run git push --follow-tags to push with tags
  3. Wait for GitHub Actions to publish to the NPM registry.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.