MCP Hub
Back to servers

File System Tools

MCP (Model Context Protocol) Server. Provides file system management tools for directory analysis, file operations, and document management through a FastMCP server implementation.

Tools
4
Validated
Jan 11, 2026

MCP-tools

MCP-tools 是一个用于文件和目录操作的 Python 工具集。

功能

  • 删除目录及其内容
  • 统计目录中的 PDF 文件数量
  • 获取文件详细信息
  • 递归列出目录信息

使用方法

from file_tools import remove_directory, count_pdf_files, get_file_info, list_directory_info

# 示例用法
directory_info = list_directory_info("path/to/directory")
pdf_count = count_pdf_files("path/to/directory")
file_info = get_file_info("path/to/file")

安装

克隆仓库后即可使用:

git clone https://github.com/YOUR_USERNAME/MCP-tools.git
cd MCP-tools

贡献

欢迎提交 Pull Requests 来改进工具集。

许可证

MIT License

Reviews

No reviews yet

Sign in to write a review