The mcp-editor server allows you to manage and edit files via a TypeScript MCP server. Capabilities include:
- View file contents or directory listings, with optional line range filtering
- Create new files at a specified path with provided content
- Replace specific strings within a file
- Insert text at specific line numbers in a file
- Undo the most recent edit made to a file
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:
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:
If you're using MCP Installer, you just need to provide your LLM with the path on your disk to mcp-editor.
local-only server
The server can only run on the client's local machine because it depends on local resources.
A TypeScript MCP server port of Anthropic's filesystem editing tools, allowing file manipulation via client-approved operations without automated writes to prevent system harm.
- 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
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityTypeScript-based MCP server designed to enhance code editing experiences by providing features such as hover information, code completion, and diagnostics.Last updated -324MIT License
- -securityAlicense-qualityA TypeScript-based MCP server that provides tools for making precise line-based edits to text files within allowed directories.Last updated -27TypeScriptMIT License
- AsecurityAlicenseAqualityAn MCP server that provides tools for reading, writing, and editing files on the local filesystem.Last updated -11,494PythonApache 2.0
- AsecurityAlicenseAqualityA Python-based text editor server built with FastMCP that provides tools for file operations. This server enables reading, editing, and managing text files through a standardized API following a multi-step process.Last updated -149PythonMIT License