drio
Open app

MCP Text Editor Server

Source

Catalog onlyCatalog onlySTDIO

Overview

MCP Text Editor is a Model Context Protocol (MCP) server that provides line-oriented text file editing capabilities through a standardized API, designed to optimize file operations for large language model (LLM) tools.

To use the MCP Text Editor, set it up in your environment by installing the required Python version and dependencies, then start the server and use the provided API methods for editing and retrieving text file contents.

  • Line-oriented editing operations tailored for LLM tools - Efficient token usage with partial file access - Conflict detection and resolution for safe concurrent editing - Robust error handling and support for multiple file operations
  1. Collaborative editing in real-time development environments
  2. Automated text processing for LLM applications
  3. Enhancing file handling capabilities for various programming tools

Add to your AI client

Use these steps to connect MCP Text Editor Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "mcp-text-editor-tumf": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-text-editor-tumf"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "mcp-text-editor-tumf": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-text-editor-tumf"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "mcp-text-editor-tumf": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-text-editor-tumf"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "mcp-text-editor-tumf": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-text-editor-tumf"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mcp-text-editor-tumf": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-text-editor-tumf"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "mcp-text-editor-tumf": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-text-editor-tumf"
      ]
    }
  }
}

FAQ

What are the system requirements?

Requires Python 3.11 or higher and a POSIX-compliant operating system.

How does the conflict detection work?

The editor uses hash-based validation to detect modifications by other processes.

Can I use it for large files?

Yes, it is designed to handle large files efficiently by processing file sections as needed.