Ellmos Clatcher MCP

Utility MCP server: JSON repair, encoding fixes, conversion, duplicates, batch rename, archives.

OtherTypeScriptv1.0.10

ellmos-clatcher-mcp

🇩🇪 Deutsche Version | 🛡️ Security Policy | 📜 Licenses | 📝 Changelog | 📋 llms.txt

npm version License: MIT Node.js Platform Clatcher tests Vitest Security Policy Zero-Egress Third-Party Licenses Marketing Log Last Checked MCP Registry Ready Glama LLM-Ready Ecosystem Umbrella

Claude Patcher -- an MCP server that extends AI coding agents with utility tools they don't have natively. File repair, format conversion, duplicate detection, batch operations, and more.

Use Clatcher when your agent needs reliable local maintenance tools for text files, data files, and project folders: repair invalid JSON, normalize encodings, convert formats, compare folders, rename files safely, and verify checksums without leaving the MCP workflow.

[!NOTE] AI / LLM Integration Note: All destructive operations (e.g. batch_rename, cleanup_file, fix_json, fix_encoding, fix_umlauts) default to dry-run mode (dry_run: true). Autonomous agents must explicitly specify dry_run: false to execute mutations on disk.

Highlights & Value Proposition

  • 12 Specialized Agent Tools: Extends Claude Code, Cursor, and MCP agents with utilities they lack out-of-the-box (JSON repair, encoding normalization, format conversion, diffing, deduplication, regex batch renaming).
  • Default Dry-Run Guard: Mutating tools run in preview mode (dry_run: true) by default. Agents must pass dry_run: false to write to disk.
  • 100% Local-First & Zero-Egress: Pure local execution over stdio JSON-RPC. No network calls, no cloud telemetry, zero remote attack surface.
  • Atomic File Operations: All disk modifications write to temporary staging buffers before replacement, preventing corrupt or truncated files.
  • Lossless Encoding Preservation: Eliminates Windows cp1252 artifacts, BOM headers, and German umlaut Mojibake (ä, ö, ü, ß) while guaranteeing pristine UTF-8 bytes.
  • Universal Multi-OS Parity: Tested continuously across Ubuntu, Windows, and macOS with native path handling and line endings.

🧭 Quick Navigation

#SectionFocus
01✨ Highlights & Value Proposition12 essential tools AI agents lack natively: repair, convert, deduplicate, diff, batch
02🎯 Target Personas & DiscoverabilityAutonomous agents, full-stack developers, release engineers, and security compliance
03⚖️ Comparative Matrix & Alternatives10-dimension evaluation vs standard agent shells, ad-hoc jq/sed, desktop apps, cloud APIs
04📐 System Architecture & Data Flow5-tier architecture flowchart TD for stdio transport and repair engines
05🔄 End-to-End Execution Sequence14-step dry-run safety sequence diagram from user prompt to verified disk write
06🛡️ Core Invariants & Safety Guarantees10 architectural guarantees ensuring default dry-run, zero-egress, and atomic writes
07🛠️ Tool Surface & CapabilitiesDeep-dive into all 12 MCP tools with parameter schemas and default preview modes
08⚙️ Installation & Client SetupSeamless setup for Claude Code CLI, Claude Desktop, Cursor, and npm global
09🧪 Verification & Automated Tests163 Vitest tests, 100% green parity, Multi-OS CI matrix across Node.js 20, 22, 24
10📜 Third-Party Licenses & Transparency100% permissive open source inventory (0 AGPL / copyleft, zero telemetry)
11🌐 ellmos MCP Family & Sibling Matrix9 sibling MCP servers spanning 200+ specialized agent tools
12🧱 Ecosystem & Partner SuitesIntegration with open-bricks desktop suites, BACH text OS, and dev-bricks tools
13🔒 Security Policy & Incident ReportingBilingual security policy, private vulnerability disclosure, 48h response SLA
14📋 Machine-Readable Context (llms.txt)Standardized LLM index for agent discovery and RAG crawlers
15📝 Changelog & EvolutionRelease evolution, dry-run security enforcement, and discoverability history
16⚖️ Liability & Legal NoticeStatutory open-source donation notice under §§ 516 ff. BGB and MIT disclaimer

Target Personas & Discoverability

