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.

1 file for Claude Code: mcp-fileencoding CLAUDE.md — 4,280 tokens loaded in every session.

7Stars on the repository
1Files it configures its agents with
4,280Tokens loaded in every session
1Agent configured

Instructions

These files are jidzhang/mcp-fileencoding's own configuration — they tell Claude Code how to work on this repository, so they are not mods to install elsewhere. Copy one as a starting point and replace the parts that are about this project.