Skip to content
mcp/skillhub

Filesystem MCP Server

by modelcontextprotocol

Secure file operations with configurable access controls

91kNode.jsstdio

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-filesystem

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

ModelPer 1,000 turnsWith 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 tok

    Read 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 tok

    Make 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 tok

    Recursively 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 tok

    Read 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 tok

    Get 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 tok

    Get 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 tok

    Move 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 tok

    Read the complete contents of a file as text. DEPRECATED: Use read_text_file instead.

  • list_directory98 tok

    Get 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 tok

    Create 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 tok

    Read 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 tok

    Create 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 tok

    Retrieve 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 tok

    Returns 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.

  1. Last commit (default branch)

    2026-10-11 · 31d ago · GitHub

  2. Latest release

    2026-10-11 · 31d ago · GitHub · v1.0.0

  3. Package published

    no data · npm/PyPI

  4. 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.

ServerStarsToolsTokens / turnFreshnessRuns
Filesystem (this)91,356141,680Activelocal
Markitdown190,947—not measuredActive—
Filesystemcompare39,318111,222Activelocal + hosted
Plg Handler14,805—not measuredActive—
Filesystem692—not measuredStale—
Everything Search366—not measuredActivelocal
All file system MCP servers

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
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.

View all