Back to Home
peteretelej icon

largefile

Verified Safe

by peteretelej

Overview

Navigate, search, and edit large codebases, logs, and data files that exceed AI context limits, using semantic code analysis and robust editing features.

Installation

Run Command
uvx --from largefile largefile-mcp

Environment Variables

  • LARGEFILE_MEMORY_THRESHOLD_MB
  • LARGEFILE_MMAP_THRESHOLD_MB
  • LARGEFILE_MAX_LINE_LENGTH
  • LARGEFILE_TRUNCATE_LENGTH
  • LARGEFILE_FUZZY_THRESHOLD
  • LARGEFILE_MAX_SEARCH_RESULTS
  • LARGEFILE_CONTEXT_LINES
  • LARGEFILE_SIMILAR_MATCH_LIMIT
  • LARGEFILE_SIMILAR_MATCH_THRESHOLD
  • LARGEFILE_STREAMING_CHUNK_SIZE
  • LARGEFILE_BACKUP_DIR
  • LARGEFILE_MAX_BACKUPS
  • LARGEFILE_MAX_BATCH_CHANGES
  • LARGEFILE_ENABLE_TREE_SITTER
  • LARGEFILE_TREE_SITTER_TIMEOUT
  • LARGEFILE_LOG_LEVEL
  • LARGEFILE_ENABLE_METRICS
  • LARGEFILE_LOG_FILE
  • LARGEFILE_ENABLE_PARALLEL_SEARCH
  • LARGEFILE_ENABLE_AST_CACHE

Security Notes

The server primarily performs file I/O, string processing, and AST parsing. It uses `os.path.expanduser` and `os.path.abspath` for path normalization, but does not restrict file access to a specific directory. Therefore, if the AI provides arbitrary absolute file paths, it could potentially read or write to sensitive system files (e.g., `/etc/passwd`) if the server process has the necessary operating system permissions. Atomic file writes (temp file + rename) and automatic backups are implemented for data integrity. Tree-sitter, a native extension, is used for semantic parsing, which carries the inherent risk of vulnerabilities in native code when processing malformed input, though the server includes error handling and timeouts for parsing. No direct `eval()` or `os.system()` calls with unchecked user input were found. The 'is_binary_file' function helps prevent text operations on binary files, but does not mitigate risks associated with executing them.

Similar Servers

Stats

Interest Score32
Security Score8
Cost ClassMedium
Avg Tokens1000
Stars2
Forks0
Last Update2026-01-19

Tags

large-filescode-navigationsemantic-analysislog-analysisllm-toolsfile-management