Verzeichnis-Server-MCP
by stephanj79·★ 2·综合分 32
一个C#编写的MCP服务器,为AI代理提供安全、可控的文件系统操作功能。
概述
Verzeichnis-Server-MCP是一个强大的C#后端,实现了模型上下文协议(MCP),使AI代理能够安全地与本地文件系统交互。该服务器提供了明确定义的工具,用于文件和目录操作,包括列出、读取、写入、复制、移动和删除文件和目录。它支持文本和媒体文件处理,对于媒体文件返回带有适当MIME类型的base64数据。该实现似乎特别适合与N8N等工作流自动化平台集成,文档中已展示了相关示例。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
当您需要一个基于 .NET 的解决方案来为 AI 工作流提供安全文件系统访问时,选择此服务器,尤其是如果您已经在使用 N8N。
什么时候不要选它
如果您需要非 .NET 环境,请不要选择此服务器,因为它仅限于 C#/.NET 运行时,并且需要 Windows 才能获得最佳性能。
此 server 暴露的工具
从 README 抽取出 9 个工具directory_listReturns the content of a specified directory. Supports recursive and non-recursive searches.
copy_fileCopies a file from a source to a destination path.
move_fileMoves or renames a file.
delete_fileSecurely removes a specific file.
read_text_fileReads the content of a text file and returns it as a string.
read_media_fileReads an image or audio file. Returns base64 data with the appropriate MIME type.
write_text_fileWrites a string to a text file (creates or overwrites it).
create_directoryCreates a new directory at the specified path.
delete_directoryRemoves an empty or full directory.
可对比工具
安装
安装
- 克隆仓库:
git clone https://github.com/stephanj79/Verzeichnis-Server-MCP.git - 使用Visual Studio或.NET CLI构建项目:
dotnet build - 运行服务器:
dotnet run
Claude Desktop配置
将以下内容添加到您的claude_desktop_config.json文件中:
{
"mcpServers": {
"filesystem-mcp": {
"command": "dotnet",
"args": ["run", "--project", "path/to/Verzeichnis-Server-MCP"],
"env": {}
}
}
}FAQ
- 这个MCP服务器支持哪些文件类型?
- 该服务器支持文本文件和媒体文件(图像、音频)。媒体文件以base64数据和适当的MIME类型返回。
- 除了N8N,这个服务器可以与其他工作流自动化工具一起使用吗?
- 虽然文档特别展示了N8N集成,但该服务器实现了标准的MCP协议,应该与任何支持文件系统操作的MCP客户端兼容。
Verzeichnis-Server-MCP 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。