Basic information
About MCP Text Editor Server
# MCP Text Editor Server
MCP Text Editor Server is a MCP server in the Other category listed in the AddMCP.net directory, published by nathanonn. Supported transport: stdio. Runtime: node. Source code is hosted on github.com.
Setup
{
"mcpServers": {
"mcp-text-editor-server": {
"command": "npx",
"args": [
"tsc"
]
}
}
}
{
"mcpServers": {
"mcp-text-editor-server": {
"command": "npx",
"args": [
"tsc"
]
}
}
}
{
"servers": {
"mcp-text-editor-server": {
"command": "npx",
"args": [
"tsc"
]
}
}
}
MCP Text Editor Server — by nathanonn config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mcp-text-editor-server": {
"command": "npx",
"args": [
"tsc"
]
}
}
}
MCP Text Editor Server — by nathanonn tools
Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is MCP Text Editor Server?
An MCP server that implements Anthropic's text editor tool functionality, allowing Claude and other MCP clients to read and modify files within a specified directory. It provides commands for viewing, editing, creating, and undoing file changes, with automatic backups and path validation for security.
How to use MCP Text Editor Server?
Install Node.js 16+ and TypeScript, then set up a project with @modelcontextprotocol/sdk and zod. Compile the source code and run the server with node build/text-editor-server.js /path/to/working/directory. For Claude for Desktop integration, add the server to the mcpServers configuration in claude_desktop_config.json.
Key features of MCP Text Editor Server
- View file contents or directory listings with line numbers
- Make precise text replacements with
str_replace - Edit blocks of code by line numbers with
edit - Insert new content at specific line numbers
- Create new files optionally overwriting existing ones
- Undo edits by restoring files from automatic backups
Use cases of MCP Text Editor Server
- Claude viewing and analyzing source code files in a project directory
- Making targeted string replacements across code files
- Editing entire code blocks or functions with before/after comparison
- Creating new files (config files, scripts) from natural language instructions
- Reverting accidental file modifications using the undo command
Frequently asked questions
1 What commands does MCP Text Editor Server support?
It supports six commands: view, str_replace, edit, insert, create, and undo_edit. Each has specific parameters for controlling file operations.
2 What are the system requirements?
Node.js 16 or higher and TypeScript are required. The server uses the @modelcontextprotocol/sdk and zod libraries.
3 How does the server ensure security?
It validates paths to keep operations within the base directory, creates automatic backups before every modification, provides clear error messages, and automatically creates the base directory if missing.
4 Can I integrate this with Claude for Desktop?
Yes. Add the server to the mcpServers array in your claude_desktop_config.json file with the command and arguments pointing to your compiled server and working directory.
5 How do I undo a change?
Use the undo_edit command with the file path to restore the file to its state before the last modification. The server automatically creates a backup for every edit operation.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In