Cloudflare to GitHub Backup MCP Server
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Integrations
Retrieves projects from Cloudflare for backup purposes using the Cloudflare API
Backs up Cloudflare projects to GitHub repositories, allowing automatic storage and versioning of project data
Cloudflare to GitHub Backup MCP Server
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
- Clone this repository:Copy
- Install dependencies:Copy
- Build the projectCopy
Configuration
- Obtain your Cloudflare API token:
- Go to your Cloudflare dashboard.
- Navigate to "My Profile" -> "API Tokens".
- Click "Create Token".
- Ensure the token has the necessary permissions to read your projects.
- Copy the token.
- Obtain your GitHub personal access token:
- Go to your GitHub settings.
- Navigate to "Developer settings" -> "Personal access tokens".
- Click "Generate new token".
- Select the "repo" scope.
- Copy the token.
- Edit the
cline_mcp_settings.json
file:Copy- Replace
/path/to/cloudflare-github-backup
with the actual path to thecloudflare-github-backup
directory. - Replace
your_cloudflare_api_token
,your_github_access_token
, andyour_github_repo_name
with your actual tokens and repository name.
- Replace
Usage
- Start the MCP server by restarting the VS Code extension.
- Use the
use_mcp_tool
tool to call thebackup_projects
tool:This will trigger the backup process. The server will log messages to the console indicating the progress.Copy
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.
This server cannot be installed
An MCP server that automates the backup of Cloudflare projects to a GitHub repository, providing a systematic way to preserve Cloudflare configurations and assets.