OlympHill
mcp-filesystem-server logo

mcp-filesystem-server基于 Model Context Protocol (MCP)的Go语言文件系统服务器

(0)
Daniel Nikulshyn审阅者 Daniel Nikulshyn·更新 2026年7月

概览

mcp-filesystem-server 是一个 Go 服务器,负责实现模型上下文协议 (MCP),以实现安全的文件系统操作。它提供对本地文件和目录的访问,并通过强制执行安全措施防止目录遍历攻击。 服务器支持读取、写入、复制、移动、删除文件等文件操作,并提供列出、创建、搜索等目录操作。它还具备符号链接解析(symlink resolution)以及安全检查、MIME 类型检测,并对内联内容和 Base64 编码设置了大小限制。 mcp-filesystem-server 旨在为指定目录提供安全访问。其功能包括路径验证、本地文件系统安全访问,以及对文本、二进制和图像文件的支持。 该服务器可用于需要安全文件系统访问的多种用例,例如数据处理、文件管理和内容交付。 要开始使用,用户可以按照仓库中提供的安装说明进行操作。

主要功能

  • 文件操作:read_file、read_multiple_files、write_file、copy_file、move_file、delete_file、modify_file
  • 文件夹操作:list_directory、create_directory、tree
  • 搜索和信息:search_files、search_within_files、get_file_info、list_allowed_directories
  • MIME 类型检测
  • 内联内容和 base64 编码的大小限制

价格

模型
Free
评分
暂无评价

使用场景

安全文件管理

使用 MCP 文件系统服务器管理文件和目录以确保安全,防止未经授权的访问和目录遍历攻击。

MCP生态系统集成

将 MCP 文件系统服务器与支持 Model Context Protocol (MCP) 的工具和服务集成起来,以实现安全和标准化的数据交换。

优点 & 缺点

优点

  • 为指定的目录提供安全访问
  • 路径验证以防止目录遍历攻击
  • 符号链接解析与安全检查
  • MCP 协议理解

缺点

  • 仅适用于 Go 环境进行安装和使用
  • 需要对 MCP 协议有所了解以进行集成

评测

登录以留下评测。

暂无评测。来当第一个吧!

问答

What are the integration requirements?

You need a Go runtime to install and run the server, and familiarity with the Model Context Protocol (MCP) to interact with its API; otherwise standard HTTP/MCP clients can communicate with it.

Asked by Anya Sokolova · Jan 21, 2026

What MIME and size handling features does it include?

The server detects MIME types of accessed files and enforces size limits for inline content and base64-encoded data, ensuring efficient and safe data transfer.

Asked by Kwesi Boateng · Jan 10, 2026

How does the server ensure security against directory traversal?

It validates all paths against a whitelist of allowed directories and performs symlink resolution with security checks, preventing any traversal beyond the designated filesystem roots.

Asked by Aisha Khan · Dec 25, 2025

What file operations can mcp-filesystem-server perform?

The server supports reading, writing, copying, moving, deleting files and modifying file contents. For directories, it can list, create, and traverse tree structures, as well as search files and retrieve file information.

Asked by Yosef Mizrahi · Nov 21, 2025

提问

服务配缩器 的替代品