MCP File Tools logo

MCP File Tools

by dimitar-grigorov

Handles legacy-encoded files with encoding-aware reads, edits, searches, writes, BOMs, line endings, and directory sandboxing.

Install MCP File Tools

Run the project’s own setup commands, in order.

Setup steps from the project

dimitar-grigorov/mcp-file-tools installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Add to Claude Code
    claude plugin marketplace add dimitar-grigorov/mcp-file-tools
    
  2. 2. Install
    claude plugin install mcp-file-tools
    
  3. 3. Install
    mkdir -Force "$env:LOCALAPPDATA\Programs\mcp-file-tools"
    
  4. 4. Install
    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. 5. Add to Claude Code
    claude mcp add --scope user file-tools -- "$env:LOCALAPPDATA\Programs\mcp-file-tools\mcp-file-tools.exe" "C:\Projects"
    
  6. 6. Install
    mkdir -p ~/.local/bin
    

Overview

dimitar-grigorov/mcp-file-tools connects MCP clients to local files and directories while preserving legacy encodings during edits and writes. It detects file encodings from bytes, presents text as UTF-8, and can write content back with the original charset, BOM, and line-ending style. Its tools cover file operations, encoding inspection and conversion, directory browsing, partial reads, and encoding-aware search. Reach for it when agents must work with CP1251, Shift_JIS, GBK, UTF-16, or other non-UTF-8 files without corrupting data.

Use cases

  • Edit CP1251 configuration files without changing their storage encoding
  • Search legacy PHP, HTML, Delphi, or VB6 files by decoded text
  • Inspect unknown encodings before modifying localized content
  • Convert files between supported character encodings
  • Read and update large text files in bounded sections

Key features

  • Detects and preserves legacy file encodings
  • Supports 45 character encodings
  • Preserves BOM and CRLF/LF line endings
  • Provides encoding-aware grep and file search
  • Supports offset and limit reads
  • Restricts access to configured directories

Tools20

What MCP File Tools lets your agent do. Expand a tool for its parameters.

Self-reported~68 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

12/13 checks healthy over the last 112d

Supply-chain signal

2 high-severity advisories on record for this package. Most advisories affect transitive dependencies and may not be exploitable in this server's actual usage — this is a directional signal, not a security audit.

Critical 1High 1Medium 0Low 0

Scanned 8/21/2026 via OSV.dev

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars31Stargazers on the source repository.
Last commit4d agoMost recent push to the default branch.
Tools exposed20Callable tools this server registers over MCP.
Directory activity5 viewsConfig copies, upvotes, and views on AllMCPs.

How MCP File Tools works

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:

Terminal
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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about MCP File Tools

dimitar-grigorov/mcp-file-tools is an MCP server that connects AI clients to local files and directories, with special handling for non-UTF-8 text. Its main tools read, write, edit, search, detect, convert, and manage file encodings, BOMs, and line endings while preserving legacy formats.

Install it as a Claude Code plugin or download and register its platform-specific Go binary with the directories it may access. The plugin requires Node.js 18 or newer; manual setup can also use Go 1.27+ to install the binary.

Yes, Cursor can use it through MCP configuration with the downloaded binary path and allowed directory arguments. A Claude Code MCP registration can also make it available in the VS Code or Cursor Claude Code extension.

It detects the encoding from the file bytes, gives the model UTF-8 text, and writes changes using the original encoding. It also preserves BOM information and CRLF or LF line endings, including for UTF-16 files.

Pass the permitted directory paths as startup arguments in the MCP client configuration. The server checks file paths, symlinks, and junction targets against those allowed directories.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMCP File Tools AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/dimitar-grigorov-mcp-file-tools?style=directory)](https://allmcps.com/mcp/dimitar-grigorov-mcp-file-tools)
HTML Embed
<a href="https://allmcps.com/mcp/dimitar-grigorov-mcp-file-tools"><img src="https://allmcps.com/api/badge/dimitar-grigorov-mcp-file-tools?style=directory" alt="MCP File Tools on AllMCPs" /></a>