Filesystem Context MCP Server
Filesystem-MCP is a Model Context Protocol server that lets AI assistants read and write files within explicitly allowed directories. Sensitive file patterns (.env, .pem, id_rsa) are blocked by default. It exposes filesystem tools, resources, and prompts over stdio or Streamable HTTP transport. Its 13 documented tools cluster into read & search, update, stat, diff.
People who work with analysis, filesystem and scanner and want it reachable from Claude, Cursor, VS Code, or another MCP client. The project is written in TypeScript.
VERIFIED ACTIVE
LAST COMMIT 2026-09-17 ยท โ 22 ยท #36 OF 41 MAINTAINED FILESYSTEM ยท VERIFIED 2026-09-18
MIT ยท TypeScript servers ยท how we verify โ /methodology
01 ยท Install Filesystem Context
before you install - you'll need
FS_ALLOWED_DIRS
Environment variables documented in the project's README - it lists which are required and which have defaults.
Claude Code
claude mcp add j0hanz-filesystem-context-mcp-server -- npx -y @j0hanz/filesystem-context-mcp Claude Desktop / Cursor / VS Code - add to config
{
"mcpServers": {
"j0hanz-filesystem-context-mcp-server": {
"command": "npx",
"args": [
"-y",
"@j0hanz/filesystem-context-mcp"
]
}
}
} Same JSON for Cursor. For VS Code, rename the top-level key from `mcpServers` to `servers`.
Using another client? Same JSON, different key
Claude Desktop ยท mcpServers
Cursor ยท mcpServers
VS Code ยท servers
Windsurf ยท mcpServers
Zed ยท context_servers
Cline ยท mcpServers
Roo Code ยท mcpServers
Continue ยท mcpServers
LibreChat ยท mcpServers
Gemini CLI ยท mcpServers
Codex CLI ยท mcp_servers
Full setup guides: every client.
02 ยท Evidence
Security posture
What to check before giving this server access to your agent - from the registry, GitHub, and our own probes. We don't score safety; we show what's verifiable.
runs as local process (stdio) - runs on your machine with your user's permissions
license MIT - declared in the repository
npm package @j0hanz/filesystem-context-mcp - published under the repo owner's npm scope (@j0hanz)
registry namespace io.github.j0hanz is GitHub-verified and matches the repo owner
03 ยท What Filesystem Context can do
Prose above is summarized from the project's README and registry record - no invented capabilities.
What you can build
With this server connected, an agent can list allowed workspace roots. Call this first - all other tools scope to these, list directory contents. Returns entries (dirs-first, alphabetical) and an ASCII tree, find files by glob pattern (e.g. /.ts). Returns matching files with metadata, and get file/directory metadata: size, modified time, permissions, MIME type, token estimate.
Capability map
Tools grouped from the project's README - what Filesystem Context lets an agent do.
read & search
5 tools - e.g. List allowed workspace roots. Call this first - all other tools scope to these.; List directory contents. Returns entries (dirs-first, alphabetical) and an ASCII tree.; Find files by glob pattern (e.g.โฆ
list_roots ยท list ยท find_files ยท search_text ยท read
update
3 tools - e.g. Apply sequential literal string replacements to one or more files (max 5 per call).; Move, rename, or copy (copy: true) one or more files/directories to explicit destinations.; Apply a single-file unifiedโฆ
edit ยท move ยท patch
Stat
1 tool - e.g. Get file/directory metadata: size, modified time, permissions, MIME type, token estimate.
stat
Diff
1 tool - e.g. Compare two files and return a unified diff with added/removed line counts.
diff
create & write
1 tool - e.g. Create one or more files, creating parent directories as needed. An existing file prompts the user to confirm the overwrite; overwrite: true on an entry skips t
create
delete
1 tool - e.g. Permanently delete one or more files or directories. This action is irreversible.
delete
Replace
1 tool - e.g. Bulk search-and-replace across files matching a glob pattern.
replace_text
Latest releases
v2.4.1 ยท 2026-09-17
A bug-fix release. One paging line reported the wrong range; the published ยท surface is byte-identical to 2.4.0, so nothing needs adapting before you ยท upgrade. ยท Fixed ยท search_text reported the wrong range whenโฆ
v2.4.0 ยท 2026-09-17
A trim release: one over-engineering audit applied across the tree, plus ยท three confirmation-flow refinements. No tool is renamed and no input field ยท changes shape. Read Removed before upgrading if a launcher passesโฆ
v2.3.0 ยท 2026-09-16
A security fix for operator deny rules, three additions, and two write tools ยท that stop guessing. No tool is renamed or removed and no existing input field ยท changes shape: create gains append and overwriteโฆ
04 ยท Who maintains Filesystem Context
filesystem-context is maintained by j0hanz. We track 9 MCP servers from j0hanz - 9 actively maintained, 45 combined GitHub stars, oldest repo from Dec 2025. Full record: all servers from j0hanz.
05 ยท Facts
- category
- filesystem - ranked #36 of 41 actively-maintained filesystem servers as of 2026-09-18.
- release cadence
- 10+ releases in the last 90 days (latest 2026-09-17)
- registry
- io.github.j0hanz/filesystem-context (active, first published 2025-12-12)
- packages
- npm:@j0hanz/filesystem-context-mcp
06 ยท Filesystem Context FAQ
Is Filesystem Context still maintained?
Yes - as of 2026-09-18, its last commit was 2026-09-17 and it shipped 10+ releases in the last 90 days. We re-verify nightly.
What can Filesystem Context do?
With this server connected, an agent can list allowed workspace roots. Call this first - all other tools scope to these, list directory contents. Returns entries (dirs-first, alphabetical) and an ASCII tree, find files by glob pattern (e.g. /.ts). Returns matching files with metadata, and get file/directory metadata: size, modified time, permissions, MIME type, token estimate.
How do I install Filesystem Context?
Run `npx -y @j0hanz/filesystem-context-mcp`. The README documents one environment variable (FS_ALLOWED_DIRS) to set first. You can also paste the ready-made client config above.
Does Filesystem Context run locally?
Yes - it's a stdio server: it runs on your machine (via npx) with your user's permissions. Your data stays local unless the server itself calls external APIs.
07 ยท Alternatives to Filesystem Context
Alternatives to Filesystem Context
Maintained filesystem servers if Filesystem Context isn't the fit.
- Server Filesystem MCP server for filesystem access โ 39,038 ยท 2026-09-11
- Directory A directory of product launch platforms: where your product qualifies and how each form is filled. โ 297 ยท 2026-08-19
- Pdf MCP Agentic RAG over one PDF or a whole folder: hybrid search, selective page reads, tables, OCR. โ 135 ยท 2026-09-17
- Remote Filesystem MCP server for remote filesystem operations on cloud storage (Google Cloud Storage). โ 80 ยท 2026-08-30
- Keibi Drop Give two agents on two machines the same encrypted folder. P2P, no cloud, only read bytes move. โ 60 ยท 2026-09-16
- V8 Run JavaScript and TypeScript in sandboxed V8 isolates with policy-controlled host capabilities. โ 57 ยท 2026-09-08
More filesystem MCP servers ยท Filesystem MCP ยท Virtual Filesystem ยท Cairn
More TypeScript MCP servers ยท Roku MCP ยท Moxie Docs ยท PullPush Reddit ยท Scan MCP ยท see all