MCP File Tools
M

MCP File Tools

The MCP File Tools server supports automatic detection and conversion of 22 non-UTF-8 encodings (including Cyrillic, Windows-125x, ISO-8859, etc.), enabling AI assistants to read and write legacy files correctly without data corruption.
2.5 points
4.6K

What is MCP File Tools?

MCP File Tools is a Model Context Protocol server dedicated to file operations. Its greatest feature is the ability to automatically detect and convert 22 different text encodings. This means that AI assistants (such as Claude) can safely read and write old files using non-standard encodings, such as Windows-1251 and KOI8-R, without garbled characters or data corruption.

How to use MCP File Tools?

After installation and configuration, you can directly issue file operation instructions to the AI assistant (such as Claude), for example, 'Read the config.ini file' or 'List all .pas files'. The server will automatically handle encoding conversion, and you don't need to worry about technical details. All operations are restricted to the pre-specified secure directory to ensure system security.

Applicable scenarios

It is particularly suitable for handling legacy codebases and old system files, such as Delphi/Pascal projects (Windows-1251 encoding), Visual Basic 6 applications, old PHP/HTML websites, and configuration files using specific encodings.

Main features

Support for 22 encodings
Automatically detect and convert 22 encodings, including Cyrillic (Windows-1251, KOI8-R), Western European (Windows-1252), Central European (Windows-1250), Greek, Turkish, Hebrew, Arabic, etc., as well as Unicode encodings such as UTF-8 and UTF-16.
19 file operation tools
Provide 19 complete file operation functions, such as reading, writing, editing, copying, deleting, searching, and encoding conversion, to meet daily development needs.
Intelligent encoding detection
Automatically detect file encoding and provide a confidence score. You can read file content correctly without manually specifying the encoding.
Security sandbox
All file operations are restricted to the directory explicitly allowed by the user to prevent accidental access or modification of system files and ensure operation security.
Intelligent line editing
Support line-based file editing, provide difference previews, and have flexible whitespace matching functions to make editing more accurate and reliable.
Intelligent memory management
Automatically select memory loading or streaming processing based on file size. Small files are read quickly, and large files are processed efficiently. The default threshold is 64MB.
Advantages
Perfectly solve the garbled character problem when AI assistants handle non-UTF-8 files
Support a wide range of legacy encodings to cover the needs of most old systems
Simple to operate. After installation, you can use it directly through natural language instructions
Safe and reliable. All operations are restricted to the specified directory
Automatic encoding detection reduces the workload of manual configuration
Maintain file compatibility. The converted files can still be read by the original system
Limitations
Only support text file operations and do not handle binary files
Need to pre-configure the directory allowed for access
Some extremely rare encodings may not be automatically recognized
Encoding detection of large files (over 64MB) may be slightly slower

How to use

Download and install
Download the corresponding executable file according to your operating system or install it through Go. Windows users should use PowerShell to execute the command.
Configure the MCP client
Add the server to your MCP client (Claude Desktop, VSCode, etc.) and specify the directory allowed for access.
Start using
In the configured AI assistant interface, directly issue file operation instructions in natural language.
(Optional) Configure automatic approval
To avoid frequent permission confirmations, you can create a configuration file to automatically approve safe file operations.

Usage examples

Handling Delphi project files
Many Delphi/Pascal projects use the Windows-1251 encoding to store Cyrillic characters. Reading them directly will result in garbled characters.
Batch converting old configuration files
It is necessary to convert a batch of old system configuration files from Windows-1252 to UTF-8 encoding.
Searching for specific text in legacy code
Search for all files containing specific error messages in an old VB6 project.
Editing files with non-UTF-8 encoding
It is necessary to modify an old PHP configuration file using the ISO-8859-1 encoding.

Frequently Asked Questions

Which encodings does this tool support?
How to ensure the security of file operations?
What if the file encoding cannot be automatically detected?
What is the maximum file size supported?
How to use it in different MCP clients?
How to avoid accidental changes when editing files?

Related resources

GitHub repository
Source code, issue tracking, and the latest version
MCP official registry
Find this server in the MCP official registry
Detailed tool documentation
Detailed parameter descriptions and usage examples for all 19 tools
MCP Inspector debugging tool
A web interface tool for testing and debugging MCP servers
Model Context Protocol official website
Understand the basic concepts and specifications of the MCP protocol

