Back to Home
peteretelej icon

largefile

Verified Safe

by peteretelej

Overview

Enables AI assistants to interact with large text files by providing tools for structured analysis, targeted reading, pattern searching, and atomic editing, circumventing typical context window limitations.

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 operates via standard I/O (stdio), limiting direct network exposure. File operations use robust path normalization (os.path.abspath, os.path.expanduser) and atomic writes (temp file + rename) for integrity. It utilizes well-vetted third-party libraries like `tree-sitter` for semantic parsing and `rapidfuzz` for fuzzy matching. No hardcoded credentials or malicious patterns like unvalidated `eval()` of user input were found in the core server logic. Backups are automatically created before edits, providing a safety net for destructive operations.

Similar Servers

Stats

Interest Score32
Security Score9
Cost ClassMedium
Avg Tokens1500
Stars2
Forks0
Last Update2026-01-17

Tags

large filesfile managementcode analysistext editingsearchbackupsLLM toolsdeveloper tools