logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

cloudflare-github-backup-mcp

Automates the backup of Cloudflare projects by transferring them to a specified GitHub repository, ensuring secure and accessible storage of project data.

Author

cloudflare-github-backup-mcp logo

DynamicEndpoints

No License

Quick Info

GitHub GitHub Stars 0
NPM Weekly Downloads 0
Tools 1
Last Updated 2026-02-19

Tags

githubgitcloudflarecloudflare githubgithub backupgit workflow

Cloudflare to GitHub Backup MCP Server

smithery badge

This is an MCP (Model Context Protocol) server that backs up Cloudflare projects to a GitHub repository.

Prerequisites

  • Node.js and npm installed.
  • A Cloudflare account and API token with read access to your projects.
  • A GitHub account and personal access token with "repo" scope.
  • A GitHub repository where you want to store the backups.

Installation

Installing via Smithery

To install Cloudflare to GitHub Backup for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @DynamicEndpoints/cloudflare-github-backup-mcp --client claude

Manual Installation

  1. Clone this repository: bash git clone <repository_url> cd cloudflare-github-backup
  2. Install dependencies: bash npm install
  3. Build the project bash npm run build

Configuration

  1. Obtain your Cloudflare API token:
  2. Go to your Cloudflare dashboard.
  3. Navigate to "My Profile" -> "API Tokens".
  4. Click "Create Token".
  5. Ensure the token has the necessary permissions to read your projects.
  6. Copy the token.

  7. Obtain your GitHub personal access token:

  8. Go to your GitHub settings.
  9. Navigate to "Developer settings" -> "Personal access tokens".
  10. Click "Generate new token".
  11. Select the "repo" scope.
  12. Copy the token.

  13. Edit the cline_mcp_settings.json file: json { "mcpServers": { "cloudflare-backup": { "command": "node", "args": ["/path/to/cloudflare-github-backup/build/index.js"], "env": { "CLOUDFLARE_API_TOKEN": "your_cloudflare_api_token", "GITHUB_ACCESS_TOKEN": "your_github_access_token", "GITHUB_REPO_NAME": "your_github_repo_name" } } } }

    • Replace /path/to/cloudflare-github-backup with the actual path to the cloudflare-github-backup directory.
    • Replace your_cloudflare_api_token, your_github_access_token, and your_github_repo_name with your actual tokens and repository name.

Usage

  1. Start the MCP server by restarting the VS Code extension.
  2. Use the use_mcp_tool tool to call the backup_projects tool:

xml <use_mcp_tool> <server_name>cloudflare-backup</server_name> <tool_name>backup_projects</tool_name> <arguments> {} </arguments> </use_mcp_tool>

This will trigger the backup process. The server will log messages to the console indicating the progress.

Note

Currently, the backup logic is just a placeholder. It will log messages to the console but won't perform actual backups. The next step is to implement the actual backup logic using the Cloudflare and GitHub APIs.

See Also

`