Claude Text Editor MCP Server
by bhouston
An open-source implementation of Claude's 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.
Last updated: N/A
What is Claude Text Editor MCP Server?
This is an open-source implementation of the Claude built-in text editor tool as a Model Context Protocol (MCP) server. It allows you to view, edit, and create text files through a standardized API, mimicking the functionality of Claude's built-in text editor.
How to use Claude Text Editor MCP Server?
Install the package using npm or pnpm. Start the server using the command mcp-server-text-editor
or npx -y mcp-server-text-editor
. Configure the server in Claude Desktop with the provided JSON configuration. Use the tool commands (view, create, str_replace, insert, undo_edit) with the appropriate JSON payloads to interact with files.
Key features of Claude Text Editor MCP Server
Identical API to Claude's Text Editor
MCP Server Implementation
File Operations: View file contents with optional line range specification
File Operations: Create new files
File Operations: Replace text in existing files
File Operations: Insert text at specific line numbers
File Operations: Undo previous edits
Use cases of Claude Text Editor MCP Server
Integrating a text editor tool into AI applications using the Model Context Protocol
Providing Claude-like text editing capabilities in custom environments
Automating file manipulation tasks through an AI assistant
Building custom tools that interact with text files via a standardized API
FAQ from Claude Text Editor MCP Server
What versions of Claude's text editor does this support?
What versions of Claude's text editor does this support?
This package implements an equivalent tool to the built-in Claude text editor tool versions text_editor_20241022
(Claude 3.5 Sonnet) and text_editor_20250124
(Claude 3.7 Sonnet).
Why is the tool named 'text_editor'?
Why is the tool named 'text_editor'?
The tool is named 'text_editor' to avoid name conflicts with built-in Claude tools.
How do I install this package?
How do I install this package?
You can install the package using npm or pnpm with the commands npm install mcp-server-text-editor
or pnpm add mcp-server-text-editor
.
How do I start the server?
How do I start the server?
You can start the server using the command mcp-server-text-editor
or npx -y mcp-server-text-editor
.
What are the prerequisites for development?
What are the prerequisites for development?
The prerequisites for development are Node.js 18+ and pnpm.