The Cloudflare to GitHub Backup MCP server helps you automatically back up your Cloudflare projects to a GitHub repository. This tool serves as a bridge between your Cloudflare account and GitHub, ensuring your projects are safely stored and versioned.
Before installation, ensure you have:
The easiest way to install is through Smithery:
npx -y @smithery/cli install @DynamicEndpoints/cloudflare-github-backup-mcp --client claude
For manual installation:
git clone <repository_url>
cd cloudflare-github-backup
npm install
npm run build
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"
}
}
}
}
Make sure to:
/path/to/cloudflare-github-backup
with the actual path where you installed the toolbackup_projects
tool:<use_mcp_tool>
<server_name>cloudflare-backup</server_name>
<tool_name>backup_projects</tool_name>
<arguments>
{}
</arguments>
</use_mcp_tool>
The server will display progress messages in the console as it performs the backup operation.
Please note that in the current version, the backup functionality is implemented as a placeholder. The system will log messages to the console but does not yet perform actual backups. Future updates will implement the full backup functionality using Cloudflare and GitHub APIs.
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "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"}}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"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"
}
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration 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"
}
}
}
}
3. Restart Claude Desktop for the changes to take effect