基本能力
产品定位
mcp-everything-search 是一个跨平台的快速文件搜索服务,旨在为用户提供高效、灵活的文件搜索能力。
核心功能
- 跨平台文件搜索:支持 Windows、macOS 和 Linux 系统。
- 多种搜索参数:支持文件名、路径、大小、创建日期、修改日期等多种搜索条件。
- 多种排序方式:支持按文件名、路径、大小、扩展名、创建日期、修改日期等多种排序方式。
- 高级搜索语法:支持正则表达式、大小写敏感、全词匹配等高级搜索功能。
适用场景
- 快速查找文件:在大量文件中快速定位目标文件。
- 批量处理文件:通过搜索条件批量处理符合条件的文件。
- 开发调试:在开发过程中快速查找相关代码文件。
工具列表
- search:搜索文件和文件夹,支持多种搜索参数和排序方式。
常见问题解答
- Windows 平台需要安装 Everything 搜索工具和 SDK。
- Linux 平台需要安装
locate
或plocate
命令并更新数据库。 - macOS 平台无需额外安装,使用内置的
mdfind
命令。
使用教程
使用依赖
Windows
- 下载并安装 Everything 搜索工具:https://www.voidtools.com/
- 下载 Everything SDK:https://www.voidtools.com/support/everything/sdk/
- 确保 Everything 服务正在运行。
Linux
- 安装
locate
或plocate
命令: - Ubuntu/Debian:
sudo apt-get install plocate
或sudo apt-get install mlocate
- Fedora:
sudo dnf install mlocate
- 更新数据库:
- 对于 plocate:
sudo updatedb
- 对于 mlocate:
sudo /etc/cron.daily/mlocate
macOS
无需额外安装。
安装教程
通过 Smithery 安装
bash
npx -y @smithery/cli install mcp-server-everything-search --client claude
使用 uv
无需特定安装,直接使用 uvx
运行。
使用 PIP
bash
pip install mcp-server-everything-search
运行:
bash
python -m mcp_server_everything_search
调试方式
使用 MCP inspector 调试
bash
npx @modelcontextprotocol/inspector uvx mcp-server-everything-search
查看日志
Linux/macOS:
bash
tail -f ~/.config/Claude/logs/mcp*.log
Windows (PowerShell):
powershell
Get-Content -Path "$env:APPDATA\Claude\logs\mcp*.log" -Tail 20 -Wait