Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
6,000+ web scrapers for your AI agent, start free logo6,000+ web scrapers for your AI agent, start free

Apify gives your agent live web data: 6,000+ prebuilt scrapers and actors, MCP-ready. Sign up free with $5 in usage credits.

Try Apify free
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 48,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

Enables writing and editing files in ISO-8859-1 encoding, automatically converting UTF-8 content to ISO-8859-1 for legacy codebases.

README.md

ISO-8859-1 File Writer MCP

![npm version](https://www.npmjs.com/package/mcp-iso8859-writer)

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.

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 file
  • content: File content in UTF-8

Output:

  • success: boolean
  • path: normalized path
  • encoding: "iso-8859-1"
  • corruption_count: number of corrupted characters
  • is_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 file
  • startLine: Start line (1-based)
  • endLine: End line (inclusive, 1-based)
  • newContent: Replacement content in UTF-8

Output:

  • success: boolean
  • path: normalized path
  • encoding: "iso-8859-1"
  • corruption_count: number of corrupted characters
  • is_clean: true if no corruption
  • lines_replaced: number of lines replaced
  • total_lines: total lines in file after edit
  • backup_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: boolean
  • path: normalized path
  • content: file content converted to UTF-8
  • lines: number of lines
  • line_ending: "CRLF" or "LF"

Features

  • Atomic writes: Uses write-file-atomic to prevent file corruption on interrupted writes
  • Automatic 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 tests

License

MIT

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Developer Tools servers.