MCP Backup Server
A Model Context Protocol (MCP) server implementation that provides file backup and restoration capabilities
Overview
MCP Backup Server is a specialized Model Context Protocol (MCP) server that provides file backup and restoration capabilities specifically designed for AI agents and code editing tools.
To use the MCP Backup Server, install the necessary dependencies, build the TypeScript files, and start the server. You can then create backups, list them, and restore files or folders using simple commands.
- Creates instant, targeted backups with agent context. - Simpler than Git for single-operation safety. - Preserves thought process and intent in backups. - Supports file and folder operations with pattern filtering. - Allows cancellation of operations and maintains version history.
- Creating backups before risky code edits.
- Restoring previous versions of files or folders.
- Managing backups for AI agents during critical changes.
Add to your AI client
Use these steps to connect MCP Backup 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-backup-server-hexitex": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-backup-server-hexitex"
]
}
}
}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-backup-server-hexitex": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-backup-server-hexitex"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcp-backup-server-hexitex": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-backup-server-hexitex"
]
}
}
}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-backup-server-hexitex": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-backup-server-hexitex"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-backup-server-hexitex": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-backup-server-hexitex"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcp-backup-server-hexitex": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-backup-server-hexitex"
]
}
}
}FAQ
Can MCP Backup Server replace Git?
No, it serves a different purpose and is not a replacement for proper version control.
Is it safe to use for important files?
Yes, it is designed to create targeted backups with context, ensuring safety during edits.
How do I configure the backup directories?
You can set the backup directories in the environment variables during setup.