Claude Text EditorSAFE
An open source implementation of the Claude built-in text editor tool
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
[](https://www.npmjs.com/package/mcp-server-text-editor) [](https://github.com/bhouston/mcp-server-text-editor/actions/workflows/tests.yml) [](https://github.com/bhouston/mcp-server-text-editor)
An open-source implementation of the Claude built-in text editor tool as a Model Context Protocol (MCP) server. This package provides the same functionality as Claude's built-in text editor tool, allowing you to view, edit, and create text files through a standardized API.
Features
- Identical API to Claude's Text Editor: Implements the exact same interface as Claude's built-in text editor tool
- MCP Server Implementation: Follows the Model Context Protocol standard for AI tool integration
- File Operations:
- View file contents with optional line range specification
- Create new files
- Replace text in existing files
- Insert text at specific line numbers
- Undo previous edits
Supported Claude Text Editor Versions
This package implements an equivalent tool to the built-in Claude text editor tool versions:
text_editor_20241022(Claude 3.5 Sonnet)text_editor_20250124(Claude 3.7 Sonnet)
But using the tool name 'text_editor' to avoid name conflicts with built-in Claude tools.
Installation
# Install from npm npm install mcp-server-text-editor # Or with pnpm pnpm add mcp-server-text-editor ``
0bb78371a043OBSERVED · 2026-10-08Connect
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 mcp add mcp-server-text-editor -- npx -y [email protected]
{
"mcpServers": {
"mcp-server-text-editor": {
"command": "npx",
"args": [
"-y",
"[email protected]"
]
}
}
}Exposed tools (1)
0 read · 1 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
text_editor | write | View, create, and edit files with persistent state across command calls. This tool is identical with Claude |
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.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- declared (1 observation(s))
- Network
- none-observed
- Shell
- declared (1 observation(s))
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (6)
.prettierignore
return require('../../package.json') as PackageJson;import { getPackageJson } from '../../../src/lib/getPackageInfo';import { textEditorExecute } from '../../../src/tools/textEditor';} from '../../helpers/fileSystem';
@modelcontextprotocol/sdk, rimraf, zod, @eslint/js, @types/node, @typescript-eslint/eslint-plugin, @typescript-eslint/parser, @vitest/coverage-v8
Gates applied: no_behavioural_pass.
0bb78371a043full audit observations/trust-audit/mcp-server/bhouston__claude-text-editor.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-08 | 0bb78371a043 | SAFE | B | 89 | first audit |
Questions
What is the Claude Text Editor MCP server?
An open source implementation of the Claude built-in text editor tool
What tools does Claude Text Editor expose?
1 in total: 0 read-only, 1 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Claude 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.
What credentials does Claude Text Editor need?
No credential environment variables were found in its source, so it appears to need none.
How does Claude Text Editor run?
It speaks stdio, so it runs as a local process your client starts. It is published on npm as mcp-server-text-editor at 1.0.1.
How current is this page?
The grade is for one exact copy of the source (0bb78371a043), read on 2026-10-08. The repository is watched and re-audited when it changes.