Atlas / MCP servers / tumf / Text Editor

Text EditorSAFE

mcp/tumf/text-editor

A token-efficient MCP server for safe, line-oriented text file editing with partial reads, hash-based conflict detection, and atomic multi-file operations.

Verdict
SAFE
Grade
B
Trust score
89 /100
Exposed tools
6 2r · 3w · 1d
Transport
stdio
License
MIT
Stars
200
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

[](https://codecov.io/gh/tumf/mcp-text-editor) [](https://smithery.ai/server/mcp-text-editor) [](https://glama.ai/mcp/servers/k44dnvso10)

A Model Context Protocol (MCP) server that provides line-oriented text file editing capabilities through a standardized API. Optimized for LLM tools with efficient partial file access to minimize token usage.

Quick Start for Claude.app Users

To use this editor with Claude.app, add the following configuration to your prompt:

code ~/Library/Application\ Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"text-editor": {
"command": "uvx",
"args": [
"mcp-text-editor"
]
}
}
}

Overview

MCP Text Editor Server is designed to facilitate safe and efficient line-based text file operations in a client-server architecture. It implements the Model Context Protocol, ensuring reliable file editing with robust conflict detection and resolution. The line-oriented approach makes it ideal for applications requiring synchronized file access, such as collaborative editing tools, automated text processing systems, or any scenario where multiple processes need to modify text files safely. The partial file access capability is particularly valuable for LLM-based tools, as it helps reduce token consumption by loading only the necessary portions of files.

Key Benefits

  • Line-based editing operations
  • Token-efficient partial file access with line-range specifications
  • Optimized for LLM tool integration
  • Safe concurrent editing with hash-based validation
  • Atomic multi-file operations
  • Robust error handling with custom error types
  • Comprehensive encoding support (utf-8, shift_jis, latin1, etc.)

Features

  • Line-ori
Read from source at commit 9a067f7559a6OBSERVED · 2026-10-06
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.

claude-code
claude mcp add mcp-text-editor -- uvx mcp-text-editor
claude-desktop
{
  "mcpServers": {
    "mcp-text-editor": {
      "command": "uvx",
      "args": [
        "mcp-text-editor"
      ]
    }
  }
}
03

Exposed tools (6)

2 read · 3 write · 1 destructive. Blast radius: 1 tool can delete or overwrite — an agent that can be talked into calling a tool can be talked into calling this one.

ToolRiskDescription
append_text_file_contentsreadAppend content to a text file.
create_text_filewriteCreate a new text file.
delete_text_file_contentsdestructiveDelete the contents of a text file.
get_text_file_contentsreadGet the contents of text files.
insert_text_file_contentswriteInsert content into a text file at a specific position.
patch_text_file_contentswritePatch the contents of a text file.
04

Trust audit

SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codePASS
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfaceWARN
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
declared (1 observation(s))
Network
none-observed
Shell
none-observed
Dependencies
pinned
Secrets in source
none-found

Findings (11)

MEDIUMFilesystem / path · mcp.destructive_tools · CWE-22, CWE-59
delete_text_file_contents
Why it matters. 1 tool(s) can delete or overwrite
Fix. prefer a read-only mode or scoped tokens; the page states the blast radius
LOWInventory / provenance · inv.hidden_file · CWE-1104
.codecov.yml
.codecov.yml
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWInventory / provenance · inv.hidden_file · CWE-1104
.pre-commit-config.yaml
.pre-commit-config.yaml
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWFilesystem / path · fs.system_paths · CWE-22, CWE-59
tests/test_path_validation.py:33
normalize_and_validate_path("/etc/passwd", tmpdir)
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
tests/test_path_validation.py:42
normalize_and_validate_path("subdir/../../../etc/passwd", tmpdir)
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
tests/test_path_validation.py:96
"../../../etc/passwd",
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
tests/test_path_validation.py:101
"~/../../../etc/passwd",
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
tests/test_path_validation.py:103
"/./../../etc/passwd",
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
tests/test_path_validation.py:114
normalize_and_validate_path("test.txt\x00../../etc/passwd", tmpdir)
INFOSupply chain · prompt.pipe_to_shell · CWE-829, CWE-1357
README.md:74
curl -LsSf https://astral.sh/uv/install.sh | sh
INFOSupply chain · prompt.pipe_to_shell · CWE-829, CWE-1357
README.md:119
curl -LsSf https://astral.sh/uv/install.sh | sh

Gates applied: no_behavioural_pass.

Audited 2026-10-06 · audit v0.4.1 · source sha 9a067f7559a6full audit observations/trust-audit/mcp-server/tumf__text-editor.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-10-069a067f7559a6SAFEB89first audit
06

Questions

What is the Text Editor MCP server?

A token-efficient MCP server for safe, line-oriented text file editing with partial reads, hash-based conflict detection, and atomic multi-file operations.

What tools does Text Editor expose?

6 in total: 2 read-only, 3 that write, and 1 that can delete or overwrite (delete_text_file_contents). Every one is listed on this page with its risk.

Is Text Editor safe to connect to an agent?

The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B. Separately from the audit: 1 of its tools can destroy data, so scope the token you give it to what you actually need.

What credentials does Text Editor need?

No credential environment variables were found in its source, so it appears to need none.

How does Text Editor run?

It speaks stdio, so it runs as a local process your client starts. It is published on PyPI as mcp-text-editor.

How current is this page?

The grade is for one exact copy of the source (9a067f7559a6), read on 2026-10-06. The repository is watched and re-audited when it changes.

Advertisement