Skip to content

Sync Google Drive and Dropbox

Sync files bidirectionally between Google Drive and Dropbox so your team can use whichever storage they prefer.

  • Google Cloud OAuth2 credentials (or service account JSON)
  • Dropbox app with access token (create one)
  • WCP running
Terminal window
# Google Drive
curl -X POST http://localhost:8000/api/connections \
-H "Content-Type: application/json" \
-d '{
"name": "gdrive",
"command": "npx",
"args": ["-y", "@anthropic/mcp-server-gdrive"],
"env": { "GOOGLE_APPLICATION_CREDENTIALS": "/data/gcloud-sa.json" }
}'
# Dropbox
curl -X POST http://localhost:8000/api/connections \
-H "Content-Type: application/json" \
-d '{
"name": "dropbox",
"command": "npx",
"args": ["-y", "@anthropic/mcp-server-dropbox"],
"env": { "DROPBOX_ACCESS_TOKEN": "sl...." }
}'
Terminal window
curl -X POST http://localhost:8000/api/capabilities/scan
curl http://localhost:8000/api/capabilities/syncable-pairs
curl -X POST http://localhost:8000/api/sync/run/await

For file storage, last_write_wins is usually the safest strategy — the most recently modified version wins:

Terminal window
curl -X PUT http://localhost:8000/api/conflicts/strategy \
-H "Content-Type: application/json" \
-d '{"strategy": "last_write_wins"}'

Check sync links to see which files are connected:

Terminal window
curl http://localhost:8000/api/links

Each link shows the wcp_id, the app-specific IDs, the last sync time, and the content hash.