
A Model Context Protocol server for global law with read-only tools to find and read provisions by date, trace the law behind each word, search text and changes, and check cases or briefs against law in force.

A Model Context Protocol server that provides file system context to LLMs, enabling them to read, search, and analyze code files with caching and file watching.
File Context Server is cataloged as an MCP server attributed to bsmi021. A Model Context Protocol server that provides file system context to LLMs, enabling them to read, search, and analyze code files with caching and file watching. It is categorized under file systems-docs. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for File Context Server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
Yes, file operations support recursive directory traversal and file type filtering.
The cache uses an LRU strategy with automatic invalidation when files change, and it provides cache statistics and performance metrics.
Yes, environment variables customize maximum cache size, cache time-to-live, and maximum file size for reading.
README.md · 85a0681d894c · Fetched 2026-11-13 09:44:17 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
A Model Context Protocol (MCP) server that provides file system context to Large Language Models (LLMs). This server enables LLMs to read, search, and analyze code files with advanced caching and real-time file watching capabilities.
File Operations
Code Analysis
Smart Caching
Advanced Search
To install File Context Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @bsmi021/mcp-file-context-server --client claude
npm install @modelcontextprotocol/file-context-server
npx file-context-server
list_context_files
{
"path": "./src",
"recursive": true,
"includeHidden": false
}
read_context
{
"path": "./src/index.ts",
"encoding": "utf8",
"maxSize": 1000000,
"recursive": true,
"fileTypes": ["ts", "js"]
}
search_context
{
"pattern": "function.*",
"path": "./src",
"options": {
"recursive": true,
"contextLines": 2,
"fileTypes": ["ts"]
}
}
analyze_code
{
"path": "./src",
"recursive": true,
"metrics": ["complexity", "dependencies", "quality"]
}
cache_stats
{
"detailed": true
}
The server provides detailed error messages with specific error codes:
FILE_NOT_FOUND: File or directory does not existPERMISSION_DENIED: Access permission issuesINVALID_PATH: Invalid file path formatFILE_TOO_LARGE: File exceeds size limitENCODING_ERROR: File encoding issuesUNKNOWN_ERROR: Unexpected errorsEnvironment variables for customization:
MAX_CACHE_SIZE: Maximum number of cached entries (default: 1000)CACHE_TTL: Cache time-to-live in milliseconds (default: 1 hour)MAX_FILE_SIZE: Maximum file size in bytes for reading# Install dependencies
npm install
# Build
npm run build
# Run tests
npm test
# Start in development mode
npm run dev
MIT
Contributions are welcome! Please read our Contributing Guide for details on our code of conduct and the process for submitting pull requests.
Note: As of April 2025, all file and directory path handling in File Context Server has been updated for improved cross-platform compatibility (Windows, macOS, Linux):
path.posix.join for glob patterns and path.normalize for file system access.No changes are required for end users, but developers should follow these conventions when contributing to the project.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for File Context Server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/mcp-file-context-server)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

A Model Context Protocol server for global law with read-only tools to find and read provisions by date, trace the law behind each word, search text and changes, and check cases or briefs against law in force.

Hosted MCP server for tabletop RPG worlds that organizes messy notes and documents into a private store and lets MCP apps search lore, read documents, find characters, and optionally generate character or world pictures.

An MCP server that gives AI assistants scoped file system operations inside a project directory, with read-only reference projects plus git and GitHub tools.