MCP.so
Sign In
Servers

Claude Text Editor MCP Server

@bhouston

An open source implementation of the Claude built-in text editor tool

Overview

What is Claude Text Editor MCP Server?

It is an open-source Model Context Protocol (MCP) server that replicates the functionality of Claude's built-in text editor tool, allowing AI assistants to view, edit, and create text files through a standardized API. It is intended for developers who need to integrate file manipulation capabilities into AI workflows.

How to use Claude Text Editor MCP Server?

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.

Key features of Claude Text Editor MCP Server

  • 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.

Use cases of Claude Text Editor MCP Server

  • Allow an AI assistant to view and edit code files in a project.
  • Enable automated creation of new text files from AI-generated content.
  • Integrate undo functionality for safe iterative file editing by AI.
  • Provide a standardized file editing interface across MCP-compatible clients.

FAQ from Claude Text Editor MCP Server

What runtime does Claude Text Editor MCP Server require?

Node.js 18 or later and a package manager like npm or pnpm.

What versions of Claude's text editor does it support?

It implements the text_editor_20241022 and text_editor_20250124 versions, using the tool name 'text_editor'.

How do I install Claude Text Editor MCP Server?

Run npm install mcp-server-text-editor or pnpm add mcp-server-text-editor.

How do I configure it in Claude Desktop?

Add a “textEditor” entry under mcpServers in your Claude Desktop configuration with the command `npx -y m

Tags

More from AI & Agents