mcp-server-wsl-filesystem MCP Server

⚠️ 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.…

Local serverstdioMIT

What is the mcp-server-wsl-filesystem MCP Server?

mcp-server-wsl-filesystem is an MCP project maintained in the webconsulting/mcp-server-wsl-filesystem repository. The maintainer describes its purpose as “⚠️ 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…”. Read the project documentation for the complete scope.

Installation

The documented npm package is mcp-server-wsl-filesystem. The configuration below comes from the maintainer’s example; adapt its paths and account values to your environment.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
read_fileRead complete contents of a file from WSL
read_file_by_partsRead large files in parts of approximately 95,000 characters
Inputs:path (string) - root directory to search
part_numberpositive integer: 1, 2, 3, etc.)
Features:Handles all special characters (apostrophes, quotes, $, backslashes)
read_multiple_filesRead multiple files simultaneously from WSL
write_fileCreate or overwrite a file in WSL (use with caution)
edit_fileSelective edits with advanced pattern matching and formatting
editsarray of { oldText, newText })
dryRunboolean, optional)
Gitstyle diff preview
Nondestructive dry run mode
create_directoryCreate or ensure the existence of a directory in WSL
list_directoryList directory contents with [FILE] or [DIR] prefixes
directory_treeRecursive JSON tree view of contents
move_fileMove or rename files/directories
search_filesRecursively search by name
excludePatternsstring[], optional) - file patterns to exclude
search_in_filesSearch for text patterns within files recursively
caseInsensitiveboolean, optional) - case-insensitive search
isRegexboolean, optional) - treat pattern as regex
includePatternsstring[], optional) - file patterns to include (e.g., .js)
maxResultsnumber, optional, default: 1000) - maximum results to return
contextLinesnumber, optional, default: 0) - lines of context before/after
get_file_infoDetailed metadata
Returnssize, timestamps, type, permissions
list_allowed_directoriesLists all directories accessible to the server
list_wsl_distributionsLists available distributions and shows the active one

How to install the mcp-server-wsl-filesystem MCP Server

{
  "mcpServers": {
    "wsl-filesystem": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-wsl-filesystem",
        "--distro=Ubuntu-20.04",
        "/home/user/documents"
      ]
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.