# EncodingMCP MCP server

> Lets AI coding assistants read and edit text files in various encodings like Windows-1252 or UTF-16 without corrupting special characters.

- Repository: https://github.com/thvedel/EncodingMCP
- Page: https://hostedmcp.org/servers/thvedel/encodingmcp
- Transport: —
- Stars: 0
- License: MIT

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `ENCODING_MCP_WORKSPACE` | no | no |  |

## Tools (11)

- `path`
- `head`
- `tail`
- `content`
- `encoding`
- `force`
- `edits`
- `files`
- `pattern`
- `directory`
- `remove`

## FAQ

### What encodings does it support?

It supports a wide range of encodings including Windows-1252, ISO-8859-x, UTF-16, and others, detecting them via BOM, strict UTF-8 validation, or codepage heuristics.

### Does it work on non-Windows systems?

No, the server is a standalone Windows x64 executable.

### How does it handle file encoding detection?

It uses BOM, strict UTF-8 validation, and codepage heuristics to detect encoding, and can remember encodings per file in a .encoding-mcp.json sidecar.
