jidzhang/mcp-fileencoding

An MCP server that solves garbled text when AI coding assistants read and write GBK/GB18030 files in Chinese Windows environments. It automatically detects file encoding and converts it to UTF-8 when reading, then converts it back to the original encoding when writing, preserving the file encoding. Supports UTF-8 (including BOM), GBK, GB2312, GB18030, and other encodings. Provides five tools, including read, write, edit, and encoding-record queries, guided by a PreToolUse Hook or system prompt.

This repository also configures its own agents. See what mcp-fileencoding tells them →

7Stars on the repository
2Mods indexed here, across every type
1mo agoLast push, which is what freshness is scored on
noneNo LICENSE: all rights reserved, so bodies are not copied

mcp-fileencoding

01

jidzhang/mcp-fileencoding

MCP server Claude CodeCodexCursor +2

MCP server "mcp-fileencoding" as configured in jidzhang/mcp-fileencoding. Runs locally from the mcp-fileencoding Python package.

not rated 7 1mo ago A tokens not measured