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からGitHubへのバックアップMCPサーバー

これは、Cloudflare プロジェクトを GitHub リポジトリにバックアップする MCP (Model Context Protocol) サーバーです。

前提条件

  • Node.js と npm がインストールされています。
  • プロジェクトへの読み取りアクセス権を持つ Cloudflare アカウントと API トークン。
  • 「repo」スコープを持つ GitHub アカウントと個人アクセス トークン。
  • バックアップを保存する GitHub リポジトリ。

インストール

Smithery経由でインストール

Smithery経由で Claude Desktop の GitHub Backup に Cloudflare を自動的にインストールするには:

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

手動インストール

  1. このリポジトリをクローンします:
    git clone <repository_url> cd cloudflare-github-backup
  2. 依存関係をインストールします:
    npm install
  3. プロジェクトを構築する
    npm run build

構成

  1. Cloudflare API トークンを取得します。
    • Cloudflareダッシュボードに移動します。
    • 「マイプロフィール」->「API トークン」に移動します。
    • 「トークンを作成」をクリックします。
    • トークンにプロジェクトを読み取るために必要な権限があることを確認します。
    • トークンをコピーします。
  2. GitHub 個人アクセス トークンを取得します。
    • GitHub の設定に移動します。
    • 「開発者設定」->「個人アクセストークン」に移動します。
    • 「新しいトークンを生成」をクリックします。
    • 「repo」スコープを選択します。
    • トークンをコピーします。
  3. cline_mcp_settings.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" } } } }
    • /path/to/cloudflare-github-backup``cloudflare-github-backupディレクトリへの実際のパスに置き換えます。
    • your_cloudflare_api_tokenyour_github_access_tokenyour_github_repo_nameを実際のトークンとリポジトリ名に置き換えます。

使用法

  1. VS Code 拡張機能を再起動して MCP サーバーを起動します。
  2. use_mcp_toolツールを使用して、 backup_projectsツールを呼び出します。
    <use_mcp_tool> <server_name>cloudflare-backup</server_name> <tool_name>backup_projects</tool_name> <arguments> {} </arguments> </use_mcp_tool>
    これによりバックアッププロセスが開始されます。サーバーは進行状況を示すメッセージをコンソールに記録します。

注記

現在、バックアップロジックは単なるプレースホルダです。コンソールにメッセージをログ出力しますが、実際のバックアップは実行しません。次のステップでは、CloudflareとGitHub APIを使用して実際のバックアップロジックを実装します。

-
security - not tested
F
license - not found
-
quality - not tested

Cloudflare プロジェクトの GitHub リポジトリへのバックアップを自動化し、Cloudflare の構成とアセットを体系的に保存する方法を提供する MCP サーバー。

  1. Prerequisites
    1. Installation
      1. Installing via Smithery
      2. Manual Installation
    2. Configuration
      1. Usage
        1. Note
          ID: ekd11tfdbs