PersonaCore NeedsPain Points SolvedTarget Discovery Terms
Autonomous AI Agents & SwarmsNon-destructive file repair, preview-first dry-runs, deterministic status receiptsMalformed JSON halting agent loops, unhandled encoding Mojibake corrupting project filesmcp json repair tool, local-first mcp file utilities, dry-run safe agent tools
Full-Stack DevelopersFast multi-format config conversions (JSON/YAML/TOML/XML), regex mass renamingCumbersome multi-tool CLI syntax, tedious regex loops, Windows CRLF / BOM pollutionjson to toml mcp, yaml xml conversion tool, batch regex rename mcp
DevOps & Release EngineersAutomated multi-hash checksums (SHA-256/SHA-512), folder diffs, ZIP inspectionCI runner tool drift, unverified package hashes, bloated external archive utilitiesmcp sha256 checksum, folder diff mcp tool, zip archive mcp runner
Security & Compliance Officers100% local-first air-gapped stdio execution, zero telemetry, audited permissive licensesHidden phone-home telemetry, unknown supply-chain licenses, uncontrolled network egresszero-egress mcp server, local-first claude mcp, permissive license mcp tools

Comparative Matrix & Alternatives

Dimensionellmos-clatcher-mcpStandard Agent ShellAd-Hoc CLI (jq/sed)Heavy Desktop AppsCloud Converters / APIs
Primary InterfaceNative MCP Stdio (JSON-RPC)Raw Shell / Bash ExecStandalone Terminal CLIGUI Application WindowHTTP REST / Web Page
Safety GuardrailsBuilt-in dry_run: true DefaultBlind Overwrite RiskUnchecked Shell WritesManual Confirmation GUIRemote Server Storage
Data Privacy & Egress100% Local-First / Zero-EgressLocal ExecutionLocal ExecutionLocal ExecutionRemote Cloud Upload
JSON Auto-RepairHeuristic 6-Rule RepairRe-generate Full FileComplex JQ ScriptingManual Syntax EditingThird-Party Web Paste
Encoding NormalizationLossless Mojibake FixGuesswork / iconviconv / enca CLIManual File Encoding ChgInconsistent Web UTF-8
Multi-Format ConversionJSON/YAML/TOML/XML/CSV/INIPrompt Re-writingSeparate CLI PackagesComplex File ExportsRate-Limited Cloud API
Duplicate DetectionSHA-256 Hash ClusteringNone (Custom Script)Custom bash / findStandalone Tool (Anti-D)Not Supported
Batch Regex RenamingDry-Run Staged RenamerSequential 'mv' looprename / sed ScriptsBulk Rename GUI UtilityNot Supported
Multi-OS ParityWindows, Linux, macOSShell Syntax QuirksLinux-centric ToolsetsOS-Specific BinariesBrowser-Dependent
License & Audited Security100% Permissive MIT / BSDVariable / UnauditedGPL / Mixed ToolchainsMixed / ProprietaryClosed Commercial SaaS

System Architecture & Data Flow

graph TD
    Agent["AI Agent / Claude Code / Cursor / IDE"] -->|"MCP JSON-RPC Protocol over Stdio"| Transport["MCP Stdio Transport Layer"]
    Transport --> Server["Clatcher MCP Server Runtime"]
    Server --> Dispatcher{"Tool Dispatcher"}

    Dispatcher -->|"fix_json / cleanup_file"| JsonEngine["JSON Linter & Auto-Fix Engine"]
    Dispatcher -->|"fix_encoding / fix_umlauts"| EncodingEngine["Encoding Normalizer & Mojibake Resolver"]
    Dispatcher -->|"convert_format"| FormatEngine["Format Converter: JSON/YAML/TOML/XML/CSV/INI"]
    Dispatcher -->|"detect_dupes / checksum"| HashEngine["SHA-256 / Multi-Hash Content Engine"]
    Dispatcher -->|"folder_diff / batch_rename"| FileOpsEngine["Folder Diff & Regex Batch Renamer"]
    Dispatcher -->|"archive / zip"| ArchiveEngine["AdmZip Compression Handler"]
    Dispatcher -->|"scan_emoji / regex_test"| RegexEngine["Emoji Scanner & Regex Debugger"]

    JsonEngine --> DryRunGuard{"Dry-Run Guard"}
    EncodingEngine --> DryRunGuard
    FormatEngine --> DryRunGuard
    FileOpsEngine --> DryRunGuard
    ArchiveEngine --> DryRunGuard

    DryRunGuard -->|"dry_run: true (default)"| PreviewReport["Detailed Dry-Run Preview Diff & Status"]
    DryRunGuard -->|"dry_run: false (explicit)"| DiskWrite["Safe Atomic Filesystem Write"]

