MCP Directory

How to add File Merger MCP Server to Cursor

Combine multiple files into one — fast, secure, and limited to directories you allow. Paste the config into ~/.cursor/mcp.json and restart Cursor.

Last updated June 14, 2026 · 26 · stdio · no auth

Cursor config for File Merger MCP Server

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

Setup steps

  1. 1Open Cursor → Settings → MCP → Add new MCP server (or edit ~/.cursor/mcp.json directly).
  2. 2Paste the File Merger MCP Server config below into the "mcpServers" object.
  3. 3Fill in placeholder secrets, then save.
  4. 4Cursor reloads MCP servers automatically — check Settings → MCP for a green status dot.
  5. 5Ask Cursor to use one of File Merger MCP Server's tools to confirm it's connected.

Before you start

  • Node.js with npx available
  • One or more allowed directories passed as command arguments

What File Merger MCP Server can do in Cursor

merge_files

Merges multiple files into one. Inputs: inputPaths (string[]) — files to merge; outputPath (string) — output file location. Returns a success message with merge details.

list_allowed_directories

Lists the directories the server is allowed to access.

Security

The server can only access directories explicitly passed as command arguments at launch. Use the list_allowed_directories tool to confirm which paths are accessible.

File Merger MCP Server + Cursor FAQ

Where is the Cursor config file?

Cursor reads MCP servers from ~/.cursor/mcp.json. Paste the File Merger MCP Server config there under the "mcpServers" key and restart the client.

Is File Merger MCP Server safe to use with Cursor?

The server can only access directories explicitly passed as command arguments at launch. Use the list_allowed_directories tool to confirm which paths are accessible.

Which directories can the server access?

Only the directories you pass as command-line arguments when launching the server. You can confirm them at any time with the list_allowed_directories tool.

Does it handle large files?

Yes. The README states it efficiently combines files of any size and reports file sizes plus a merge summary.

How do I install it?

Add the mcpServers block to your claude_desktop_config.json using npx with @exoticknight/mcp-file-merger and your allowed directory, or clone the repo and run npm install && npm run build.

View repo Full File Merger MCP Server page