Purpose: This is a Model Context Protocol (MCP) server specifically designed to solve the problem of reading and writing non-UTF-8 text files. It determines encoding from file bytes rather than the extension, provides content to the model as UTF-8, restores the original encoding when writing back, and preserves BOM and CRLF/LF line endings, thereby maintaining byte compatibility with the legacy tools that own the file. It is suitable for Delphi/Pascal units containing Cyrillic UI text, VB6 forms, localized legacy PHP/HTML, and INI or data files whose encoding cannot be determined from the filename.
Main capabilities: Supports reading and writing about 45 encodings, including Cyrillic (CP1251, KOI8-R/U, CP866/855), Windows-125x, ISO-8859-x, DOS code pages, MacRoman, UTF-16/32, and CJK (GBK, Big5, Shift_JIS, EUC-JP/KR), and accepts common aliases such as cp1251, latin1, gb2312, tis-620. Encoding awareness covers the entire toolset: edit_file, grep_text_files, search_files, and read/write all use the same decoding method. detect_encoding reports the character set, confidence, and BOM, making it easier to diagnose mojibake; BOM and line endings are treated as first-class concepts, including in UTF-16 scenarios. The server performs sandbox validation for every path, symlink, and junction against allowed directories. It provides 20 tools, covering read/write, edit, copy, delete, directory browsing, tree view, search, regex grep, encoding detection and conversion, line-ending management, BOM management, listing encodings, file information, creating directories, moving, listing allowed directories, and checking for updates; there are also three prompts: audit_encodings, fix_mojibake, and migrate_to_utf8.
Usage: It is recommended to install it as a Claude Code plugin, which requires Node.js 18+ in PATH. On first startup, it downloads the binary for the corresponding platform, verifies its SHA-256, and then caches it, with scope limited to the currently open folder. For other MCP clients or when access to directories outside the workspace is needed, it can be installed manually: download the binary for the corresponding platform and register it with allowed directories, or use Go install (requires Go 1.27+). It can be configured in Claude Desktop, VSCode, Cursor, and OpenAI Codex CLI, with args listing the accessible directories. Environment variables can be configured, and MCP_NO_UPDATE_CHECK=1 disables update checks.
Limitations: It is positioned as a text tool and does not read binary or media files (read_media_file is out of scope). Automatic detection will not guess MacRoman, DOS code pages, or less common ISO tables, and UTF-32 is recognized only by BOM; these require explicitly specifying the encoding. Detection is inherently a guess; for example, Spanish CP1252 text may be misidentified as GBK, and detection can be limited to a list of known encodings through configuration. Regarding legacy behavior, before 2.0.0 new files defaulted to cp1251, whereas now they default to utf-8, and existing files are unaffected. The project is distributed under GPL-3.0, and redistribution must comply with the corresponding terms.