mcp-iso8859-writer
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-iso8859-writerwrite /var/www/html/index.html with content '¡Hola!'"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ISO-8859-1 File Writer MCP
MCP server for writing files in ISO-8859-1 encoding. Designed for legacy codebases that require ISO-8859-1 instead of UTF-8.
The Problem
AI agents (Claude, Cursor, etc.) generate code in UTF-8. When working with legacy codebases that use ISO-8859-1 encoding, direct file writes corrupt special characters (accents, ñ, etc.). This MCP transparently converts UTF-8 to ISO-8859-1.
Related MCP server: Code Editor MCP Server
Installation
Add the following configuration to your MCP settings:
{
"mcpServers": {
"iso-writer": {
"command": "npx",
"args": ["-y", "mcp-iso8859-writer"]
}
}
}Configuration file location:
Claude Code:
.mcp.json(project) or~/.claude/settings.json(global)Cursor: MCP settings
Claude Desktop:
claude_desktop_config.json
Optional: Restrict to a directory
By default, the MCP can write to any absolute path. To restrict operations to a specific directory, set the MCP_ISO_BASE_PATH environment variable:
{
"mcpServers": {
"iso-writer": {
"command": "npx",
"args": ["-y", "mcp-iso8859-writer"],
"env": {
"MCP_ISO_BASE_PATH": "/var/www/html"
}
}
}
}Optional: Customize backup location
Backups are stored in a centralized .mcp-iso8859-writer/ directory. By default, this is created in the current working directory. To specify a custom location:
{
"mcpServers": {
"iso-writer": {
"command": "npx",
"args": ["-y", "mcp-iso8859-writer"],
"env": {
"MCP_ISO_BACKUP_ROOT": "/path/to/project"
}
}
}
}The backup system preserves directory structure within the backup folder.
Tools
write_file_iso
Creates a new file in ISO-8859-1 encoding.
Input:
filePath: Absolute path to the filecontent: File content in UTF-8
Output:
success: booleanpath: normalized pathencoding: "iso-8859-1"corruption_count: number of corrupted charactersis_clean: true if no corruption
edit_file_iso
Edits an existing ISO-8859-1 file by replacing specific lines. Automatically creates a backup before editing.
Input:
filePath: Absolute path to the filestartLine: Start line (1-based)endLine: End line (inclusive, 1-based)newContent: Replacement content in UTF-8
Output:
success: booleanpath: normalized pathencoding: "iso-8859-1"corruption_count: number of corrupted charactersis_clean: true if no corruptionlines_replaced: number of lines replacedtotal_lines: total lines in file after editbackup_path: path to backup file
read_file_iso
Reads an ISO-8859-1 file and returns content as UTF-8.
Input:
filePath: Absolute path to the file
Output:
success: booleanpath: normalized pathcontent: file content converted to UTF-8lines: number of linesline_ending: "CRLF" or "LF"
Features
Atomic writes: Uses
write-file-atomicto prevent file corruption on interrupted writesAutomatic backups: Creates timestamped backup before every edit
Line ending preservation: Detects and preserves CRLF (Windows) or LF (Unix) line endings
Encoding verification: Reports any characters that couldn't be converted cleanly
Development
git clone https://github.com/lmendezz/mcp-iso8859-writer.git
cd mcp-iso8859-writer
npm install
npm run dev # Run with tsx (hot reload)
npm run build # Compile TypeScript
npm test # Run testsLicense
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Manage files and folders directly from your workspace. Read and write files, list directories, cre…
No-data MCP handoff for local Claude Code to Codex harness moves. $49 lifetime.
Persistent AI LaTeX workspace: edit and compile multi-file projects, export publication-ready PDFs.
Convert subtitles, transcripts, broadcast captions (SCC/MCC/STL), EDLs, and Premiere files.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables creation and management of UTF-8 with BOM encoded files optimized for Windows build environments. Provides file encoding conversion, detection, and template support for C++ and PowerShell files to prevent Korean character encoding issues.41MIT
- AlicenseAqualityBmaintenanceEnables safe, concurrent file system operations with sandboxed directory access control, automatic encoding detection, optimistic locking, and precise code editing capabilities including search-replace and batch operations.105MIT
- AlicenseAqualityAmaintenanceMCP server for file operations with non-UTF-8/Unicode encoding: Cyrillic, CP1251, CP1252, ISO-8859, KOI8 auto-detection42024GPL 3.0
- FlicenseNot gradedqualityFmaintenanceEnables AI assistants to read and write non-UTF-8 files (e.g., GBK, GB18030) on Windows by automatically detecting and converting encodings, preventing garbled text.7-