---
slug: "file-system-tools-mcp"
source_type: "readme"
source_url: "https://cdn.jsdelivr.net/gh/linglai27/mcp-tools@main/README.md"
repo: "https://github.com/linglai27/mcp-tools"
source_file: "README.md"
branch: "main"
---
# MCP-tools

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

## 功能

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

## 使用方法

```python
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")
```

## 安装

克隆仓库后即可使用：

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

## 贡献

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

## 许可证

MIT License 