MCP Backup Server logo

MCP Backup Server

by hexitex

MCP Backup Server provides backup and restoration capabilities for AI agents and code editing tools. It offers instant, targeted backups with agent context, suitable for quick safety backups during edits.

View on GitHub

Last updated: N/A

What is MCP Backup Server?

MCP Backup Server is a specialized server designed to create and manage backups for AI agents and code editing environments. It's intended for quick, targeted backups before risky operations, offering a simpler alternative to Git for single-operation safety and preserving agent context.

How to use MCP Backup Server?

  1. Install dependencies using npm install. 2. Build TypeScript files using npm run build. 3. Start the server using npm start. 4. Configure the server in your editor (Windsurf or Cursor) by adding an MCP server configuration with the command to run the server and environment variables for backup directories and version limits. Use the provided file and folder operation tools to create, list, and restore backups.

Key features of MCP Backup Server

  • 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

Use cases of MCP Backup Server

  • Backing up code before refactoring

  • Backing up folders before restructuring

  • Creating safety backups before restoring files

  • Making quick save points during edits

FAQ from MCP Backup Server

When should I use this instead of Git?

Use it for instant, targeted backups with agent context, simpler than Git for single-operation safety, preserving thought process, and faster emergency save points.

What are the limitations compared to Git?

It's not for long-term version tracking, has limited collaboration features, no merging or conflict resolution, no distributed backup, and stores complete file copies.

How do I configure the backup directory?

Set the BACKUP_DIR environment variable. The default is ./.code_backups.

How do I limit the number of backup versions?

Set the MAX_VERSIONS environment variable. The default is 10.

What are the available tools?

The tools include backup_create, backup_list, backup_restore, backup_folder_create, backup_folder_list, backup_folder_restore, backup_list_all, and mcp_cancel.