Cloudflare to GitHub Backup MCP Server

Cloudflare to GitHub Backup MCP Server

An MCP server that automates the backup of Cloudflare projects to a GitHub repository, providing a systematic way to preserve Cloudflare configurations and assets.

DynamicEndpoints

Cloud Platforms
Version Control
JavaScript
Visit Server

README

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:
    git clone <repository_url>
    cd cloudflare-github-backup
    
  2. Install dependencies:
    npm install
    
  3. Build the project
    npm run build
    

Configuration

  1. 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.
  2. 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.
  3. Edit the cline_mcp_settings.json file:

    {
      "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:

    <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.

Recommended Servers

MCP Package Docs Server

MCP Package Docs Server

Facilitates LLMs to efficiently access and fetch structured documentation for packages in Go, Python, and NPM, enhancing software development with multi-language support and performance optimization.

Featured
Local
TypeScript
Claude Code MCP

Claude Code MCP

An implementation of Claude Code as a Model Context Protocol server that enables using Claude's software engineering capabilities (code generation, editing, reviewing, and file operations) through the standardized MCP interface.

Featured
Local
JavaScript
Gitingest-MCP

Gitingest-MCP

An MCP server for gitingest. It allows MCP clients like Claude Desktop, Cursor, Cline etc to quickly extract information about Github repositories including repository summaries, project directory structure, file contents, etc

Featured
Local
Python
contentful-mcp

contentful-mcp

Update, create, delete content, content-models and assets in your Contentful Space

Featured
TypeScript
Linear MCP Server

Linear MCP Server

Enables interaction with Linear's API for managing issues, teams, and projects programmatically through the Model Context Protocol.

Featured
JavaScript
Supabase MCP Server

Supabase MCP Server

A Model Context Protocol (MCP) server that provides programmatic access to the Supabase Management API. This server allows AI models and other clients to manage Supabase projects and organizations through a standardized interface.

Featured
JavaScript
@kazuph/mcp-gmail-gas

@kazuph/mcp-gmail-gas

Model Context Protocol server for Gmail integration. This allows Claude Desktop (or any MCP client) to interact with your Gmail account through Google Apps Script.

Featured
JavaScript
Metabase MCP Server

Metabase MCP Server

Enables AI assistants to interact with Metabase databases and dashboards, allowing users to list and execute queries, access data visualizations, and interact with database resources through natural language.

Featured
JavaScript
Linear MCP Server

Linear MCP Server

A Model Context Protocol server that integrates with Linear's issue tracking system, allowing LLMs to create, update, search, and comment on Linear issues through natural language interactions.

Featured
JavaScript
Airtable MCP Server

Airtable MCP Server

A Model Context Protocol server that provides tools for programmatically managing Airtable bases, tables, fields, and records through Claude Desktop or other MCP clients.

Featured
JavaScript