MCP File Tools MCP Server

Local setup required. This server has to be cloned and prepared on your machine before you register it in Claude Code.
1

Set the server up locally

Run this once to clone and prepare the server before adding it to Claude Code.

Run in terminal
git clone https://github.com/dimitar-grigorov/mcp-file-tools
cd mcp-file-tools

Then follow the repository README for any remaining dependency or build steps before continuing.

2

Register it in Claude Code

After the local setup is done, run this command to point Claude Code at the built server.

Run in terminal
claude mcp add mcp-file-tools -- node "<FULL_PATH_TO_MCP_FILE_TOOLS>/dist/index.js"

Replace <FULL_PATH_TO_MCP_FILE_TOOLS>/dist/index.js with the actual folder you prepared in step 1.

README.md

MCP server for file operations with non-UTF-8 encoding support

MCP File Tools

Claude sees Настройки — not ???? or Íàñòðîéêè.

MCP server for file operations with non-UTF-8 encoding support. Auto-detects and converts 22 encodings (Cyrillic, Windows-125x, ISO-8859, KOI8, UTF-16) so AI assistants can read and write legacy files without corrupting data.

Perfect for: Delphi/Pascal projects, legacy VB6 apps, old PHP/HTML sites, config files with non-UTF-8 text.

What It Does

Provides 19 tools for file operations with automatic encoding conversion:

Supported encodings (22 total):

  • Unicode: UTF-8, UTF-16 LE, UTF-16 BE (with BOM detection for UTF-16 and UTF-32)
  • Cyrillic: Windows-1251, KOI8-R, KOI8-U, CP866, ISO-8859-5
  • Western European: Windows-1252, ISO-8859-1, ISO-8859-15
  • Central European: Windows-1250, ISO-8859-2
  • Greek: Windows-1253, ISO-8859-7
  • Turkish: Windows-1254, ISO-8859-9
  • Other: Hebrew (1255), Arabic (1256), Baltic (1257), Vietnamese (1258), Thai (874)

See TOOLS.md for detailed parameters and examples.

Security: All operations restricted to allowed directories only.

Installation

MCP Registry

This server is listed in the Official MCP Registry for discovery.

Windows x64

Note: Run these commands in PowerShell, not in CMD.

# Download
mkdir -Force "$env:LOCALAPPDATA\Programs\mcp-file-tools"
iwr "https://github.com/dimitar-grigorov/mcp-file-tools/releases/latest/download/mcp-file-tools_windows_amd64.exe" -OutFile "$env:LOCALAPPDATA\Programs\mcp-file-tools\mcp-file-tools.exe"
# Install with Claude Code + VSCode (allows access to D:\Projects)
claude mcp add --scope user file-tools -- "$env:LOCALAPPDATA\Programs\mcp-file-tools\mcp-file-tools.exe" "D:\Projects"

Linux x64

# Download
mkdir -p ~/.local/bin
curl -L "https://github.com/dimitar-grigorov/mcp-file-tools/releases/latest/download/mcp-file-tools_linux_amd64" -o ~/.local/bin/mcp-file-tools
chmod +x ~/.local/bin/mcp-file-tools
# Install with Claude Code + VSCode (allows access to ~/Projects)
claude mcp add --scope user file-tools -- ~/.local/bin/mcp-file-tools ~/Projects

macOS ARM64

# Download
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-tools
# Install with Claude Code + VSCode (allows access to ~/Projects)
claude mcp add --scope user file-tools -- ~/.local/bin/mcp-file-tools ~/Projects

Go Install (All Platforms)

# Install with Go (requires Go 1.23+)
go install github.com/dimitar-grigorov/mcp-file-tools/cmd/mcp-file-too

Tools (5)

read_text_fileRead files with encoding auto-detection and conversion
write_fileWrite files in specific encodings
detect_encodingAuto-detect file encoding with confidence score
grep_text_filesRegex search in file contents with encoding support
treeCompact indented tree view of directory contents

Configuration

claude_desktop_config.json
{"mcpServers": {"file-tools": {"command": "mcp-file-tools", "args": ["/path/to/your/files"]}}}

Try it

Read the legacy config file at ./config.ini and detect its encoding.
Search for the string 'DatabaseConnection' in all files within the project directory, handling non-UTF-8 encodings.
Convert the file 'legacy_data.txt' from Windows-1251 to UTF-8.
List all files in the current directory using the tree tool to see the structure.

Frequently Asked Questions

What are the key features of MCP File Tools?

Automatic detection and conversion of 22 different file encodings. Support for legacy encodings including Cyrillic, Windows-125x, ISO-8859, and KOI8. Line-based file editing with diff preview and whitespace-flexible matching. Recursive directory searching and file metadata retrieval. Secure operation restricted to allowed directories.

What can I use MCP File Tools for?

Reading and editing legacy Delphi or Pascal source code files. Maintaining old PHP or HTML websites that use non-UTF-8 character sets. Processing legacy VB6 application configuration files. Converting historical data files to modern UTF-8 format for AI analysis.

How do I install MCP File Tools?

Install MCP File Tools by running: iwr "https://github.com/dimitar-grigorov/mcp-file-tools/releases/latest/download/mcp-file-tools_windows_amd64.exe" -OutFile "$env:LOCALAPPDATA\Programs\mcp-file-tools\mcp-file-tools.exe"

What MCP clients work with MCP File Tools?

MCP File Tools works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep MCP File Tools docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare