
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 Node.js MCP server offering standardized tools for secure file system operations and git commands, intended for use with AI assistants and developer tools.
MCP File Server is cataloged as an MCP server attributed to priyonuj. A Node.js MCP server offering standardized tools for secure file system operations and git commands, intended for use with AI assistants and developer tools. 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: Not specified. 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 MCP File 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. The server provides set_base_directory and get_base_directory tools so the base directory can be changed from chat without restarting or editing configuration files. It requires an absolute path.
The server applies path validation and normalization to prevent directory traversal, validates commands to prevent injection, and logs operations to a dedicated audit log file.
README.md · c3420347f2da · Fetched 2026-11-13 11:16:07 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 secure file server implementation using the Model Context Protocol (MCP) that provides a standardized interface for file system operations.
MCP File Server is a Node.js application that implements an MCP server specifically for file operations. It provides a secure and standardized way to interact with the file system through the MCP protocol, suitable for integration with AI assistants like Claude and developer tools like Cursor.
The server offers the following tools:
list_files: Lists files in a specified directoryread_file: Reads the content of a filewrite_file: Writes content to a filedelete_file: Deletes a file or directoryset_base_directory: Sets the base directory for file operations directly from chatget_base_directory: Gets the current base directorygit_command: Executes git commands in the base directoryThe project follows a modular architecture with services organized by responsibility:
mcp-file-server/
├── services/ # Service modules
│ ├── configService.js # Configuration management
│ ├── fileService.js # File system operations
│ ├── gitService.js # Git operations
│ ├── loggerService.js # Logging functionality
│ └── toolService.js # MCP tool registration
├── files/ # Default storage directory
├── log/ # Log files
├── examples/ # Example scripts and usage demos
├── mcp_server.js # Main application entry point
├── package.json # Project metadata and dependencies
└── README.md # Documentation
Clone this repository:
git clone <repository-url>
cd mcp-file-server
Install dependencies:
npm install
BASE_DIRECTORY: (Optional) Path to the base directory for file operations. If not specified, defaults to the files directory in the project root./files: Default base directory for file operations/log: Contains the debug log filenpm start
For development with auto-reload:
npm run dev
The server will run and connect to standard input/output for communication.
One of the key features of this implementation is the ability to set the base directory directly from the chat interface. This means you don't need to restart the server or modify configuration files to change where files are stored and accessed.
Simply ask the AI assistant to set the base directory, for example:
The assistant will use the set_base_directory tool to update the location. You can verify the current location at any time by asking for the current base directory.
The server allows you to execute Git commands directly from the chat interface. Simply ask the AI assistant to run a git command, for example:
You can also specify which shell to use:
Below is an example configuration object for integrating the MCP File Server with Claude Desktop or Cursor:
{
"mcpServers": {
"file-server": {
"command": "node",
"args": ["/path/to/mcp-file-server/mcp_server.js"],
"disabled": false,
"autoApprove": ["list_files", "read_file", "write_file", "delete_file", "set_base_directory", "get_base_directory", "git_command"]
}
}
}
Explanation of configuration properties:
mcpServers: Container for all MCP server configurationsfile-server: A unique identifier for this particular MCP servercommand: The command to execute (in this case, node to run the JavaScript file)args: Array of arguments to pass to the command (the path to your server script)disabled: Whether this server is currently disabled (false = enabled)autoApprove: List of tools that should be auto-approved without requiring user confirmationThe modular architecture makes it easy to extend the server with new functionality:
services/ directorytoolService.js filemcp_server.js file to initialize your serviceFor example, to add a new compression service:
services/compressionService.jsregisterCompressionTools() method to toolService.jsSets a new base directory for file operations.
Parameters:
path: The absolute path to the new base directoryReturns:
Gets the current base directory path.
Parameters:
Returns:
Lists files in a specified directory.
Parameters:
directory: (Optional) Directory path to list (defaults to root)Returns:
Reads the content of a file.
Parameters:
path: Path to the file to readReturns:
Writes content to a file.
Parameters:
path: Path to the file to writecontent: Content to write to the fileReturns:
Deletes a file or directory.
Parameters:
path: Path to the file or directory to deleteReturns:
Executes a git command in the base directory.
Parameters:
command: Git command to execute (without the 'git' prefix)shell: (Optional) Shell to use for execution (cmd, powershell, bash)Returns:
Check the log file at log/mcp_debug.log for detailed information about server operations and any errors that might occur.
Common issues:
We welcome contributions to improve the MCP File Server! Here's how you can help:
When reporting issues, please include:
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for MCP File Server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/mcp-file-navigator)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.