# dimitar-grigorov/mcp-file-tools [Health: Active]

**Category:** 📂 File Systems  
**Repository:** https://github.com/dimitar-grigorov/mcp-file-tools  
**GitHub Stars:** 31  
**Views:** 5  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/dimitar-grigorov-mcp-file-tools

## Description
Filesystem server for legacy, non-UTF-8 files. Auto-detects and converts 24 encodings (CP1251, CP1252, ISO-8859-x, KOI8-R/U, GBK/GB18030), keeps each file's original encoding on write, and manages BOM and line endings. Encoding-aware grep, partial reads with offset/limit for large files, and allowed-directory confinement. Single Go binary, no runtime dependencies.

## Tools
Capabilities this server exposes over MCP:

- **read_text_file**
- **read_multiple_files**
- **write_file**
- **edit_file**
- **copy_file**
- **delete_file**
- **list_directory**
- **tree**
- **search_files**
- **grep_text_files**
- **detect_encoding**
- **convert_encoding**
- **manage_line_endings**
- **manage_bom**
- **list_encodings**
- **get_file_info**
- **create_directory**
- **move_file**
- **list_allowed_directories**
- **check_for_updates**

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/dimitar-grigorov/mcp-file-tools), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Add to Claude Code:

```sh
claude plugin marketplace add dimitar-grigorov/mcp-file-tools
```

2. Install:

```sh
claude plugin install mcp-file-tools
```

3. Install:

```sh
mkdir -Force "$env:LOCALAPPDATA\Programs\mcp-file-tools"
```

4. Install:

```sh
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"
```

5. Add to Claude Code:

```sh
claude mcp add --scope user file-tools -- "$env:LOCALAPPDATA\Programs\mcp-file-tools\mcp-file-tools.exe" "C:\Projects"
```

6. Install:

```sh
mkdir -p ~/.local/bin
```

## Documentation

## What dimitar-grigorov/mcp-file-tools does

dimitar-grigorov/mcp-file-tools is a local filesystem MCP server for text files whose encoding cannot be assumed to be UTF-8. It detects character encoding from file bytes rather than relying on filename extensions, converts content to UTF-8 for the model, and preserves the source encoding when writing changes back.

The server supports 45 encodings, including Windows and DOS code pages, ISO-8859 variants, Cyrillic encodings such as CP1251 and KOI8-R/U, MacRoman, UTF-16, UTF-32, GBK, Big5, Shift_JIS, and EUC-JP/KR. It is suited to legacy Delphi or Pascal units, VB6 forms, localized PHP or HTML, INI files, and other text handled by older software.

## How it works

The server runs as a single Go binary and communicates with MCP clients over stdio. Directories are supplied when the server starts; those paths define where file operations are allowed. Path checks also cover symlinks and junctions whose targets are inside or outside the permitted directories.

Reads provide UTF-8 text to the model. On write, the server retains the file's original encoding, when applicable, along with its BOM and CRLF or LF convention. Encoding-aware behavior also applies to editing, file searches, and text grep, so those operations use the same decoding approach as ordinary reads.

Large files can be read in portions using offsets and limits. Encoding detection can report the detected charset, a confidence score, and BOM information, which helps diagnose garbled text before making changes.

## Setup and configuration

The recommended Claude Code installation uses the project’s plugin marketplace:

```text
claude plugin marketplace add dimitar-grigorov/mcp-file-tools
claude plugin install mcp-file-tools
```

The plugin launcher requires Node.js 18 or newer on the PATH. On first launch it downloads a platform-specific binary, verifies its SHA-256, and caches it. The plugin is scoped to the open folder, while manual installation is appropriate when access to directories outside the workspace is needed or Node.js is unavailable.

Manual setup consists of downloading the binary for Windows x64, Linux x64, or macOS ARM64, then registering it with one or more allowed directory paths. A Go-based installation is also available and requires Go 1.27 or newer. Claude Desktop, VS Code, Cursor, and OpenAI Codex CLI can use the binary through their MCP configuration or command-line setup. For VS Code project configuration, use an stdio entry and list every reachable directory in `args`.

## Tools and capabilities

Available tools include:

- `read_text_file` and `read_multiple_files` for retrieving text, including partial reads with offset and limit support.
- `write_file`, `edit_file`, `copy_file`, `move_file`, `delete_file`, and `create_directory` for file and directory changes.
- `list_directory`, `tree`, `get_file_info`, and `list_allowed_directories` for filesystem inspection.
- `search_files` and `grep_text_files` for filename and text searches that understand file encoding.
- `detect_encoding`, `convert_encoding`, `manage_line_endings`, `manage_bom`, and `list_encodings` for charset and text-format control.
- `check_for_updates` for checking available server updates.

## Limitations and notes

Access is confined to directories passed during startup, so every directory an agent needs must be included in the configuration. VS Code configuration does not add the workspace directory automatically. When adding another directory there, provide the complete list again because the resulting configuration replaces the previous directory arguments.

Claude Code permission patterns change when moving from a manual installation to the plugin installation. The plugin’s tool names use the plugin-qualified MCP namespace, so existing approval rules may need to be updated.

_Full upstream README: https://allmcps.com/mcp/dimitar-grigorov-mcp-file-tools/readme_

