MCP Backup Server
local-only server
The server can only run on the client’s local machine because it depends on local resources.
Integrations
Offers a complementary approach to Git with simpler, AI-focused backup capabilities for code. Unlike Git, the system creates instant backups with agent context without requiring commit messages or repository initialization, suitable for emergency 'save points' during edits.
Uses npm for installation and dependencies, with configuration settings for the MCP server that can be managed through npm scripts and environment variables.
Provides backup and restoration capabilities for TypeScript files, allowing targeted backups with pattern filtering (*.ts) and preserving agent context when making critical changes to TypeScript code.
MCP Backup Server
A specialized MCP server that provides backup and restoration capabilities for AI agents and code editing tools. Tested in both Cursor and Windsurf editors.
Repository: https://github.com/hexitex/MCP-Backup-Server
Why Use This (Not Git)
This system serves a different purpose than Git:
Pros:
- Creates instant, targeted backups with agent context
- Simpler than Git for single-operation safety
- Preserves thought process and intent in backups
- No commit messages or branching required
- Better for AI agents making critical changes
- Works without repository initialization
- Faster for emergency "save points" during edits
Cons:
- Not for long-term version tracking
- Limited collaboration features
- No merging or conflict resolution
- No distributed backup capabilities
- Not a replacement for proper version control
- Stores complete file copies rather than diffs
When to use: Before risky edits, folder restructuring, or when you need quick safety backups with context.
When to use Git instead: For proper version history, collaboration, and project management.
Features
- Preserves agent context and reasoning
- Creates targeted, minimal backups
- Supports file and folder operations
- Maintains version history
- Provides restore safety
- Uses pattern filtering
- Tracks operations
- Allows cancellation
Setup
Config
Env:
BACKUP_DIR
: Backup directory (./.code_backups)EMERGENCY_BACKUP_DIR
: Emergency backups (./.code_emergency_backups)MAX_VERSIONS
: Version limit (10)
Configure in editor:
Windsurf MCP config:
Cursor: Create .cursor/mcp.json
with similar config.
Tools
File Operations
backup_create
: Create backup with contextbackup_list
: List available backupsbackup_restore
: Restore with safety backup
Folder Operations
backup_folder_create
: Backup with pattern filteringbackup_folder_list
: List folder backupsbackup_folder_restore
: Restore folder structure
Management
backup_list_all
: List all backupsmcp_cancel
: Cancel operations
When to Use Backups
Only create backups when truly needed:
- Before Refactoring: When changing important code
- Before Removing Folders: When reorganizing project structure
- Multiple Related Changes: When updating several connected files
- Resuming Major Work: When continuing significant changes
- Before Restores: Create safety backup before restoring
Keep backups minimal and purposeful. Document why each backup is needed.
Rules for Copy-Paste
For Human Users
Simple commands like these at the start you may have to mention MCP tool
Agent Examples
Quick Backups
Resume Session
Core Changes
Restore Points
Manage
License
MIT
This server cannot be installed
A specialized server that provides backup and restoration capabilities for AI agents and code editing tools, creating instant targeted backups with context preservation.