DirForge
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| RootPath | No | Absolute path of the directory to expose. Defaults to the bundled samples directory. | |
| BearerToken | No | Optional. When set, clients must present this bearer token (Authorization header by default). | |
| EnableMcpEndpoint | No | Enable the MCP endpoint at /mcp | true |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {} |
| prompts | {} |
| resources | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_directoryB | List contents of a directory. Returns file and folder names with sizes and modification dates. |
| get_file_infoB | Get detailed metadata about a file including size, modification date, and MIME type. |
| read_fileA | Read the text contents of a file. Only works for text files within the size limit. Binary files (images, videos, executables, etc.) will be rejected. |
| get_file_hashesA | Compute CRC32, MD5, SHA1, SHA256, and SHA512 hashes of a file. |
| verify_sidecarA | Verify a file's integrity against a sidecar checksum file. Looks for a sidecar file in the same directory as the target file by appending a hash extension (e.g. for 'movie.mkv' it checks 'movie.mkv.sha256', 'movie.mkv.md5', 'movie.mkv.sfv', etc.). Supported sidecar formats: .sha512, .sha256, .sha1, .md5 (and their *sum variants), and .sfv (CRC32). Returns the algorithm used, the expected hash from the sidecar, the freshly computed hash, and whether they match. |
| get_directory_treeA | Get a visual tree representation of a directory structure, similar to the 'tree' command. |
| group_tree_by_typeB | Summarize all files under a directory grouped by file extension, with counts and total sizes. |
| group_tree_by_dateA | Summarize all files under a directory grouped by modification date buckets (Today, Yesterday, This week, This month, This year, Older). |
| find_largestA | Find the largest files under a directory, sorted by size descending. |
| find_recentB | Find the most recently modified files under a directory, sorted by date descending. |
| compare_directoriesA | Compare two directories side by side. Shows files only in the first, only in the second, files that differ, and identical files. |
| find_potential_duplicatesA | Find potential duplicate files by grouping files with identical sizes then hashing candidates. Uses XXH3-128 with 5 × 2 MiB probabilistic chunk sampling (first, last, and 3 pseudo-random interior chunks per file) — results are potential duplicates, not guaranteed exact matches. |
| searchC | Search for files and folders by name pattern. |
| search_contentA | Search for text inside files (grep-like). Returns matching lines with line numbers. Only searches text files. |
| find_largest_directoriesB | Find the largest directories by total recursive size, sorted by size descending. |
| search_by_dateA | Find files modified within a date range. Supports before, after, or between. Results sorted by date descending. |
| search_by_sizeA | Find files within a size range. Supports min, max, or both. At least one of minSize or maxSize is required. Results sorted by size descending. |
| disk_usage_summaryA | Summarize total size, file count, and directory count for a path. Shows top subdirectories by size. Optionally filter by glob pattern to summarize only matching files. |
| diff_snapshotsA | Detect filesystem changes in a directory. On first call (without a previousToken), returns a snapshot token. On subsequent calls, pass the previous token to get a structured diff of added, removed, and modified files. The token is self-contained — no server-side state is stored. |
| read_archive_entryA | Read the text contents of a file entry inside an archive (ZIP, TAR, TAR.GZ). |
| list_archive_entriesB | List files and directories inside an archive (ZIP, TAR, TAR.GZ). Supports browsing into subdirectories within the archive. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| storage_report | Generate a comprehensive storage health report for a directory, including file type breakdown, largest files, recent activity, and duplicate analysis. |
| cleanup_candidates | Identify files that are likely safe to delete: empty files, temporary files, orphaned sidecars, and duplicates. Returns candidates ranked by confidence. |
| organize_suggestions | Analyze a directory's contents and suggest how to reorganize files into a cleaner structure based on file types, dates, and naming patterns. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| Root directory listing | Browse the root directory of the DirForge file server. |
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Dissimilis/DirForge'
If you have feedback or need assistance with the MCP directory API, please join our Discord server