Filesystem MCP Server for WSL
@webconsulting
关于 Filesystem MCP Server for WSL
filesystem MCP server for accessing WSL distributions from Windows
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"mcp-server-wsl-filesystem": {
"command": "node",
"args": [
"dist/index.js",
"[--distro=distribution_name]",
"<allowed_directory>",
"[additional_directories...]"
]
}
}
}工具
14Read complete contents of a file from WSL
Read large files in parts of approximately 95,000 characters
Read multiple files simultaneously from WSL
Create or overwrite a file in WSL (use with caution)
Selective edits with advanced pattern matching and formatting
Create or ensure the existence of a directory in WSL
List directory contents with `[FILE]` or `[DIR]` prefixes
Recursive JSON tree view of contents
Move or rename files/directories
Recursively search by name
Search for text patterns within files recursively
Detailed metadata
Lists all directories accessible to the server
Lists available distributions and shows the active one
概览
What is Filesystem MCP Server for WSL?
Filesystem MCP Server for WSL is a Node.js server implementing the Model Context Protocol (MCP), specifically designed for filesystem operations in Windows Subsystem for Linux (WSL). It is a fork of the original Filesystem MCP Server but completely reimagined for WSL environments, leveraging native Linux commands inside WSL for faster file listing and content search. It is intended for users who need high-performance file operations across WSL distributions from Windows.
How to use Filesystem MCP Server for WSL?
Install via npm (mcp-server-wsl-filesystem). For Claude Desktop, configure claude_desktop_config.json with the npx command and the desired WSL distribution and allowed directories. You can also run it directly from the command line: node dist/index.js [--distro=distribution_name] <allowed_directory> [additional_directories...]. Build the project first with npm install and npm run build.
Key features of Filesystem MCP Server for WSL
- Access any WSL distribution from Windows.
- Read, write, and edit files in WSL from the Windows host.
- Create, list, and delete directories within WSL.
- Move files and directories across the WSL filesystem.
- Search files by name or text content with pattern matching.
- Get detailed file metadata from the WSL filesystem.
- Support for multiple WSL distributions simultaneously.
Use cases of Filesystem MCP Server for WSL
- Manage WSL project files directly from a Windows-based AI assistant.
- Perform rapid file searches across large WSL directory trees using native Linux commands.
- Edit configuration files inside a specific WSL distribution without leaving Windows.
- Move or copy files between different WSL distributions from a single MCP tool.
FAQ from Filesystem MCP Server for WSL
How is this different from the original Filesystem MCP Server?
The original server can already access WSL files via \\wsl.localhost\DistributionName. This fork replaces direct Node.js filesystem calls with native Linux commands inside WSL (like find, grep), offering significantly faster file listing and content search operations, especially for large directory trees. It also adds support for selecting specific WSL distributions and path translation.
What are the runtime requirements?
You need a properly configured Windows Subsystem for Linux (WSL) with at least one Linux distribution installed. For development, Node.js v18.0.0 or higher is required. No additional installation is needed for Claude Desktop users beyond configuring the JSON.
Where does the data live?
The server only allows operations within directories explicitly specified via the args parameter when launching the server. All data stays inside the WSL filesystem of the chosen distribution.
What transport and authentication does the server use?
The server communicates over stdio (standard input/output) as per the MCP protocol. No authentication is required; access control is enforced by limiting allowed directories to those specified at startup.
文件与存储 分类下的更多 MCP 服务器
PDF Reader MCP Server (@shtse8/pdf-reader-mcp)
shtse8📄 The PDF intelligence layer for AI agents — Agent Document Twin, evidence-first extraction, visual crops, OCR provenance, trust reports, and benchmark-gated releases. MCP server for Claude, Cursor, VS Code, and any MCP client.
PDF Reader MCP Server (@sylphlab/pdf-reader-mcp)
sylphlab📄 The PDF intelligence layer for AI agents — Agent Document Twin, evidence-first extraction, visual crops, OCR provenance, trust reports, and benchmark-gated releases. MCP server for Claude, Cursor, VS Code, and any MCP client.
S3 MCP Server
samuraikunMCP server to integrate AWS S3 and LLM
PDF Tools MCP
danielkennedy1Mcp Directory
chatmcpdirectory for Awesome MCP Servers
评论