cloudflare github backup mcp
An MCP server that automates the backup of Cloudflare projects to a GitHub repository, providing a systematic way to preserve Cloudflare configurations and assets.
An MCP server that automates the backup of Cloudflare projects to a GitHub repository, providing a systematic way to preserve Cloudflare configurations and assets.
This is an MCP (Model Context Protocol) server that backs up Cloudflare projects to a GitHub repository.
To install Cloudflare to GitHub Backup for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @DynamicEndpoints/cloudflare-github-backup-mcp --client claude
git clone <repository_url>
cd cloudflare-github-backup
npm install
npm run build
Copy the token.
Obtain your GitHub personal access token:
Copy the token.
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"
}
}
}
}
/path/to/cloudflare-github-backup
with the actual path to the cloudflare-github-backup
directory.your_cloudflare_api_token
, your_github_access_token
, and your_github_repo_name
with your actual tokens and repository name.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.
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.