Skip to main content
Glama
mcp-editor

mcp-editor

by arathald

mcp-editor

This is a direct port of Anthropic's filesystem editing tools from their computer use demos to a TypeScript MCP server. It was written largely by Claude Sonnet 3.5 on Roo Cline (now Roo Code) with probably not quite enough direct supervision. I checked over the code and use this server every day, but there may be mistakes or AI weirdness.

I recommend using this server along with mcp-server-commands

WARNING: This MCP server has NO access controls and relies entirely on your client's approval mechanisms. Use at your own risk. DO NOT automatically approve write operations, doing so basically gives the LLM permission to destroy your computer.

WARNING: This MCP server is NOT actively maintained, and is provided for reference (for example creating your own MCP server with proper access controls). I may update it occasionally.

Usage

Get the files on your computer. Run:

npm install
npm build

If you're using the Claude desktop app, paste this into your config under "mcpServers", and edit the path to match where you put mcp-editor:

{
  "mcpServers":
... your existing servers ...
    "mcp-editor": {
      "command": "node",
      "args": ["/absolute/path/to/mcp-editor/dist/server.js"]
    }
  }
}

If you're using MCP Installer, you just need to provide your LLM with the path on your disk to mcp-editor.

Available Tools

5 tools
createC

Create a new file with specified content

Inputs: path (required), file_text (required).

insertC

Insert text at a specific line in the file

Inputs: path (required), insert_line (required), new_str (required).

string_replaceC

Replace a string in a file with a new string

Inputs: path (required), old_str (required), new_str.

undo_editC

Undo the last edit to a file

Inputs: path (required).

viewB

View file contents or directory listing

Inputs: path (required), view_range.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 5 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose with no overlap: create makes new files, insert adds text at lines, string_replace modifies content, undo_edit reverses changes, and view reads content or lists directories. The descriptions make it easy to differentiate between file creation, editing operations, and viewing.

    Naming Consistency4/5

    Most tools follow a consistent verb-based naming pattern (create, insert, view, undo_edit), but 'string_replace' deviates slightly by using a compound term instead of a simple verb like 'replace'. This minor inconsistency is still readable and doesn't hinder usability significantly.

    Tool Count5/5

    With 5 tools, this server is well-scoped for basic file editing operations. Each tool earns its place by covering essential functions like creation, insertion, replacement, undo, and viewing, making it neither too sparse nor overloaded for its domain.

    Completeness4/5

    The tool set covers core file editing workflows well, including create, modify (insert and replace), undo, and view. A minor gap is the lack of a delete or rename tool, which agents might need for full file management, but the existing tools allow effective editing without dead ends.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      An MCP server that implements Claude Code-like functionality, allowing the AI to analyze codebases, modify files, execute commands, and manage projects through direct file system interactions.
      15
      306
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      A TypeScript-based MCP server that enables Claude Desktop to perform file operations and retrieve system information, with built-in security features that restrict access to safe directories only.
      6
      14 npm
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Standalone TypeScript MCP server for filesystem operations with robust security, encoding support, and cross-platform path handling.
      2 npm
      MIT