- Mcp File Tools
Mcp File Tools
Claude Code and other AI tools force UTF-8 on every file write, which silently corrupts files in legacy encodings. This MCP server fixes that by auto-detecting the original encoding and preserving it. 19 tools: read/write with encoding support, edit with diff preview, tree (works on Windows where it's missing), grep with encoding awareness, detect and convert encodings, detect line endings (CRLF/LF). Supports 22 encodings including Cyrillic (CP1251, KOI8-R, KOI8-U, CP866), Western European (CP1252, ISO-8859-1), Central European (CP1250), Greek, Turkish, Hebrew, Arabic, Thai and more. Single Go binary, no runtime dependencies. Works with Claude Code, Claude Desktop, Cursor, VSCode. https://github.com/dimitar-grigorov/mcp-file-tools
Server Config
{
"mcpServers": {
"file-tools": {
"command": "C:\\Users\\YOUR_NAME\\AppData\\Local\\Programs\\mcp-file-tools\\mcp-file-tools.exe",
"args": [
"D:\\Projects"
]
}
}
}