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
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.
Related Servers
MindsDB MCP Server
Unified AI-driven data query across all sources
Homebrew Legacy Server
Legacy Homebrew repository split into core formulae and package manager
Daytona
Secure, elastic sandbox infrastructure for AI code execution
SafeLine WAF Server
Secure your web apps with a self‑hosted reverse‑proxy firewall
mediar-ai/screenpipe
MCP Server: mediar-ai/screenpipe
Skyvern
MCP Server: Skyvern
Weekly Views
Server Health
Information
Tags
Explore More Servers
Bucketeer Docs Local MCP Server
Local AI-powered search for Bucketeer documentation
MCP Asset Gen
Generate game and web assets with Claude and OpenAI
Reavorse MCP Unity Server
LLM‑powered Unity asset and scene automation
Obsidian MCP Python
Demo server to explore Model Context Protocol with Obsidian
NexonCo MCP
Advanced Clinical Evidence Analysis Platform
OtterBridge
Seamless LLM connectivity for any provider