Claude Text Editor MCP Server

by bhouston

36 stars
445 downloads
Not rated
GitHub Website

About

An MCP server for viewing, editing, and creating text files, based on the Claude built-in text editor tool.

Details

Author
bhouston
GitHub stars
36
Downloads
445
Categories
File Management, Other, Developer Tools, AI

- Implements identical API to Claude's built-in text editor.
- Supports view, create, replace, insert, and undo operations.
- Follows Model Context Protocol standard for AI tool integration.
- Compatible with Claude 3.5 Sonnet and 3.7 Sonnet.
- Avoids name conflicts by using tool name 'text_editor'.
- Open source under MIT license.

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Claude Text Editor MCP Server
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Install via npm or pnpm, then start the server with npx -y mcp-server-text-editor. Configure it in Claude Desktop by adding a "textEditor" entry under mcpServers. Available tool commands are view, create, str_replace, insert, and undo_edit.

text_editor

View, create, and edit files with persistent state across command calls. This tool is identical with Claude's built in text editor tool called text_editor_20241022

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

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

McpServers

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

Claude Text Editor MCP Server

npm version
CI Status
Test Coverage

<p align="center">
Model Context Protocol Logo
</p>

An open-source implementation of the Claude built-in text editor tool as a Model Context Protocol (MCP) server. This package provides the same functionality as Claude's built-in text editor tool, allowing you to view, edit, and create text files through a standardized API.

Features

- Identical API to Claude's Text Editor: Implements the exact same interface as Claude's built-in text editor tool
- MCP Server Implementation: Follows the Model Context Protocol standard for AI tool integration
- File Operations:
- View file contents with optional line range specification
- Create new files
- Replace text in existing files
- Insert text at specific line numbers
- Undo previous edits

Supported Claude Text Editor Versions

This package implements an equivalent tool to the built-in Claude text editor tool versions:

- text_editor_20241022 (Claude 3.5 Sonnet)
- text_editor_20250124 (Claude 3.7 Sonnet)

But using the tool name 'text_editor' to avoid name conflicts with built-in Claude tools.

Installation

```bash

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.