Mcp Server Wsl Filesystem — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Mcp Server Wsl Filesystem (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
⚠️ IMPORTANT INFORMATION: The original Filesystem MCP Server can already access WSL files by simply using the network path \\wsl.localhost\DistributionName as a parameter in the configuration. Example:>
``json { "mcpServers": { "filesystem": { "command": "npx", "args": [ "-y", "@modelcontextprotocol/server-filesystem", "\\\\wsl.localhost\\Debian", "C:\\path\\to\\other\\allowed\\dir" ] } } } ``>
However, this project offers an alternative implementation specifically optimized for WSL Linux distributions.
>
While the official server works by recursively walking directories using Node.js’sfsmodule, this implementation leverages native Linux commands inside WSL (such asfind,grep, etc.), making file listing and content search operations significantly faster.
>
This can be especially useful when dealing with large directory trees or when search performance is critical.
>
So while the native network path may be simpler for many use cases, this project remains a valuable solution for WSL users looking for better performance or more custom control over the indexing and searching logic.
Node.js server implementing the Model Context Protocol (MCP), specifically designed for filesystem operations in Windows Subsystem for Linux (WSL). This project is a fork of the original Filesystem MCP Server but completely reimagined for WSL environments. Unlike the original project, which handles generic file operations, this version focuses exclusively on seamless interaction between Windows and Linux distributions under WSL. Both projects are compatible and can run in parallel on the same system.
Note: The server only allows operations within directories specified via args.
wsl -d <distrib>: Command for operations on WSL distributionspath (string)path (string)part_number (positive integer: 1, 2, 3, etc.)paths (string[])path (string)content (string)path (string)edits (array of { oldText, newText })dryRun (boolean, optional)path (string)[FILE] or [DIR] prefixespath (string)path (string)source (string)destination (string)path (string)pattern (string)excludePatterns (string[], optional)path (string) - root directory to searchpattern (string) - text or regex pattern to findcaseInsensitive (boolean, optional) - case-insensitive searchisRegex (boolean, optional) - treat pattern as regexincludePatterns (string[], optional) - file patterns to include (e.g., *.js)excludePatterns (string[], optional) - file patterns to excludemaxResults (number, optional, default: 1000) - maximum results to returncontextLines (number, optional, default: 0) - lines of context before/afterpath (string)For Claude Desktop users: No additional installation required — just configure your claude_desktop_config.json.
NPM Package: The package is available on npm: mcp-server-wsl-filesystem
For development:
node --version
npm --versionBefore running the server, you need to build the TypeScript project:
npm install
npm run buildRun the server by specifying which WSL distribution to use (optional) and which directories to expose:
node dist/index.js [--distro=distribution_name] <allowed_directory> [additional_directories...]If no distribution is specified, the default WSL distribution will be used.
Access Ubuntu-20.04 distribution:
node dist/index.js --distro=Ubuntu-20.04 /home/user/documentsUse default distribution:
node dist/index.js /home/user/documentsAdd this to your claude_desktop_config.json:
{
"mcpServers": {
"wsl-filesystem": {
"command": "npx",
"args": [
"-y",
"mcp-server-wsl-filesystem",
"--distro=Ubuntu-20.04",
"/home/user/documents"
]
}
}
}{
"mcpServers": {
"wsl-filesystem": {
"command": "npx",
"args": [
"-y",
"mcp-server-wsl-filesystem",
"/home/user/documents"
]
}
}
}In the second example, the system will use your default WSL distribution without you needing to specify it.
This fork adapts the original Filesystem MCP Server to work with WSL by:
This project is a fork of the original Filesystem MCP Server created by the Model Context Protocol team.
This MCP server for WSL is licensed under the MIT License, following the original project's license. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the original project repository.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.