Filesystem MCP Server SSE
@ysthink
关于 Filesystem MCP Server SSE
The SSE version of the MCP service is modified from the Filesystem MCP server
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"Filesystem-MCP-Server-SSE": {
"command": "docker",
"args": [
"build",
"-t",
"mcp/filesystem",
"-f",
"Dockerfile",
"."
]
}
}
}工具
10Read complete contents of a file
Read multiple files simultaneously
Create new file or overwrite existing (exercise caution with this)
Make selective edits using advanced pattern matching and formatting
Create new directory or ensure it exists
List directory contents with [FILE] or [DIR] prefixes
Move or rename files and directories
Recursively search for files/directories
Get detailed file/directory metadata
List all directories the server is allowed to access
概览
What is Filesystem MCP Server SSE?
Filesystem MCP Server SSE is a Node.js server that implements the Model Context Protocol (MCP) for filesystem operations, allowing AI assistants to read, write, and manage files and directories. It is intended for users who need sandboxed filesystem access via MCP.
How to use Filesystem MCP Server SSE?
Install dependencies with npm install, build, and run the server with the allowed directories as arguments (e.g., node .\dist\index.js C:\Users\User\Desktop\project). Alternatively, use Docker by building the image and mounting directories to /projects. Configure your MCP client (e.g., Cherry Stdio Desktop) to point baseUrl to the server's SSE endpoint.
Key features of Filesystem MCP Server SSE
- Read, write, and edit files with advanced pattern matching
- Create, list, and delete directories
- Move or rename files and directories
- Recursive file search with exclude patterns
- Get detailed file metadata (size, timestamps, permissions)
Use cases of Filesystem MCP Server SSE
- An AI coding assistant reads and modifies source files in a project directory
- Automated file organization: move, rename, or delete files based on criteria
- Preview file edits with dry-run mode before applying changes
- List allowed directories to verify sandbox boundaries
FAQ from Filesystem MCP Server SSE
Which directories does the server have access to?
Only the directories specified via command-line arguments at startup. The server will refuse operations outside these paths.
How can I preview edits before applying?
Use the edit_file tool with the dryRun parameter set to true. The server returns a diff and match information without modifying the file.
What happens if I try to move a file to a destination that already exists?
The move_file operation fails if the destination already exists, to prevent accidental overwrites.
How do I run the server using Docker?
Build with docker build -t mcp/filesystem . and run with docker run -i --mount type=bind,src=... mounting allowed directories under /projects. See the README for full command.
Can I read multiple files at once?
Yes, use the read_multiple_files tool with an array of paths. Failed reads do not stop the entire operation.
文件与存储 分类下的更多 MCP 服务器
Sample S3 Model Context Protocol Server
aws-samplesMcp Directory
chatmcpdirectory for Awesome MCP Servers
Filesystem MCP Server for WSL
webconsultingfilesystem MCP server for accessing WSL distributions from Windows
Google Drive server
isaacphiModel Context Protocol (MCP) Server for reading from Google Drive and editing Google Sheets
box-mcp-server
hmkA Box model context protocol server to search, read and access files
评论