MCP Catalogs
Homemcp-server-text-editor screenshot

mcp-server-text-editor

by bhouston·36·Score 38

An MCP server implementation of Claude's built-in text editor tool for viewing, editing, and creating text files.

file-systemdeveloper-toolsproductivity
6
Forks
6
Open issues
14 mo ago
Last commit
2d ago
Indexed

Overview

This MCP server provides an open-source implementation of Claude's built-in text editor tool through the Model Context Protocol. It supports identical file operations as the original Claude tool, including viewing file contents with line ranges, creating new files, replacing text, inserting text at specific positions, and undoing edits. The server is well-documented with comprehensive examples and supports both npm and pnpm package managers, making it easy to integrate into Claude Desktop workflows.

Try asking AI

After installing, here are 5 things you can ask your AI assistant:

you:File editing within Claude Desktop
you:Code modification assistance
you:Document creation and management
you:How is this different from Claude's built-in text editor?
you:Which Claude versions is this compatible with?

When to choose this

Choose this server when you need to implement file editing capabilities for Claude in environments where the built-in editor isn't available, or when you need more control over the file editing process.

When NOT to choose this

Don't choose this if you need advanced file operations beyond text editing, such as binary file manipulation or complex version control workflows.

Tools this server exposes

5 tools extracted from the README
  • view

    View the contents of a file or directory

  • create

    Create a new file with the specified content

  • str_replace

    Replace text in a file

  • insert

    Insert text at a specific line

  • undo_edit

    Revert the last edit made to a file

Comparable tools

claude-desktop-text-editorfilesystem-mcpnode-fs-api

Installation

Installation

# Install from npm
npm install mcp-server-text-editor

# Or with pnpm
pnpm add mcp-server-text-editor

Configuring in Claude Desktop

{
  "mcpServers": {
    "textEditor": {
      "command": "npx",
      "args": ["-y", "mcp-server-text-editor"]
    }
  }
}

FAQ

How is this different from Claude's built-in text editor?
This MCP server provides the same functionality as Claude's built-in text editor but exposes it through the MCP protocol, allowing integration with other MCP-compatible clients and tools.
Which Claude versions is this compatible with?
This package implements functionality equivalent to Claude's text editor tool versions including 'text_editor_20241022' (Claude 3.5 Sonnet) and 'text_editor_20250124' (Claude 3.7 Sonnet).

Compare mcp-server-text-editor with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.