About File Merger MCP Server
File Merger MCP Server is an MCP server that combines multiple files into one output file. It is intended for users who need to merge files while limiting access to approved directories.
Key features
- 01Merges multiple files into one output file
- 02Accesses only explicitly allowed directories
- 03Lists accessible directories via a tool
- 04Reports file sizes and merge summary
Use cases
- 01Combining several text files into a single file
- 02Running file merges from Claude Desktop
MCP support
This project is an MCP server that exposes the merge_files and list_allowed_directories tools to MCP clients.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
Tools
2Saved tool list · updated 3w ago
| Parameter | Type | Required | Description |
|---|---|---|---|
| inputPaths | array | Yes | Array of file paths to merge |
| outputPath | string | Yes | Path for the merged output file |
Details
From the project READMEFile 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 mergeoutputPath(string): Output file location
- Returns:
- Success message with merge details
- Inputs:
-
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
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.
