MCP Text Editor
MCP Text Editor Server provides line-oriented text file editing capabilities optimized for LLM token efficiency and concurrent access management.
📱 Content Tools
Overview
MCP Text Editor Server provides line-oriented text file editing capabilities optimized for LLM token efficiency and concurrent access management.
Core Features
File Operations
- Line-based text editing with partial file access
- Multi-file operation support with atomic updates
- Conflict detection using SHA-256 hash validation
- Flexible character encoding (UTF-8, Shift-JIS, Latin1)
Configuration
{
"mcpServers": {
"text-editor": {
"command": "uvx",
"args": ["mcp-text-editor"]
}
}
}
Technical Implementation
Installation
# Using Smithery
npx -y @smithery/cli install mcp-text-editor --client claude
# Manual installation
pip install -e .
Development Features
| Feature | Description | |---------|-------------| | Testing | 90% coverage with pytest | | Linting | Ruff, Black, isort | | Type Checking | mypy with full hints | | Security | Path validation, hash-based conflict detection |
The server requires Python 3.11+ and supports POSIX-compliant systems and Windows, with comprehensive error handling for file operations and concurrent access scenarios.