MCPSERV.CLUB
bhouston

Claude Text Editor MCP Server

MCP Server

AI-powered file editing via a standardized protocol

Stale(65)
28stars
2views
Updated 23 days ago

About

An open‑source MCP server that implements Claude’s built-in text editor tool, enabling AI agents to view, create, modify, and undo edits on files through a simple JSON API.

Capabilities

Resources
Access data sources
Tools
Execute functions
Prompts
Pre-built templates
Sampling
AI model interactions

Overview

The Mcp Server Text Editor is an open‑source MCP server that recreates Claude’s built‑in text editor tool as a stand‑alone service. It solves the problem of tight coupling between Claude’s internal tooling and external development environments by exposing a standardized, network‑accessible API that any MCP‑compatible client can call. Developers who build AI assistants or integrate Claude into IDEs, CI pipelines, or custom tooling now have a lightweight, self‑hosted editor that can be discovered and invoked through the same Model Context Protocol mechanisms used for other tools.

At its core, the server implements the exact same command set as Claude’s native text editor: view, create, str_replace, insert, and undo_edit. Each command operates on a file path supplied by the client, optionally restricting view ranges or specifying line numbers for insertions. The server handles file I/O safely and returns structured responses that mirror the format expected by Claude, ensuring seamless handoff between the assistant’s reasoning and the editor’s actions. Because it follows MCP specifications, any client that can register a tool name (here ) and send JSON commands will be able to edit code, documentation, or configuration files without leaving the AI workflow.

Key capabilities include:

  • File browsing and selective viewing – retrieve entire files or specific line ranges, which is useful for large codebases where the assistant only needs to inspect a snippet.
  • Atomic file creation – generate new files with initial content, enabling Claude to scaffold components or tests on demand.
  • Targeted text manipulation – replace exact strings or insert lines at arbitrary positions, allowing the assistant to refactor code or append comments automatically.
  • Undo support – revert the most recent edit, providing a safety net for experimental changes.

Typical use cases span from in‑IDE code generation (Claude writes a function, then inserts it into the correct file at a specified line) to continuous integration pipelines (Claude reviews diffs, edits files, and commits changes). The server can be launched locally or deployed behind a firewall, making it ideal for enterprise environments that require strict control over data flow while still leveraging Claude’s generative power. Its lightweight Node.js implementation and zero external dependencies mean it can run on any machine that supports modern JavaScript, giving developers a plug‑and‑play solution for integrating text editing into AI workflows.