
Filesystem MCP Server
Secure file operations with configurable access controls
context tax
~1,680 tok/turn14 tools
security
95/100
cold start
835 ms
freshness
Active31d ago
Our reading of Filesystem, from the data
Filesystem is a file system MCP server from modelcontextprotocol.
Its 14 tools add about 1,680 tokens to every model turn (measured 2026-10-23).
Maintenance is active: the last public signal was 31 days ago (2026-10-11). For comparison, 58% of file system servers are active or maintained.
With 91,356 GitHub stars it ranks #2 of 129 file system servers we index.
It runs locally on your machine over stdio.
Install Filesystem MCP server
Install in Claude Code
claude mcp add filesystem -- npx -y @modelcontextprotocol/server-filesystemInstall in Cursor
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem"
]
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem"
]
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"filesystem": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem"
]
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Try it in a sandbox first: this installs it with scripts off and starts it with no network, then lists its tools and token cost. How it works
npx mcpskillhub test @modelcontextprotocol/server-filesystem
Context tax
Connecting this server adds ~1,680 tokens of tool definitions to every model turn (moderate, 14 tools). Measured 2026-10-23 via a sandboxed run; o200k tokenizer, worst case for clients that load all tools up front. How we measure
| Model | Per 1,000 turns | With prompt caching |
|---|---|---|
| Claude Opus 5.5 | $6.72 | $0.336 |
| Claude Sonnet 5.5 | $3.36 | $0.336 |
| Claude Haiku 5.5 | $0.168 | — |
Input prices as of 2026-10-06. Excludes your own prompt and output.
Tools (14)
read_text_file187 tokRead the complete contents of a file from the file system as text. Handles various text encodings and provides detailed error messages if the file cannot be read. Use this tool when you need to examine the contents of a single file. Use the 'head' parameter to read only the first N lines of a file, or the 'tail' parameter to read only the last N lines of a file. Operates on the file as text regardless of extension. Only works within allowed directories.
edit_filefile write164 tokMake line-based edits to a text file. Each edit replaces exact line sequences with new content. Returns a git-style diff showing the changes made. Only works within allowed directories.
search_files150 tokRecursively search for files and directories matching a pattern. The patterns should be glob-style patterns that match paths relative to the working directory. Use pattern like '*.ext' to match files in current directory, and '**/*.ext' to match files in all subdirectories. Returns full paths to all matching items. Great for finding files when you don't know their exact location. Only searches within allowed directories.
read_multiple_files141 tokRead the contents of multiple files simultaneously. This is more efficient than reading files one by one when you need to analyze or compare multiple files. Each file's content is returned with its path as a reference. Failed reads for individual files won't stop the entire operation. Only works within allowed directories.
directory_tree134 tokGet a recursive tree view of files and directories as a JSON structure. Each entry includes 'name', 'type' (file/directory), and 'children' for directories. Files have no children array, while directories always have a children array (which may be empty). The output is formatted with 2-space indentation for readability. Only works within allowed directories.
list_directory_with_sizes131 tokGet a detailed listing of all files and directories in a specified path, including sizes. Results clearly distinguish between files and directories with [FILE] and [DIR] prefixes. This tool is useful for understanding directory structure and finding specific files within a directory. Only works within allowed directories.
move_filefile write111 tokMove or rename files and directories. Can move files between directories and rename them in a single operation. If the destination exists, the operation will fail. Works across different directories and can be used for simple renaming within the same directory. Both source and destination must be within allowed directories.
read_file108 tokRead the complete contents of a file as text. DEPRECATED: Use read_text_file instead.
list_directory98 tokGet a detailed listing of all files and directories in a specified path. Results clearly distinguish between files and directories with [FILE] and [DIR] prefixes. This tool is essential for understanding directory structure and finding specific files within a directory. Only works within allowed directories.
create_directoryfile write96 tokCreate a new directory or ensure a directory exists. Can create multiple nested directories in one operation. If the directory already exists, this operation will succeed silently. Perfect for setting up directory structures for projects or ensuring required paths exist. Only works within allowed directories.
read_media_file93 tokRead a file and return it as a base64-encoded content block with its MIME type. Image and audio files are returned as image/audio content; any other file type is returned as an embedded resource. Only works within allowed directories.
write_filefile write93 tokCreate a new file or completely overwrite an existing file with new content. Use with caution as it will overwrite existing files without warning. Handles text content with proper encoding. Only works within allowed directories.
get_file_info93 tokRetrieve detailed metadata about a file or directory. Returns comprehensive information including size, creation time, last modified time, permissions, and type. This tool is perfect for understanding file characteristics without reading the actual content. Only works within allowed directories.
list_allowed_directories79 tokReturns the list of directories that this server is allowed to access. Subdirectories within these allowed directories are also accessible. Use this to understand which directories and their nested paths are available before trying to access files.
Security signals
95/100 — no known issues found as of 2026-10-23, from the checks below. This is not a guarantee of safety; review what a server can do before connecting it.
Deductions
- No license detected-5
Checks
- ✓Repository hygiene (archived, activity, license, security policy)
- ✓Tool descriptions (prompt-injection and hidden-text heuristics)
- ○Package metadata (install scripts, provenance) — pending
- ○Source scan (secrets, CVEs, risky code) by vectra-guard — pending
Scan it yourself before installing with vectra-guard, the open-source agent security CLI (made by NavyaAI, which also runs MCPSkillHub). Scoring rules
Freshness
Active — last maintenance signal 31d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-10-11 · 31d ago · GitHub
Latest release
2026-10-11 · 31d ago · GitHub · v1.0.0
Package published
no data · npm/PyPI
Registry entry updated
no data · official registry
How it compares in File System
Against the most-starred file system servers we index. Token cost is per model turn, measured from each server's live tool list.
| Server | Stars | Tools | Tokens / turn | Freshness | Runs |
|---|---|---|---|---|---|
| Filesystem (this) | 91,356 | 14 | 1,680 | Active | local |
| Markitdown | 190,947 | — | not measured | Active | — |
| Filesystemcompare | 39,318 | 11 | 1,222 | Active | local + hosted |
| Plg Handler | 14,805 | — | not measured | Active | — |
| Filesystem | 692 | — | not measured | Stale | — |
| Everything Search | 366 | — | not measured | Active | local |
FAQ
›How do I install the Filesystem MCP server in Claude Code?
Run: claude mcp add filesystem -- npx -y @modelcontextprotocol/server-filesystem. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Filesystem require an API key?
No required environment variables are declared in its published metadata.
›Can I use Filesystem as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Filesystem in the official MCP registry?
No. It was indexed from npm, awesome-mcp-servers (punkpeye), awesome-mcp-servers (wong2).
›How many tokens does Filesystem add to my context?
Its tool definitions total about 1,680 tokens, resent on every turn.
Sources and method
- GitHub repository
- fetched 2026-10-19
- Package registry (npm / PyPI)
- listed
- Tool list (tools/list), measured by us
- 2026-10-23
- Security signals, computed by us
- 2026-10-23
- Last checked against all sources
- 2026-10-19
The description, packages and links come from the maintainer's own published metadata. Token cost, security signals, freshness and the reading above are MCPSkillHub's own measurements; see the methodology. Editorial standards are owned by Ramachandra Vikas Chamarthi, Founder & AI HPC Architect. Spot an error? Request a correction or claim the listing.
Alternatives to Filesystem
Other file system MCP servers.