End-to-End Execution Sequence

sequenceDiagram
    autonumber
    actor User as Developer / Agent Orchestrator
    participant Agent as AI Coding Agent (Claude Code / Cursor)
    participant Stdio as MCP Stdio Protocol (JSON-RPC)
    participant Clatcher as Clatcher MCP Server
    participant Validator as Zod Schema Validator
    participant Engine as Dedicated Tool Engine
    participant Guard as Dry-Run Safety Guard
    participant FS as Local Filesystem

    User->>Agent: Prompt: "Fix broken encoding and trailing commas in config.json"
    Agent->>Stdio: CallTool(name="fix_json", args={path: "config.json", dry_run: true})
    Stdio->>Clatcher: Dispatch JSON-RPC Request
    Clatcher->>Validator: Validate arguments (Zod schema)
    Validator-->>Clatcher: Validated inputs

    Clatcher->>Engine: Run JSON repair pipeline
    Engine->>FS: Read target file content (UTF-8)
    FS-->>Engine: Raw file bytes / string
    Engine->>Engine: Strip comments, trailing commas, single quotes, NULs
    Engine->>Guard: Submit repaired AST / string

    alt dry_run == true (Default Mode)
        Guard->>Guard: Generate diff & mutation preview
        Guard-->>Clatcher: Return diff preview without disk write
    else dry_run == false (Explicit Agent Mutation)
        Guard->>FS: Atomic write to target file via temp buffer
        FS-->>Guard: Write successful
        Guard-->>Clatcher: Return success receipt + bytes written
    end

    Clatcher-->>Stdio: JSON-RPC ToolResult (diff, stats, safety report)
    Stdio-->>Agent: Formatted MCP response
    Agent-->>User: Synthesized result & proposed next steps

Core Invariants & Safety Guarantees

InvariantGuaranteeEnforcement Mechanism
Default Dry-Run GuardMutating tools never alter files silentlyAll modifying tools (batch_rename, cleanup_file, fix_json, fix_encoding, fix_umlauts, convert_format, archive) default to dry_run: true. Requires explicit dry_run: false to commit changes.
Zero-Egress & Local-FirstZero external telemetry or network calls100% offline stdio JSON-RPC processing. No telemetry beacons, no external API requests, zero outbound network sockets.
Path Traversal GuardConfined strictly to authorized file treesArchive and batch operations validate destination boundaries and resolve relative paths safely against base roots.
Atomic OperationsResilient against interrupted writesModifying pipelines write to staged temporary files before replacing targets, preventing half-written or corrupted outputs.
Non-Elevation User-ModeMinimal OS privileges requiredRuns entirely inside the executing user's standard permissions without requesting sudo/Administrator privileges.
Encoding PreservationLossless character encoding round-tripFixes Windows cp1252 artifacts, BOM issues, and German umlauts (ä, ö, ü, ß) while preserving pristine UTF-8 byte order.
Multi-Hash IntegrityBit-level cryptographic verificationChecksum validation supporting SHA-256, SHA-512, MD5, and SHA-1 algorithms.
Multi-OS ParityIdentical behavior across OS platformsContinuously tested across Linux (ubuntu-latest), Windows (windows-latest), and macOS (macos-latest) with native path separator handling.
Fail-Closed Argument ValidationInvalid parameters rejected before executionZod schema validation enforces strict constraints, rejects malformed paths and types, and prevents partial execution.
Deterministic Error Bounds & ReceiptsStructured diagnostic reporting on all runsInvariant tool return contracts: every invocation returns structured JSON-RPC payloads, diff previews, byte counts, and verifiable receipts.

Part of the ellmos MCP family:

ServerFocusnpm
ellmos-filecommander-mcpFilesystem operations, process management, interactive sessionsellmos-filecommander-mcp
ellmos-codecommander-mcpCode analysis, AST parsing, import managementellmos-codecommander-mcp
ellmos-clatcher-mcpUtility tools: repair, convert, detect, batch opsellmos-clatcher-mcp
n8n-manager-mcpn8n workflow management via AI assistantsn8n-manager-mcp
ellmos-controlcenter-mcpMCP stack discovery, profile management, control planeellmos-controlcenter-mcp
ellmos-homebase-mcpLLM memory, knowledge, state, routing, and orchestrationellmos-homebase-mcp (alpha)
ellmos-servercommander-mcpServer operations: deploy dry-runs, mail status, log analysis, health checksellmos-servercommander-mcp (alpha)
ellmos-blender-use-mcpHeadless Blender asset QA and FBX reimport verificationellmos-blender-use-mcp (alpha)
open-compute-mcpModel-agnostic computer use: capture, safety-gated actions, Windows UIAopen-compute-mcp (alpha)

