Smart File Reader MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| LOG_LEVEL | No | Logging level (`DEBUG`, `INFO`, `WARNING`, `ERROR`). | INFO |
| ALLOWED_ROOTS | No | Comma-separated list of permitted paths (`~` for user home, `.` for project, `*` for root drive). | ~,. |
| MAX_FILE_SIZE_MB | No | Maximum file size in MB (`0` = unlimited). | 0 |
| MAX_SEARCH_RESULTS | No | Maximum number of search results returned per query. | 100000 |
| ENABLE_HIDDEN_FILES | No | Whether to allow access to hidden files (`.env`, `.gitignore`, etc.). | true |
| MAX_DIRECTORY_DEPTH | No | Maximum recursion depth for directory tree generation. | 20 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| read_fileC | Read the full text content of a file within allowed directories. |
| read_file_linesA | Read a specific range of lines from a text file (1-based line indexing). |
| list_filesC | List files and subdirectories in a directory with names, sizes, and types. |
| search_filesB | Search for files and folders matching a wildcard pattern (e.g. '.py', 'test_'). |
| search_file_contentC | Search for text inside supported UTF-8 files in a directory. |
| get_file_infoB | Get metadata about a file (name, extension, size, formatted size, timestamps). |
| get_file_previewA | Return a limited preview of file contents and whether content was truncated. |
| get_directory_treeB | Generate a formatted ASCII tree structure of a directory up to max_depth. |
| get_directory_sizeC | Calculate total folder size and return file and folder counts. |
| find_large_filesA | Find files larger than min_size_mb sorted in descending order by size. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| file_analysis_assistant | Prompt to analyze a file's content, architecture, quality, or logic. Args: path: Path to the target file. focus: Analytical focus area (e.g. 'security', 'performance', 'refactoring', 'general'). |
| directory_analysis_assistant | Prompt to inspect and summarize a directory's hierarchy and project structure. Args: directory: Root directory path to inspect. max_depth: Maximum directory depth to inspect. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| get_filesystem_info | Return server information, runtime environment, and operational limits. |
| get_allowed_roots | Return the list of configured allowed directory roots. |
| get_filesystem_statistics | Return filesystem statistics across all allowed directory roots. |
TDQS
Scored across 10 tools
Most tools target clearly distinct operations (tree, size, listing, pattern search, content search, metadata, large-file scan). The only overlap is the trio read_file / read_file_lines / get_file_preview, which all return file content; descriptions help but an agent may still hesitate over which to pick.
All ten tools follow a strict verb_noun snake_case pattern (get_directory_tree, find_large_files, read_file_lines, search_file_content, etc.). No camelCase or vague single-word names appear.
Ten tools is well within the ideal range and each corresponds to a concrete read/inspect operation. No redundant or filler tools pad the surface.
The read-only file inspection domain is well covered: navigation, listing, size, metadata, pattern and content search, full/partial reads. Minor gaps exist (no multi-file read, no regex search option, no write/copy operations if the scope is meant to extend beyond reading), but agents can work around them.