Skip to main content
Glama
Smart File Reader MCP Server

Smart File Reader MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LOG_LEVELNoLogging level (`DEBUG`, `INFO`, `WARNING`, `ERROR`).INFO
ALLOWED_ROOTSNoComma-separated list of permitted paths (`~` for user home, `.` for project, `*` for root drive).~,.
MAX_FILE_SIZE_MBNoMaximum file size in MB (`0` = unlimited).0
MAX_SEARCH_RESULTSNoMaximum number of search results returned per query.100000
ENABLE_HIDDEN_FILESNoWhether to allow access to hidden files (`.env`, `.gitignore`, etc.).true
MAX_DIRECTORY_DEPTHNoMaximum 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

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
read_fileC

Read the full text content of a file within allowed directories.

    Args:
        path: Relative or absolute path to the file.
    
read_file_linesA

Read a specific range of lines from a text file (1-based line indexing).

    Args:
        path: Relative or absolute path to the file.
        start_line: 1-based start line index.
        end_line: 1-based end line index (inclusive).
    
list_filesC

List files and subdirectories in a directory with names, sizes, and types.

    Args:
        directory: Directory path to list (defaults to current root directory).
    
search_filesB

Search for files and folders matching a wildcard pattern (e.g. '.py', 'test_').

    Args:
        directory: Directory to search inside.
        pattern: Wildcard search pattern.
    
search_file_contentC

Search for text inside supported UTF-8 files in a directory.

    Args:
        directory: Directory to search within.
        query: Text string to search for.
    
get_file_infoB

Get metadata about a file (name, extension, size, formatted size, timestamps).

    Args:
        path: Relative or absolute path to the file.
    
get_file_previewA

Return a limited preview of file contents and whether content was truncated.

    Args:
        path: Relative or absolute path to the file.
        max_chars: Maximum characters to return (default 500).
    
get_directory_treeB

Generate a formatted ASCII tree structure of a directory up to max_depth.

    Args:
        directory: Directory to visualize.
        max_depth: Maximum recursion depth (default 3).
    
get_directory_sizeC

Calculate total folder size and return file and folder counts.

    Args:
        directory: Directory path to measure.
    
find_large_filesA

Find files larger than min_size_mb sorted in descending order by size.

    Args:
        directory: Directory to scan.
        min_size_mb: Minimum file size in megabytes to include.
    

Prompts

Interactive templates invoked by user choice

NameDescription
file_analysis_assistantPrompt 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_assistantPrompt 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

NameDescription
get_filesystem_infoReturn server information, runtime environment, and operational limits.
get_allowed_rootsReturn the list of configured allowed directory roots.
get_filesystem_statisticsReturn filesystem statistics across all allowed directory roots.

TDQS

B3.4/5.0

Scored across 10 tools

Disambiguation4/5

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.

Naming Consistency5/5

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.

Tool Count5/5

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.

Completeness4/5

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.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues