mcp-file-context-server

mcp-file-context-server

15

The File Context Server is an MCP server that enhances LLMs by providing extensive file system context capabilities. It enables advanced file operations, smart caching, and code analysis, making it useful for developers seeking efficient file management and analysis tools.

File Context Server

A Model Context Protocol (MCP) server that provides file system context to Large Language Models (LLMs), enabling reading, searching, and analyzing code files with advanced caching and real-time file watching features.

Features

  • File Operations
    • Read and list file contents with detailed metadata
    • Real-time file watching
    • Support multiple encodings
    • Recursive directory traversal
  • Code Analysis
    • Cyclomatic complexity, dependency extraction, and comment analysis
    • Quality metrics like duplicate line detection
  • Smart Caching
    • Uses LRU caching strategy
    • Automatic cache invalidation
  • Advanced Search
    • Regex pattern matching and multi-pattern search

Installation

  • Automatically via Smithery or manually using npm.

Error Handling

Provides detailed error messages with specific error codes.