Install
Add this to your client's MCP configuration (Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json; VS Code and others use the same "mcpServers" shape).
filesystem-mcpclaude mcp add filesystem -- npx -y filesystem-mcp@1.3.0
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"filesystem-mcp@1.3.0"
]
}
}
}
filesystem-mcpclaude mcp add filesystem -e 'MCP_TRANSPORT=<MCP_TRANSPORT>' -- npx -y filesystem-mcp@1.3.0
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"filesystem-mcp@1.3.0"
],
"env": {
"MCP_TRANSPORT": "<MCP_TRANSPORT>"
}
}
}
}
Environment variables
MCP_TRANSPORTrequired Transport type.
Documentation
From the project's README on GitHub, refreshed weekly. Links open on GitHub.
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
| Tool | Description |
|---|---|
view | Read file contents or list directory (with line numbers) |
create | Create or overwrite a file |
str_replace | Replace an exact string in a file |
insert | Insert text at a specific line |
Contributing
Pull requests are welcomed on GitHub! To get started:
- Install Git and Node.js
- Clone the repository
- Install dependencies with
npm install - Run
npm run testto run tests - Build with
npm run build
Releases
Versions follow the semantic versioning spec.
To release:
- Use
npm version <major | minor | patch>to bump the version - Run
git push --follow-tagsto push with tags - Wait for GitHub Actions to publish to the NPM registry.
Frequently asked questions
What is Filesystem?
Read, create, and edit files.
How do I install Filesystem?
It runs on your machine. In Claude Code: claude mcp add filesystem -- npx -y filesystem-mcp@1.3.0. For other clients, paste the JSON configuration from this page into their MCP settings.
Does Filesystem need an API key?
Yes. It expects MCP_TRANSPORT, which you set in its configuration.
Is Filesystem open source?
Its code is public on GitHub, but the repository does not declare a standard license.
Who maintains Filesystem?
It is published by domdomegg. AI.tn lists it but does not maintain or endorse it.
From the official MCP Registry. Listing is not an endorsement: review a server's code and permissions before giving it access to your data.