Each server covers a different domain. Use one server, a focused pair, or the full family depending on your workflow.

Discoverability

Primary search terms: ellmos-clatcher-mcp, clatcher mcp, claude patcher, mcp json repair server, mcp encoding fix, model context protocol file repair, claude code utility tools, format conversion mcp tool, duplicate file detection mcp, batch rename mcp, checksum mcp, zip archive mcp.

Tools

ToolDescription
fix_jsonRepair broken JSON: strip comments, trailing commas, single quotes, BOM/NUL
fix_encodingFix encoding issues: BOM removal, double-encoded UTF-8, cp1252 artifacts
fix_umlautsFix broken German umlauts from double-encoding (e.g. ä -> ä)
convert_formatConvert between JSON, YAML, TOML, XML, CSV, and INI
detect_dupesFind duplicate files by content hash (SHA256), grouped by identical content
folder_diffCompare two directories, or take a snapshot and diff on next call
batch_renameRename files using regex patterns, with dry-run preview
archiveCreate, extract, or list ZIP archives
checksumCalculate file hashes (SHA256, MD5, SHA1, SHA512) with optional verification
cleanup_fileRemove BOM, trailing whitespace, fix line endings, strip NUL bytes
scan_emojiFind emoji characters in code files
regex_testTest regex patterns against text, showing all matches with groups

All destructive tools default to dry-run mode and require explicit dry_run: false to write changes.

Installation

Claude Code CLI

claude mcp add ellmos-clatcher-mcp -- npx ellmos-clatcher-mcp

Claude Desktop / Cursor Configuration

Add Clatcher to your claude_desktop_config.json or Cursor MCP settings:

{
  "mcpServers": {
    "clatcher": {
      "command": "npx",
      "args": ["-y", "ellmos-clatcher-mcp"]
    }
  }
}

npm (global)

npm install -g ellmos-clatcher-mcp
claude mcp add ellmos-clatcher-mcp -- ellmos-clatcher

From source

git clone https://github.com/ellmos-ai/ellmos-clatcher-mcp.git
cd ellmos-clatcher-mcp
npm install
npm run build
node dist/index.js

Testing

npm test

163 tests covering all 12 tools, i18n language packs, repository hygiene, and metadata consistency (vitest). The GitHub Actions workflow runs npm ci, TypeScript build, Vitest, and an npm package dry-run on Node.js 20, 22, and 24.

Requirements

  • Node.js >= 20

License

MIT

Third-Party Licenses & Transparency

ellmos-clatcher-mcp adheres strictly to open-bricks and ellmos-ai open-source governance standards. All 7 direct runtime dependencies and 5 development dependencies are 100% permissively licensed (MIT, BSD-3-Clause, BSD-2-Clause, Apache-2.0) with zero copyleft (0% GPL/AGPL) and zero cloud telemetry.

For the comprehensive dependency inventory, SPDX identifiers, and full license texts, see THIRD_PARTY_LICENSES.md.


ellmos-ai Ecosystem

This MCP server is part of the ellmos-ai ecosystem — AI infrastructure, MCP servers, and intelligent tools.

MCP Server Family

ServerToolsFocusnpm
FileCommander50Filesystem, process management, interactive sessions, cloud-lock-safe operationsellmos-filecommander-mcp
CodeCommander22Code analysis, JSON repair, imports, diffs, regexellmos-codecommander-mcp
Clatcher12File repair, format conversion, batch operationsellmos-clatcher-mcp
n8n Manager19n8n workflow management via AI assistantsn8n-manager-mcp
ControlCenter34MCP stack discovery, profile management, control planeellmos-controlcenter-mcp
Homebase51Local-first LLM memory, knowledge, state, routing, swarm orchestrationellmos-homebase-mcp (alpha)
ServerCommander8Server operations: health checks, log analysis, deploy dry-runs, mail diagnosticsellmos-servercommander-mcp (alpha)
Blender Use4Headless Blender asset QA and FBX reimport verificationellmos-blender-use-mcp (alpha)
Open Compute16Model-agnostic computer use: capture, safety-gated actions, Windows UIAopen-compute-mcp (alpha)

