- Home
- MCP servers
- Claude Text Editor
Claude Text Editor
- typescript
35
GitHub Stars
typescript
Language
6 months ago
First Indexed
2 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
Installation
Add the following to your MCP client configuration file.
Configuration
View docs{
"mcpServers": {
"bhouston-mcp-server-text-editor": {
"command": "npx",
"args": [
"-y",
"mcp-server-text-editor"
]
}
}
}You can view, edit, and manage text files through a dedicated MCP server that mirrors Claude’s built-in text editor tool. This server enables file operations via a standardized API, so you can integrate text editing capabilities into your AI workflows with ease.
How to use
You access the text editor MCP server from your MCP client by configuring an MCP entry that runs the editor locally or via a command launcher. Once connected, you can view file contents, create new files, replace text, insert lines at a specific position, and undo edits. Use the available tool commands to perform common text-file tasks within your agent’s planning and execution steps.
How to install
Prerequisites: Node.js 18+ and a modern package manager. Ensure you have one of the following installed on your system.
Install the MCP server package from npm or pnpm.
# Install from npm
npm install mcp-server-text-editor
# Or with pnpm
pnpm add mcp-server-text-editor
Start using the server either with npx for temporary runs or as a globally installed command.
# Using npx
npx -y mcp-server-text-editor
# Or if installed globally
mcp-server-text-editor
Configure the MCP client to recognize the editor by adding an MCP server entry that points to the runtime command.
{
"mcpServers": {
"text_editor": {
"command": "npx",
"args": ["-y", "mcp-server-text-editor"]
}
}
}
Additional sections
The MCP server exposes a set of text-file operations. You can view portions or the entirety of a file, create new files, replace text, insert new lines at a given position, and undo the most recent edit. The tool conforms to the same interface as Claude’s built-in text editor, ensuring compatibility with your existing automation and AI workflows.
Tools and capabilities
You can perform a range of text-file actions through distinct tool commands.
View a file or directory contents with optional line range to focus on a portion of the file.
Create a new file with specified content.
Replace text within an existing file by specifying the old and new strings.
Insert text at a specific line number within a file.
Undo the most recent edit to revert changes.
Available tools
view
View the contents of a file or directory with optional line range to limit the output.
create
Create a new file with the specified content.
str_replace
Replace text in a file by specifying old and new strings.
insert
Insert text at a specific line number within a file.
undo_edit
Undo the last edit to revert changes.