exoticknight/mcp-file-merger logo

exoticknight/mcp-file-merger

Free

文件合并工具,适用于 AI 聊天长度限制。

FreeFree tier
Outputs: file
Type
Open Source

About exoticknight/mcp-file-merger

MCP server for merging multiple files into one. It is simple, fast, and secure. Provides two tools: merge_files (to merge selected files into a single output) and list_allowed_directories (to show directories the server can access). Designed for use with AI assistants like Claude Desktop via npx, making it easy to combine files for processing within chat length limits.

Key Features

Merge any number of files with a single command
Efficiently combines files of any size
Only accesses directories you explicitly allow
Reports file sizes and merge summary
Provides merge_files and list_allowed_directories tools
Designed for integration with Claude Desktop via npx

Pros & Cons

Pros
  • Simple single-command operation
  • Fast merging of files of any size
  • Secure - only accesses allowed directories
  • Provides detailed merge summary with file sizes
  • Free and open source under Apache 2.0 license
  • Easy integration with Claude Desktop
Cons
  • Requires explicit directory permissions, may need configuration
  • Only available as a command-line MCP server, no GUI
  • Limited to merging files; no other file operations
  • Requires Node.js and npm to use

Best For

Merging multiple files to work within AI chat length limitsCombining code files for review, analysis, or documentationIntegrating with Claude Desktop for automated file merging tasks

FAQ

How do I install the MCP File Merger?
Clone the repository, run npm install and npm run build, or use npx -y @exoticknight/mcp-file-merger /path/to/allowed/dir.
How do I use it with Claude Desktop?
Add it to the mcpServers in claude_desktop_config.json with the command: npx -y @exoticknight/mcp-file-merger /path/to/allowed/dir.