What is Mcp File Tools?
Mcp File Tools is an MCP server for file operations with non-UTF-8 encoding support. It auto-detects and converts 24 encodings (Cyrillic, Windows-125x, ISO-8859, KOI8, UTF-16, GBK/GB18030) so AI assistants can read and write legacy files without corrupting data. It is designed for developers working with Delphi/Pascal projects, legacy VB6 apps, old PHP/HTML sites, and config files with non-UTF-8 text.
How to use Mcp File Tools?
Install via the Claude Code plugin (/plugin marketplace add dimitar-grigorov/mcp-file-tools and /plugin install mcp-file-tools) or download the binary manually and register it with allowed directories. Once installed, simply ask Claude to perform file operations, such as "List all .pas files in this directory" or "Read config.ini and detect its encoding." The server is automatically scoped to the workspace when using the plugin; manual installs require specifying directories in the args array.
Key features of Mcp File Tools
- 21 file operation tools including read, write, edit, copy, move, delete, search, grep, and encoding conversion
- Auto-detection and conversion of 24 encodings (Unicode, Cyrillic, Western/Central European, Greek, Turkish, and others)
- Automatic encoding detection with confidence score
- Recursive directory tree view using 85% fewer tokens than JSON
- Security: all operations restricted to explicitly allowed directories only
- Automatic update checks and notification via tool responses
Use cases of Mcp File Tools
- Reading and editing legacy Delphi/Pascal source files with non-UTF-8 encoding (e.g., CP1251, KOI8-R)
- Converting entire project directories between encodings (e.g., Windows-1251 to UTF-8)
- Searching and grepping across legacy codebases that use mixed encodings
- Managing line endings and BOM markers across cross-platform projects
- Browsing and manipulating files in restricted directories without exposing the full filesystem
评论