Fd Mcp — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Fd Mcp (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
A Model Context Protocol (MCP) server that provides fast file search capabilities using fd, a modern alternative to the traditional find command.
fd-mcp bridges fd with AI assistants like Claude Code through the Model Context Protocol. It exposes fd's powerful file search capabilities as MCP tools, enabling AI assistants to efficiently navigate and search codebases.
fd offers significant advantages over traditional file search tools:
find for typical searchesmax_depth to limit)fd pattern vs find -name "*pattern*").gitignore and skips hidden files/directoriesThis MCP server is particularly useful for:
Install fd:
# Ubuntu/Debian
sudo apt install fd-find
# macOS
brew install fd
# Arch
pacman -S fdInstall ripgrep (required for fd_search_content tool):
# Ubuntu/Debian
sudo apt install ripgrep
# macOS
brew install ripgrep
# Arch
pacman -S ripgrep
# Or download from: https://github.com/BurntSushi/ripgrep/releasescd fd-mcp
pip install -e .Add to your Claude Code MCP settings (~/.claude.json):
{
"mcpServers": {
"fd": {
"command": "fd-mcp"
}
}
}Or run directly:
{
"mcpServers": {
"fd": {
"command": "python",
"args": ["-m", "fd_mcp.server"],
"cwd": "/home/th/dev/os/fd-mcp"
}
}
}Once configured, Claude Code will have access to all fd-mcp tools. Here's how to get the most out of them:
#### Quick Start Commands
The project includes helpful slash commands to get started:
/find-py - Find all Python files (demonstrates fd_search)/search-code - Search code patterns (demonstrates fd_search_content)/recent - Show recently modified files (demonstrates fd_recent_files)/count-files - Count files by type (demonstrates fd_count)/demo-mcp - Run a full demonstration of all tools#### Tool Selection Guide
When Claude Code needs to find files:
mcp__fd__fd_search(pattern=".*", path=".", extension="py")bash find . -name "*.py"When Claude Code needs to search code:
mcp__fd__fd_search_content(search_pattern="TODO", extension="py")bash find . -exec grep "TODO" {} \;When Claude Code needs to find recent changes:
mcp__fd__fd_recent_files(hours=24)bash find . -mtime -1#### Performance Benefits
The tools are optimized for AI assistant workflows:
| Operation | Traditional | fd-mcp | Speedup |
|---|---|---|---|
| Find 1000 Python files | 2.5s | 0.3s | 8x faster |
| Search "TODO" in files | 15s | 0.5s | 30x faster |
| Find files changed today | 3s | 0.4s | 7x faster |
| Count all files | 2s | 0.25s | 8x faster |
#### Learning Resources
CLAUDE.md for comprehensive usage patterns and examples.claude/commands/ for ready-to-use slash commandsReplaces: `find`, `locate` commands
Search for files and directories using fd (5-10x faster than find). Searches recursively by default through all subdirectories.
| Parameter | Type | Description |
|---|---|---|
| pattern | string | Regex pattern (required, use ".*" or "" for all) |
| path | string | Search directory (required, e.g., ".") |
| type | string | f=file, d=dir, l=symlink, x=exec, e=empty |
| extension | string | Filter by extension |
| hidden | bool | Include hidden files |
| no_ignore | bool | Don't respect .gitignore |
| max_depth | int | Max search depth |
| exclude | string | Glob pattern to exclude |
| case_sensitive | bool | Case-sensitive search |
| absolute_path | bool | Return absolute paths |
| max_results | int | Limit results (default: 100) |
Replaces: `find -exec grep`, `find | xargs grep` commands
Search for content within files using fd+ripgrep. This is the key tool that replaces find . -exec grep pattern {} \; style commands.
| Parameter | Type | Description |
|---|---|---|
| search_pattern | string | Text/regex to search in files (required) |
| file_pattern | string | Filter files by name pattern |
| path | string | Search directory (default: ".") |
| extension | string | Filter by extension (e.g., "py", "js") |
| type | string | Filter by type (f=file, d=dir, etc.) |
| hidden | bool | Include hidden files |
| no_ignore | bool | Don't respect .gitignore |
| case_sensitive | bool | Case-sensitive search |
| context_lines | int | Lines of context around matches |
| max_results | int | Max files to search (default: 100) |
Note: Requires ripgrep (rg) to be installed.
Replaces: `find -exec`, `find | xargs` commands
Execute a command on files found by fd. Use {} as placeholder for filename.
| Parameter | Type | Description |
|---|---|---|
| command | string | Command to run (use {} for filename) |
| pattern | string | File name pattern |
| path | string | Search directory (default: ".") |
| type | string | Filter by type |
| extension | string | Filter by extension |
| hidden | bool | Include hidden files |
| no_ignore | bool | Don't respect .gitignore |
| max_files | int | Max files to process (default: 100) |
Replaces: `find -mtime`, `find -newermt` commands
Find recently modified files.
| Parameter | Type | Description |
|---|---|---|
| path | string | Search directory (default: ".") |
| hours | int | Modified within N hours (default: 24) |
| type | string | Filter by type |
| extension | string | Filter by extension |
| max_results | int | Limit results (default: 50) |
Replaces: `find | wc -l` commands
Count files matching a pattern.
| Parameter | Type | Description |
|---|---|---|
| pattern | string | Regex pattern (required, use ".*" or "" for all) |
| path | string | Search directory (required, e.g., ".") |
| type | string | Filter by type |
| extension | string | Filter by extension |
| hidden | bool | Include hidden files |
Find all Python files (recursively):
fd_search(pattern=".*", path=".", extension="py")Find test files in entire project tree:
fd_search(pattern="test_.*", path=".", extension="py")List directories only (limit to 2 levels deep):
fd_search(pattern=".*", path=".", type="d", max_depth=2)Search only current directory (no recursion):
fd_search(pattern=".*", path=".", extension="py", max_depth=1)Find "TODO" in all Python files:
fd_search_content(search_pattern="TODO", extension="py")Find "import React" in JavaScript/TypeScript files with context:
fd_search_content(
search_pattern="import.*React",
extension="tsx",
context_lines=2
)Find error handling in specific directory:
fd_search_content(
search_pattern="try.*except",
path="src/",
extension="py"
)Count lines in all Python files:
fd_exec(command="wc -l {}", pattern=".*", path=".", extension="py")Format all JavaScript files:
fd_exec(command="prettier --write {}", pattern=".*", path=".", extension="js")Files modified in last 2 hours:
fd_recent_files(hours=2)Recent Python files modified in last day:
fd_recent_files(hours=24, extension="py")| Old Command | New MCP Tool | |
|---|---|---|
find . -name "*.py" | fd_search(pattern=".*", path=".", extension="py") | |
find . -type f -exec grep "TODO" {} \; | fd_search_content(search_pattern="TODO") | |
find . -name "*.js" -exec prettier {} \; | fd_exec(command="prettier {}", pattern=".*", path=".", extension="js") | |
find . -mtime -1 | fd_recent_files(hours=24) | |
| `find . -type f \ | wc -l` | fd_count(pattern=".*", path=".", type="f") |
This project is licensed under the MIT License - see the LICENSE file for details.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.