MCP File Tools
MCP server for file operations with non-UTF-8/Unicode encoding: Cyrillic, CP1251, CP1252, ISO-8859, KOI8 auto-detection
What is MCP File Tools?
MCP File Tools is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to mcp server for file operations with non-utf-8/unicode encoding: cyrillic, cp1251, cp1252, iso-8859, koi8 auto-detection
MCP server for file operations with non-UTF-8/Unicode encoding: Cyrillic, CP1251, CP1252, ISO-8859, KOI8 auto-detection
This server falls under the File Systems category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- MCP server for file operations with non-UTF-8/Unicode encodi
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx mcp-file-toolsConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use MCP File Tools
MCP File Tools is a Go-based MCP server that provides 21 file-operation tools with automatic detection and conversion of 22 character encodings, including Cyrillic (Windows-1251, KOI8-R, CP866), Western European (Windows-1252, ISO-8859-1), Central European, Greek, Turkish, Hebrew, Arabic, Baltic, Vietnamese, Thai, and UTF-16. It solves the common problem of AI assistants garbling legacy file content by transparently decoding files to UTF-8 before exposing them and re-encoding when writing back. Developers working with Delphi/Pascal projects, old PHP/HTML sites, VB6 code, or any non-UTF-8 codebase will find it essential for keeping characters like Cyrillic readable in Claude conversations.
Prerequisites
- A pre-built binary for your platform (Windows x64, Linux x64, or macOS ARM64) downloaded from the GitHub releases page, OR Go 1.23+ for go install
- An MCP-compatible client such as Claude Desktop, Claude Code, VS Code, or Cursor
- Read/write access to the directories you want the server to work with
Download the binary for your platform
Download the correct pre-built binary from the GitHub releases page and place it in a directory on your PATH. On macOS ARM64 the steps are shown below; adjust the URL for Windows (windows_amd64.exe) or Linux (linux_amd64).
mkdir -p ~/.local/bin
curl -L "https://github.com/dimitar-grigorov/mcp-file-tools/releases/latest/download/mcp-file-tools_darwin_arm64" \
-o ~/.local/bin/mcp-file-tools
chmod +x ~/.local/bin/mcp-file-toolsInstall via Go (alternative)
If you have Go 1.23+ installed you can build and install the binary directly with go install.
go install github.com/dimitar-grigorov/mcp-file-tools/cmd/mcp-file-tools@latestRegister with Claude Code
Add the server to Claude Code with the allowed directories passed as arguments. The server enforces that all file operations stay within these directories.
claude mcp add --scope user file-tools -- ~/.local/bin/mcp-file-tools ~/Projects ~/DocumentsConfigure Claude Desktop
For Claude Desktop, edit claude_desktop_config.json and point to the binary. The args array lists the directories the server is allowed to access — add as many as you need.
{
"mcpServers": {
"file-tools": {
"command": "/Users/YOUR_NAME/.local/bin/mcp-file-tools",
"args": ["/Users/YOUR_NAME/Projects", "/Users/YOUR_NAME/Documents"]
}
}
}Verify the server is working
Ask Claude to list the supported encodings or detect the encoding of a known legacy file. A successful response confirms the server is connected.
MCP File Tools Examples
Client configuration (macOS)
Claude Desktop config using the downloaded binary with two allowed directories.
{
"mcpServers": {
"file-tools": {
"command": "/Users/YOUR_NAME/.local/bin/mcp-file-tools",
"args": ["/Users/YOUR_NAME/Projects", "/Users/YOUR_NAME/Documents"]
}
}
}Prompts to try
Example prompts that leverage the encoding-aware file tools.
- "Read the file config.ini from my Delphi project — it uses Windows-1251 encoding"
- "Detect the encoding of /Projects/legacy/settings.cfg"
- "Convert the file /Projects/old_site/index.php from Windows-1252 to UTF-8"
- "Search all .pas files in /Projects for the Cyrillic text 'Настройки'"
- "List what encodings this server supports"Troubleshooting MCP File Tools
Permission denied when running the binary on macOS or Linux
Run 'chmod +x ~/.local/bin/mcp-file-tools' to make the binary executable. On macOS you may also need to approve it in System Settings → Privacy & Security after the first launch attempt.
Server refuses to read a file outside the allowed directories
The server enforces strict directory sandboxing. Add the required parent directory path as an additional argument in the 'args' array of your config and restart the client.
Encoding detection returns wrong charset for a file
Use the detect_encoding tool first to see the confidence score. If confidence is low, manually specify the encoding when calling read_text_file or convert_encoding, rather than relying on auto-detection.
Frequently Asked Questions about MCP File Tools
What is MCP File Tools?
MCP File Tools is a Model Context Protocol (MCP) server that mcp server for file operations with non-utf-8/unicode encoding: cyrillic, cp1251, cp1252, iso-8859, koi8 auto-detection It connects AI assistants to external tools and data sources through a standardized interface.
How do I install MCP File Tools?
Follow the installation instructions on the MCP File Tools GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with MCP File Tools?
MCP File Tools works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is MCP File Tools free to use?
Yes, MCP File Tools is open source and available under the GPL 3.0 license. You can use it freely in both personal and commercial projects.
MCP File Tools Alternatives — Similar File Systems Servers
Looking for alternatives to MCP File Tools? Here are other popular file systems servers you can use with Claude, Cursor, and VS Code.
Electerm
★ 14.1k📻Terminal/ssh/sftp/ftp/telnet/serialport/RDP/VNC/Spice client(linux, mac, win)
Plik
★ 1.8kPlik is a temporary file upload system (Wetransfer like) in Go.
Kordoc
★ 957An MCP server that parses South Korean document formats like HWP, HWPX, and PDF into Markdown. It features specialized table reconstruction and security-hardened extraction optimized for administrative and public institution files.
macOS Automator
★ 801A Model Context Protocol server that enables execution of AppleScript and JavaScript for Automation scripts on macOS, allowing programmatic control of applications and system functions through a rich knowledge base of pre-defined scripts.
PDF Reader
★ 723Enables reading, searching, and metadata extraction from PDF files without loading the entire content into the context window. It provides efficient tools for text cleaning, page-specific extraction, and context-aware search results.
Filesystem MCP Server
★ 643Provides comprehensive filesystem operations (read, write, list, create, delete, move files and directories) through the Model Context Protocol with Streamable HTTP transport and built-in security through configurable root directory restrictions.
Browse More File Systems MCP Servers
Explore all file systems servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up MCP File Tools in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use MCP File Tools?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.