What are the prerequisites for MCP File Server?
Node.js version 16 or higher, npm or yarn, and Git (for Git functionality).
@Priyonuj
基本信息
A secure Model Context Protocol (MCP) server for file system operations. Enables AI assistants like Claude and Cursor to access, read, write, and manage files on your system with robust path validation and dynamic storage location management.
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"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"
]
}
}
}工具列表暂未提供
当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
MCP File Server is a Node.js application that implements a Model Context Protocol server for secure, standardized file system operations. It is designed for integration with AI assistants like Claude and developer tools like Cursor.
Install with npm install, then start with npm start. Configure via BASE_DIRECTORY environment variable or set the base directory directly from chat using the set_base_directory tool. Git commands can be executed through the git_command tool. Add the server as an MCP server in Claude Desktop or Cursor using a JSON configuration object.
Node.js version 16 or higher, npm or yarn, and Git (for Git functionality).
Use the `set_base_directory` tool by asking the AI assistant, for example “Set the base directory to C:/Users/username/Documents”. Provide an absolute path.
It performs robust path validation to prevent directory traversal attacks, normalizes and resolves file paths carefully, validates commands to prevent injection, and logs all operations to a debug file.
Yes. The modular architecture allows adding new services in the `services/` directory, registering new tools in `toolService.js`, and updating `mcp_server.js`.
Add a JSON configuration object like the one in the README under “Configuration Object Example”, specifying the command, script path, and auto-approved tools.

Upload once. Find, use and share across your AI workflows. drop.media is one media library for you and every AI agent you use: files added from Claude, ChatGPT, Cursor, the terminal or the web can be found, reused and sh
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.
Official MCP server for pdfAssistant. Connect Claude, ChatGPT, or any MCP client to perform professional PDF processing like OCR, permanent redactions, secure encryption, format conversions, and 40+ advanced operations p
MCP Server for reading many files at the same time
MCP server that exposes a V8 JavaScript runtime as a tool for AI agents like Claude and Cursor. Supports persistent heap snapshots via S3 or local filesystem, and is ready for integration with modern AI development environments.
评论