file MCP Server
Dir tree, file stats, duplicates, LOC for AI agents
file scores 30 (Limited), licensed MIT and written in TypeScript. It installs as a local process. It declares 5 tools. Filed under Uncategorized. GitHub shows 0 stars. Package registries report about 46 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.
Limited trust
30 of 100 from six public signals. Nobody can buy a point.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade A
90/100 for listing completeness. Lost points: short README, short summary.
How quality is graded
Where the 30 comes from
0 + 6 + 3 + 10 + 4 + 7 = 30. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 0 of 30 points.How recently the repository saw a commit or release.
Maintenance: 6 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 3 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 7 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "rog0x-mcp-file-tools": { "command": "npx", "args": [ "-y", "@rog0x/mcp-file-tools@1.0.1" ] } }}
Environment variables
This server does not declare environment variables.
Tools5Tool docs quality grade B
All capabilitiescode_countertoolCount lines of code by language: code, comments, and blank lines (like cloc/scc)
dir_treetoolGenerate a visual directory tree structure with configurable depth and ignore patterns
duplicate_findertoolFind duplicate files by size + MD5 hash, report wasted space
file_searchtoolSearch files by name glob, content regex, size range, and date range
file_statstoolAnalyze a directory: total files, size breakdown by extension, largest/newest/oldest files
About
@rog0x/mcp-file-tools
MCP server providing file and directory analysis tools for AI agents. Gives Claude (and other MCP-compatible AI) the ability to explore, analyze, and search file systems.
Tools
| Tool | Description |
|---|---|
dir_tree | Generate a visual directory tree structure with configurable depth and ignore patterns |
file_stats | Analyze a directory: total files, size breakdown by extension, largest/newest/oldest files |
duplicate_finder | Find duplicate files by size + MD5 hash, report wasted space |
code_counter | Count lines of code by language: code, comments, and blank lines (like cloc/scc) |
file_search | Search files by name glob, content regex, size range, and date range |
Installation
git clone https://github.com/rog0x/mcp-file-tools.git
cd mcp-file-tools
npm install
npm run build
Configuration
Claude Code
claude mcp add mcp-file-tools node /absolute/path/to/mcp-file-tools/dist/index.js
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"mcp-file-tools": {
"command": "node",
"args": ["/absolute/path/to/mcp-file-tools/dist/index.js"]
}
}
}
Tool Details
dir_tree
Generate a visual directory tree like the tree command.
Parameters:
dir_path (required) - Absolute path to the directory
max_depth (optional) - Max depth to traverse (default: 5, 0 = unlimited)
ignore_patterns (optional) - Patterns to ignore (default: node_modules, .git, dist, etc.)
file_stats
Get a comprehensive analysis of a directory's contents.
Parameters:
dir_path (required) - Absolute path to the directory
max_depth (optional) - Max depth to traverse (default: 10)
Returns: total files, total size, file counts by extension, top 10 largest files, top 10 newest/oldest files.
duplicate_finder
Find duplicate files using size pre-filtering and MD5 hashing.
Parameters:
dir_path (required) - Absolute path to the directory
min_size (optional) - Minimum file size in bytes (default: 1)
max_depth (optional) - Max depth to traverse (default: 10)
Returns: duplicate groups with file paths, sizes, and total wasted space.
code_counter
Count lines of code across 20+ languages with comment detection.
Parameters:
dir_path (required) - Absolute path to the directory
max_depth (optional) - Max depth to traverse (default: 10)
Supported languages: TypeScript, JavaScript, Python, Java, C/C++, C#, Go, Rust, Ruby, PHP, Swift, Kotlin, HTML, CSS, JSON, YAML, Markdown, Shell, SQL, Lua.
file_search
Search for files using multiple criteria simultaneously.
Parameters:
dir_path (required) - Absolute path to the directory
name_pattern (optional) - Glob pattern (e.g. "**/*.ts")
content_pattern (optional) - Regex to search file contents
min_size (optional) - Minimum file size in bytes
max_size (optional) - Maximum file size in bytes
modified_after (optional) - ISO date string
modified_before (optional) - ISO date string
max_results (optional) - Max results (default: 100)
License
MIT
Frequently asked questions
What is file MCP Server?
Dir tree, file stats, duplicates, LOC for AI agents
How do I install file MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. file MCP Server runs locally from the npm package @rog0x/mcp-file-tools with the command npx -y @rog0x/mcp-file-tools@1.0.1.
Is file MCP Server free and open source?
Yes. file MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does file MCP Server support remote (HTTP) connections?
No remote endpoint is listed for file MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does file MCP Server provide?
file MCP Server provides 5 tools, including code_counter, dir_tree, duplicate_finder, and file_search. See the full tool list for descriptions and parameters.
How is file MCP Server's trust score calculated?
file MCP Server scores 30 out of 100 (Limited). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.