jidzhang/mcp-fileencoding

一个MCP服务器,解决AI编码助手在Windows中文环境下读写GBK/GB18030文件时乱码的问题。读取文件时自动检测编码并转为UTF-8返回给AI,写入时自动转回原始编码,文件编码保持不变。支持UTF-8(含BOM)、GBK、GB2312、GB18030等编码。提供read、write、edit、查询编码记录等5个工具,通过PreToolUse Hook或系统提示词引导 AI 按需使用。适用于Claude Code、Cursor等支持MCP的客户端。Python 3.10+,基于mcp和charset-normalizer,pyright strict模式零错误,45个测试全部通过。

7Stars on the repository
1Mods indexed here, across every type
3mo 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.

7 3mo ago A tokens not measured