Claude Text Editor MCP Server
An open source implementation of the Claude built-in text editor tool
Overview
Claude Text Editor MCP Server is an open-source implementation of the Claude built-in text editor tool, designed to function as a Model Context Protocol (MCP) server, allowing users to view, edit, and create text files through a standardized API.
To use the server, install it via npm or pnpm, start the server using npx or globally, and configure it in the Claude Desktop application to access its functionalities.
- Identical API to Claude's Text Editor - Supports file operations like viewing, creating, replacing, inserting text, and undoing edits - Follows the Model Context Protocol standard for AI tool integration
- Editing code files in a collaborative environment.
- Automating text file manipulations in AI applications.
- Integrating with other tools that require text editing capabilities.
Add to your AI client
Use these steps to connect Claude Text Editor MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"mcp-server-text-editor-bhouston": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-text-editor-bhouston"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"mcp-server-text-editor-bhouston": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-text-editor-bhouston"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcp-server-text-editor-bhouston": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-text-editor-bhouston"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"mcp-server-text-editor-bhouston": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-text-editor-bhouston"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-server-text-editor-bhouston": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-text-editor-bhouston"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcp-server-text-editor-bhouston": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-text-editor-bhouston"
]
}
}
}FAQ
Is this server free to use?
Yes! The Claude Text Editor MCP Server is open-source and free to use.
What programming languages does it support?
It is designed to work with any text files, but it is particularly useful for JavaScript and TypeScript files.
How can I contribute to the project?
Contributions are welcome! You can fork the repository, create a feature branch, and submit a pull request.