The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the MCP Multi Edit listing page.
An MCP server that gives Claude the ability to perform multiple find-and-replace operations in a single tool call with guaranteed atomicity -- all edits succeed or none apply.
Built by Essential AI Solutions for Claude Code and Claude Desktop.
Claude's built-in Edit tool handles one find-and-replace per call. When renaming a variable across a file or refactoring multiple files, that means dozens of individual tool calls -- each consuming context tokens and adding latency.
Multi Edit batches them into a single call:
Benchmarks run on realistic scenarios (bulk rename, logging migration, cross-file refactor). See benchmarks/results/BENCHMARK-REPORT.md for full details.
Add .mcp.json to your project root:
Restart Claude Code. Then add the included CLAUDE.md to your project root so Claude automatically prefers multi_edit over the built-in Edit tool:
That's it -- Claude will now use multi_edit whenever it's the right tool for the job.
Display name: Claude Code uses the key name in
mcpServersas the server's display name. You can change the key to any name you prefer.
Alternative: One-liner via CLI:
Note: The CLI only accepts simple names (letters, numbers, hyphens, underscores). For the full branded display name, use the
.mcp.jsonapproach above.
Add to your config file (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
Restart Claude Desktop.
Full installation guide: docs/installation.md
multi_edit -- Single file, multiple editsBatch multiple find-and-replace operations on one file. Edits apply sequentially and atomically.
| Parameter | Type | Default | Description |
|---|---|---|---|
file_path | string | required | Absolute path to the file |
edits | array | required | Find-and-replace operations (applied in order) |
edits[].old_string | string | required | Text to find (exact match) |
edits[].new_string | string | required | Replacement text |
edits[].replace_all | boolean | false | Replace all occurrences |
dry_run | boolean | false | Preview changes without applying |
backup | boolean | true | Create .bak backup before editing |
multi_edit_files -- Multiple files, one atomic operationCoordinate edits across multiple files. If any file fails, all files are rolled back automatically.
| Parameter | Type | Default | Description |
|---|---|---|---|
files | array | required | Array of file edit operations |
files[].file_path | string | required | Absolute path to the file |
files[].edits | array | required | Edits for this file (same format as above) |
dry_run | boolean | false | Preview changes without applying |
Full usage guide with examples: docs/usage.md
.bak files created before every edit (disable with backup: false)old_string matches multiple locations| Code | Retryable | Description |
|---|---|---|
MATCH_NOT_FOUND | Yes | old_string not found in file |
AMBIGUOUS_MATCH | Yes | old_string matches multiple locations |
VALIDATION_FAILED | Yes | Invalid input schema |
FILE_NOT_FOUND | No | File does not exist |
PERMISSION_DENIED | No | Insufficient file permissions |
BACKUP_FAILED | No | Could not create backup file |
When retryable is true, Claude reads the recovery_hints in the response, adjusts the input, and retries automatically.
Troubleshooting guide: docs/troubleshooting.md
| Document | Description |
|---|---|
| Installation Guide | All setup options for Claude Code and Claude Desktop |
| Usage Guide | Detailed tool reference with examples |
| Troubleshooting | Common issues and solutions |
| Changelog | Version history |
| Benchmark Report | Performance measurements |
PolyForm Noncommercial License 1.0.0
Free for personal and non-commercial use. For commercial licensing, contact support@essentialai.uk.
Built by Essential AI Solutions