AI Infrastructure

ProjectDescription
BACHLocal-first text-based OS for LLM agents — 113+ handlers, 550+ tools, SQLite memory
open-computeModel-agnostic computer-use core powering Open Compute MCP
clutchProvider-neutral LLM orchestration with auto-routing and budget tracking
rinnsalLightweight agent memory, connectors, and automation infrastructure
ellmos-stackSelf-hosted AI research stack (Ollama + n8n + Rinnsal + KnowledgeDigest)
MarbleRunAutonomous agent chain framework for Claude Code
gardenerMinimalist database-driven LLM OS prototype (4 functions, 1 table)
ellmos-testsTesting framework for LLM operating systems (7 dimensions)

Desktop Software & Sibling Ecosystem

Our partner organization open-bricks and sister suites bundle AI-native applications and developer tooling:

RepositoryFocusStatus
file-bricks/ProFilerMulti-column PySide6 desktop file manager with smart workspacesActive
doc-bricks/DokuZenDocument conversion, batch OCR, metadata sanitizationActive
dev-bricks/safe-start-for-codexSecure workspace preflight and agent bootstrap gatesActive
dev-bricks/DevCenterCentral development cockpit and service managerActive
dev-bricks/CodeBoxSandboxed code execution and containerized worker environmentActive

Security Policy

For security vulnerability disclosure channels, supported versions, and our 48-hour response SLA, refer to SECURITY.md.

Machine-Readable Context (llms.txt)

This repository provides a standardized machine-readable context file for AI agents, crawlers, and RAG indexers:

  • llms.txt: Concise manifest of all 12 tools, dry-run safety invariants, sibling MCP tool counts, and CLI invocation examples.

Changelog

For the complete release evolution, version notes, and hygiene audits, see CHANGELOG.md.

Haftung / Liability

Dieses Projekt ist eine unentgeltliche Open-Source-Schenkung im Sinne der §§ 516 ff. BGB. Die Haftung des Urhebers ist gemäß § 521 BGB auf Vorsatz und grobe Fahrlässigkeit beschränkt. Ergänzend gilt der Gewährleistungsausschluss der MIT-Lizenz.

Nutzung auf eigenes Risiko. Keine Wartungszusage, keine Verfügbarkeitsgarantie, keine Gewähr für Fehlerfreiheit oder Eignung für einen bestimmten Zweck.

This project is an unpaid open-source donation under German law. Liability is limited to intent and gross negligence (§ 521 German Civil Code). The MIT License warranty disclaimer applies.

Use at your own risk. No warranty, no maintenance guarantee, no availability guarantee, and no fitness-for-purpose assumed.

Installation

Source-derived launch command. Check the maintainer’s required arguments and credentials before running:

bash
npx -y ellmos-clatcher-mcp

Set up in your AI client

Merge this template into ~/Library/Application Support/Claude/claude_desktop_config.json. Keep existing servers. Add any arguments, credentials, and permissions required by the maintainer; this template has not been install-tested.

json
{
  "mcpServers": {
    "io-github-ellmos-ai-ellmos-clatcher-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "ellmos-clatcher-mcp"
      ]
    }
  }
}

Restart Claude Desktop completely for changes to take effect. Confirm the server appears connected in the client’s tool list, then try a read-only example from its documentation.

Claude Desktop setup reference

Package

ellmos-clatcher-mcpnpm

Compatible MCP Clients

Ellmos Clatcher MCP works with any MCP-compatible client. Copy the config snippet from the Configuration section above and add it to the file shown for your client, then restart the application.

  • Claude Desktop~/Library/Application Support/Claude/claude_desktop_config.jsonRestart Claude Desktop completely for changes to take effect.
  • Cursor~/.cursor/mcp.jsonRestart Cursor for changes to take effect.
  • VS Code.vscode/mcp.jsonReload VS Code window for changes to take effect.
  • Windsurf~/.codeium/windsurf/mcp_config.jsonRestart Windsurf for changes to take effect.
  • Claude Code.mcp.jsonSave at the project root, then start Claude Code in that project and review the MCP server approval prompt. Keep real credentials out of shared files.

Learn More