- Home
- MCP servers
- File Merger
File Merger
- javascript
24
GitHub Stars
javascript
Language
6 months ago
First Indexed
2 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
Installation
Add the following to your MCP client configuration file.
Configuration
View docs{
"mcpServers": {
"exoticknight-mcp-file-merger": {
"command": "npx",
"args": [
"-y",
"@exoticknight/mcp-file-merger",
"/path/to/allowed/dir"
]
}
}
}You can merge multiple files into a single output using a lightweight MCP server. It runs a simple, fast, and secure merge operation and reports the merge results so you can verify sizes and summaries quickly.
How to use
Configure your MCP client to connect to the File Merger MCP Server. You will provide the input files you want to combine and specify where the merged output should be written. This server exposes two primary tools: one to perform the merge and another to list directories it is allowed to access. Use the merge tool when you need to create a single consolidated file from many inputs, and use the directory listing tool to confirm what locations you can safely read from.
How to install
Prerequisites: make sure you have Node.js and npm installed on your system. You will clone the project, install dependencies, and build the package before using it in your MCP workflow.
# Clone and install
git clone https://github.com/exoticknight/mcp-file-merger.git
cd mcp-file-merger
npm install
npm run build
Configuration and usage notes
To run the MCP server within your setup, you can register it in your MCP client configuration. The following example shows how the MCP client might invoke the server as a stdio process using npx and the package name, with a path you are allowed to read from.
{
"mcpServers": {
"file_merger": {
"command": "npx",
"args": [
"-y",
"@exoticknight/mcp-file-merger",
"/path/to/allowed/dir"
]
}
}
}
Available tools
merge_files
Merges the specified input files into one output file. Accepts a list of inputPaths and an outputPath and returns a success message with merge details.
list_allowed_directories
Lists the directories that the server is allowed to access.