Text Editor MCP Server
Line-oriented text file editing for LLMs with partial file access support.
Data last scanned today · Reviewed today
Overview
This server provides a standardized API for performing line-based edits and reading text files. By supporting partial file access with specific line ranges, it enables AI models to interact with documents more efficiently, significantly reducing token consumption compared to reading entire files. Built with a focus on synchronization, the server includes hash-based validation to detect and manage concurrent editing conflicts. It supports multiple file operations in a single request and handles various character encodings, making it a versatile tool for automated text processing and LLM-driven file management.
Our verdict
With a security score of 45/100, this server is currently classified as high risk. The rating reflects that authentication methods and read-only modes have not yet been reviewed, which presents a significant security blind spot for file-system access. Given these unverified security parameters and its community-maintained status, users should exercise caution and only run this server in isolated or sandboxed development environments.
- Supports efficient partial file access via line ranges.
- Implements hash-based validation to handle concurrent edits safely.
- Zero direct dependencies minimize the software supply chain surface.
- Handles multiple character encodings including UTF-8 and Shift-JIS.
- Authentication methods have not yet been reviewed for safety.
- The read-only mode implementation remains unverified.
- Maintained by the community rather than an official vendor.
- Requires manual configuration and lacks an official homepage.
Tools
| Tool | Description | Risk |
|---|---|---|
| get_text_file_contents | Get the contents of one or more text files with line range specification. | low |
| patch_text_file_contents | Apply one or more non-overlapping patches to one file. | medium |
Compatibility
| Client | Local | Docker | Remote | Read-only |
|---|---|---|---|---|
| Claude Desktop | ||||
| Cursor | ||||
| VS Code | ||||
| Windsurf | ||||
| ChatGPT |
Frequently asked questions
›What are the system requirements for running this server?
You need Python 3.13 or higher, and a POSIX-compliant operating system (like Linux or macOS) or Windows. The server also requires appropriate file system permissions to perform read and write operations.
›How does the server handle concurrent file edits?
The server uses hash-based validation to ensure safe concurrent editing. You must provide the file and range hashes obtained from the get_text_file_contents tool when applying patches to prevent conflicts.
›Does the server support different character encodings?
Yes, the server supports flexible character encoding including utf-8, shift_jis, and latin1. You can specify the encoding as a parameter in your requests.
›Can I read only a specific part of a file to save tokens?
Yes, the get_text_file_contents tool allows you to specify line ranges using start and end parameters. You can also request multiple ranges across multiple files in a single operation.
›Are relative file paths supported?
No, the tool requires that all provided file paths be absolute.
Alternatives
Changelog
- Fixv1.2.0
2026-01-05
- Fix
- Improved
Badge
Maintain this server? Add the live badge to your README.