Wsl Filesystem MCP Server

MCP server for wsl filesystem access

Local serverstdioTypeScript

What is the Wsl Filesystem MCP server?

If you already use Wsl Filesystem, the wsl filesystem mcp server is the piece that lets your assistant work with it directly. MCP server for wsl filesystem access.

What the server does

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.

  • Access any WSL distribution from Windows
  • Read/write files in WSL from Windows host
  • Create/list/delete directories in WSL
  • Move files/directories across WSL filesystem
  • Search files within WSL
  • Get file metadata from the WSL filesystem

Installation

The server ships on npm as npm, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.

Available tools

The toolset is worth reading before you wire it up, because it tells you what the integration is really for:

  • read_file — Read complete contents of a file from WSL
  • Input — path (string)
  • read_file_by_parts — Read large files in parts of approximately 95,000 characters
  • Inputs — - path (string)
  • Features — - Part 1 starts from the beginning of the file
  • read_multiple_files — Read multiple files simultaneously from WSL
  • write_file — Create or overwrite a file in WSL (use with caution)
  • edit_file — Selective edits with advanced pattern matching and formatting
  • Non — destructive dry run mode
  • create_directory — Create or ensure the existence of a directory in WSL
  • list_directory — List directory contents with [FILE] or [DIR] prefixes
  • directory_tree — Recursive JSON tree view of contents

Credentials and setup notes

  • Windows Subsystem for Linux (WSL) properly configured - At least one Linux distribution installed in WSL For Claude Desktop users: No additional installation required — just configure your claude_desktop_config.json. NPM Package: The package is available on npm

Worth knowing first

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • With 14 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch Wsl Filesystem.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Where it fits

This sits in the file and storage access group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Wsl Filesystem's toolset — read_file, Input, read_file_by_parts and 11 more — is a fair guide to whether it matches your workflow. It is maintained by webconsulting; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against Wsl Filesystem's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Available tools

ToolWhat it does
read_fileRead complete contents of a file from WSL
Inputpath (string)
read_file_by_partsRead large files in parts of approximately 95,000 characters
Inputs- path (string)
Features- Part 1 starts from the beginning of the file
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
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

How to install the Wsl Filesystem MCP server

> {
>   "mcpServers": {
>     "filesystem": {
>       "command": "npx",
>       "args": [
>         "-y",
>         "@modelcontextprotocol/server-filesystem",
>         "\\\\wsl.localhost\\Debian",
>         "C:\\path\\to\\other\\allowed\\dir"
>       ]
>     }
>   }
> }
>

Configuration as documented by the project. Restart the client after saving.

Configuration

  • Windows Subsystem for Linux (WSL) properly configured - At least one Linux distribution installed in WSL For Claude Desktop users: No additional installation required — just configure your claude_desktop_config.json. NPM Package: The package is available on npm

Example prompts to try

  • Use Wsl Filesystem to read file.
  • Use Wsl Filesystem to Input.
  • Use Wsl Filesystem to read file by parts.

Frequently asked questions

It connects Wsl Filesystem to MCP-compatible AI assistants such as Claude and Cursor, exposing 14 tools (read_file, Input, read_file_by_parts, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Wsl Filesystem directly.