text_editor
View, create, and edit files with persistent state across command calls. This tool is identical with Claude's built in text editor tool called text_editor_20241022
One tool that views, creates and edits files with state that persists across calls, matching the surface of the built-in text_editor_20241022 tool.
LABSCO SUMMARY
Everything runs through one tool with a command argument, which keeps the definition cost to a single entry while still covering view, create, replace and insert. Because it mirrors text_editor_20241022, the calling conventions are ones a model has already seen rather than a new dialect to learn. The persistent state across calls is what makes a multi-step edit practical — the file is not reopened from scratch each time.
A single-tool file editor where the command argument selects the operation, described by its author as identical to Claude's built-in text_editor_20241022 tool.
Nothing — no account, no key. The paths you pass must be reachable on the machine the server runs on.
One command — npx -y mcp-server-text-editor
USE CASES
View the range around the line in question, then replace old_str with new_str. The match has to be exact, so the view step is what makes the replacement land.
Create the file from file_text in one call, then keep editing it in the same session — state persists across command calls, so the follow-up edits do not have to re-establish the file.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
text_editorView, create, and edit files with persistent state across command calls. This tool is identical with Claude's built in text editor tool called text_editor_20241022
BEFORE YOU INSTALL
1 tool when we connected.
CONTEXT COST
Rated by the size of the one tool definition that rides along on every turn
INSTALLATION
Add the block to your client, or run the command directly.
{
"mcpServers": {
"mcp-server-text-editor": {
"command": "npx",
"args": [
"-y",
"mcp-server-text-editor"
]
}
}
}npx -y mcp-server-text-editor