Installation

Copy the following command to your Client for configuration
{
  "mcpServers": {
    "file-tools": {
      "command": "C:\\Users\\YOUR_NAME\\AppData\\Local\\Programs\\mcp-file-tools\\mcp-file-tools.exe",
      "args": ["D:\\Projects", "C:\\Users\\YOUR_NAME\\Documents"]
    }
  }
}

{
  "mcpServers": {
    "file-tools": {
      "command": "/Users/YOUR_NAME/.local/bin/mcp-file-tools",
      "args": ["/Users/YOUR_NAME/Projects", "/Users/YOUR_NAME/Documents"]
    }
  }
}

{
  "mcpServers": {
    "file-tools": {
      "type": "stdio",
      "command": "C:\\Users\\YOUR_NAME\\AppData\\Local\\Programs\\mcp-file-tools\\mcp-file-tools.exe",
      "args": ["D:\\Projects", "D:\\Other\\Directory"]
    }
  }
}

{
  "mcpServers": {
    "file-tools": {
      "command": "C:\\Users\\YOUR_NAME\\AppData\\Local\\Programs\\mcp-file-tools\\mcp-file-tools.exe",
      "args": ["D:\\Projects"],
      "env": {
        "MCP_DEFAULT_ENCODING": "utf-8"
      }
    }
  }
}
Note: Your key is sensitive information, do not share it with anyone.

Alternatives

V
Vestige
Vestige is an AI memory engine based on cognitive science. By implementing 29 neuroscience modules such as prediction error gating, FSRS - 6 spaced repetition, and memory dreaming, it provides long - term memory capabilities for AI. It includes a 3D visualization dashboard and 21 MCP tools, runs completely locally, and does not require the cloud.
Rust
5.4K
4.5 points
M
Moltbrain
MoltBrain is a long-term memory layer plugin designed for OpenClaw, MoltBook, and Claude Code, capable of automatically learning and recalling project context, providing intelligent search, observation recording, analysis statistics, and persistent storage functions.
TypeScript
5.1K
4.5 points
B
Bm.md
A feature-rich Markdown typesetting tool that supports multiple style themes and platform adaptation, providing real-time editing preview, image export, and API integration capabilities
TypeScript
5.4K
5 points
S
Security Detections MCP
Security Detections MCP is a server based on the Model Context Protocol that allows LLMs to query a unified security detection rule database covering Sigma, Splunk ESCU, Elastic, and KQL formats. The latest version 3.0 is upgraded to an autonomous detection engineering platform that can automatically extract TTPs from threat intelligence, analyze coverage gaps, generate SIEM-native format detection rules, run tests, and verify. The project includes over 71 tools, 11 pre-built workflow prompts, and a knowledge graph system, supporting multiple SIEM platforms.
TypeScript
5.6K
4 points
P
Paperbanana
Python
6.9K
5 points
B
Better Icons
An MCP server and CLI tool that provides search and retrieval of over 200,000 icons, supports more than 150 icon libraries, and helps AI assistants and developers quickly obtain and use icons.
TypeScript
6.6K
4.5 points
A
Assistant Ui
assistant - ui is an open - source TypeScript/React library for quickly building production - grade AI chat interfaces, providing composable UI components, streaming responses, accessibility, etc., and supporting multiple AI backends and models.
TypeScript
6.7K
5 points
A
Apify MCP Server
The Apify MCP Server is a tool based on the Model Context Protocol (MCP) that allows AI assistants to extract data from websites such as social media, search engines, and e-commerce through thousands of ready-to-use crawlers, scrapers, and automation tools (Apify Actors). It supports OAuth and Skyfire proxy payment and can be integrated into MCP clients such as Claude and VS Code through HTTPS endpoints or local stdio.
TypeScript
6.7K
5 points
G
Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
26.0K
4.3 points
M
Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
36.0K
5 points
N
Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
21.7K
4.5 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
74.4K
4.3 points
U
Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
32.9K
5 points
F
Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
64.4K
4.5 points
G
Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
22.2K
4.5 points
C
Context7
Context7 MCP is a service that provides real-time, version-specific documentation and code examples for AI programming assistants. It is directly integrated into prompts through the Model Context Protocol to solve the problem of LLMs using outdated information.
TypeScript
97.7K
4.7 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2026AIBase