Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT and other tools is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AI Fire in da houseCheck it out free

mcp-file-merger

MCP.Pizza Chef: exoticknight

The mcp-file-merger is an MCP server designed to combine multiple files into a single file quickly and securely. It supports merging any number of files with detailed reporting on file sizes and merge summaries. The server restricts access to only allowed directories, ensuring security and control. It integrates easily with clients like Claude Desktop and provides a simple API for file merging operations.

Use This MCP server To

Combine multiple text or data files into one consolidated file Automate merging of log files for analysis or archiving Create single documents from multiple source files for processing Securely merge files only within specified directories Generate merged reports from segmented data files Integrate file merging into AI workflows for document preparation

README

File Merger MCP Server

Simple utility to combine multiple files into one. Fast, secure, and easy to use.

Features

  • Simple - Merge any number of files with a single command
  • Fast - Efficiently combines files of any size
  • Secure - Only accesses directories you allow
  • Detailed - Reports file sizes and merge summary

API

Tools

  • merge_files

    • Inputs:
      • inputPaths (string[]): Files to merge
      • outputPath (string): Output file location
    • Returns:
      • Success message with merge details
  • list_allowed_directories

    • Lists directories the server can access

Usage with Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "file-merger": {
      "command": "npx",
      "args": [
        "-y",
        "@exoticknight/mcp-file-merger",
        "/path/to/allowed/dir"
      ]
    }
  }
}

Installation

# Clone and install
git clone https://github.com/exoticknight/mcp-file-merger.git
cd mcp-file-merger
npm install
npm run build

License

Apache License 2.0

mcp-file-merger FAQ

How do I specify which files to merge?
Use the merge_files tool with inputPaths listing files and outputPath for the merged file.
Can I restrict which directories the server accesses?
Yes, the server only accesses directories you explicitly allow during setup.
Is the file merging process efficient for large files?
Yes, the server is optimized to merge files of any size quickly.
How do I integrate this server with an MCP client like Claude Desktop?
Add the server configuration to claude_desktop_config.json with the appropriate command and allowed directory.
Does the server provide feedback after merging files?
Yes, it returns a success message with detailed merge information including file sizes.
Is the server easy to install and run?
Yes, it can be cloned from GitHub and installed with standard Node.js commands.
Can this server be used in automated workflows?
Absolutely, it supports command-line usage and API calls for integration in scripts and pipelines.
What security measures are in place?
The server restricts file access to allowed directories only, preventing unauthorized file operations.