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.
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:
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 READMEviewView the contents of a file or directory
createCreate a new file with the specified content
str_replaceReplace text in a file
insertInsert text at a specific line
undo_editRevert the last edit made to a file
Comparable tools
Installation
Installation
# Install from npm
npm install mcp-server-text-editor
# Or with pnpm
pnpm add mcp-server-text-editorConfiguring 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
Last updated · Auto-generated from public README + GitHub signals.