Patchloom logo

Patchloom

Structured MCP file editing for JSON, YAML, TOML, Markdown, and code symbols, with batching and rollback.

Install Patchloom

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "patchloom": {
      "command": "npx",
      "args": [
        "-y",
        "patchloom"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

Patchloom MCP server exposes structured file-editing operations for AI coding agents through a single cross-platform binary. It parses JSON, YAML, and TOML for selector-based changes, supports heading-aware Markdown edits, and performs AST operations across 20 languages. Batch and transaction commands combine multiple edits with rollback, while dry-run previews and stable error kinds help agents plan and recover. Reach for Patchloom when edits span structured files or several files, rather than for simple reads or one-off text replacements.

Use cases

  • Update configuration values across JSON, YAML, and TOML files
  • Batch version changes across several project files
  • Rename code symbols across a source tree
  • Append rows to Markdown tables by heading
  • Preview and roll back multi-file edits

Key features

  • Selector-based JSON, YAML, and TOML edits
  • Comment and formatting preservation
  • Heading-aware Markdown editing
  • AST operations across 20 languages
  • Batch and transactional edits with rollback
  • Cross-platform single-binary MCP server

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

17/17 checks healthy over the last 78d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 4h ago via OSV.dev · patchloom (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars21Stargazers on the source repository.
npm downloads1.8kPackage downloads in the last 30 days.
Last commit1d agoMost recent push to the default branch.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Patchloom works

What Patchloom does

Patchloom gives AI coding agents an MCP tool layer for modifying files with structure-aware operations. Its doc commands target values in JSON, YAML, and TOML by selector path instead of relying on regular expressions. The parser-backed workflow writes valid structured output and preserves comments and formatting, including during array changes.

Markdown operations work by document structure: agents can address sections, tables, and bullet lists through headings. Code-oriented operations use abstract syntax trees to list, rename, replace, and analyze symbols across 20 programming languages. Plain file operations are also available for actions such as replacement and file creation.

Patchloom is intended to complement a coding agent rather than replace its complete editing loop. It is particularly suited to configuration updates, coordinated changes across several files, and edits where preserving syntax or comments matters.

How it works

The executable can run as an MCP server with patchloom mcp-server, exposing its operations as structured tool calls. Agents can also use the command-line interface directly. A batch input can contain multiple operations, allowing several file changes to travel through one tool call. The tx workflow groups operations and can roll them back when a later format or validation step fails.

Operations support previewing before changes are applied through dry-run behavior. Applying a change requires the relevant --apply option in the command examples. For command-line use, an optional containment mode rejects parent-directory escapes and absolute paths outside the selected working directory. MCP containment is enabled by default, while CLI containment is optional.

The same binary and command behavior are intended for Linux, macOS, and Windows, with no dependency on utilities such as sed, jq, or grep.

Setup and configuration

Install the Patchloom binary and start its MCP entry point with patchloom mcp-server. The executable is distributed as a single binary for multiple operating systems. A working directory can be supplied with --cwd; CLI containment can then be enabled with --contain to restrict reads and writes to that workspace.

Patchloom can also be embedded by Rust applications. The MCP usage model is aimed at coding agents such as Claude Code, Codex, and Cursor, which call Patchloom as their file-editing tool layer.

Tools and capabilities

  • Edit JSON, YAML, and TOML values by selector while retaining comments and formatting.
  • Append structured values, including array elements, without treating the file as unstructured text.
  • Modify Markdown sections, tables, and bullets using headings rather than line numbers.
  • List, rename, replace, and analyze code symbols through AST operations across 20 languages.
  • Search and replace text, create files, and combine heterogeneous operations in a batch.
  • Use transactions with strict rollback when formatting or validation fails.
  • Preview changes before applying them and return stable error_kind values for host handling.

Limitations and notes

Patchloom is not a general replacement for native filesystem tools. Native file reads are preferable for reading one file, and native search or replacement tools may be quicker for simple single-file text tasks. Its main advantages apply to structured edits, comment preservation, multi-file batches, and syntax-aware code changes.

Batching reduces agent round-trips, but it does not make every individual operation faster than a native command. The MCP and CLI modes share the same binary, while path containment behaves differently: it is always active for MCP and must be requested for CLI use.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Patchloom

Patchloom is an MCP server that connects AI coding agents to local project files through structured editing tools. Its main tools cover JSON, YAML, and TOML selector edits, Markdown section and table changes, AST-based code operations, text replacement, file creation, batching, and transactional rollback across Linux, macOS, and Windows.

Install the Patchloom single binary for your operating system, then configure your MCP client to launch `patchloom mcp-server`. The binary is designed to work on Linux, macOS, and Windows without external command-line dependencies.

Yes, Patchloom edits YAML through parsed selector-based operations and preserves comments and formatting. Use its `doc` commands for structured values or array changes instead of regular-expression replacement.

Use the `batch` or `tx` operation to submit multiple edits in one tool call. Transactional execution can roll back the changes if a formatting or validation step fails, and dry-run behavior lets an agent preview changes before applying them.

Yes, Patchloom is intended to work with Cursor as an MCP tool layer. Configure Cursor to launch `patchloom mcp-server`, then use Patchloom for structured and multi-file edits while Cursor manages the broader coding workflow.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewPatchloom AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/patchloom?style=directory)](https://allmcps.com/mcp/patchloom)
HTML Embed
<a href="https://allmcps.com/mcp/patchloom"><img src="https://allmcps.com/api/badge/patchloom?style=directory" alt="Patchloom on AllMCPs" /></a>