Skip to main content

MCP server for syncing Claude Desktop config with remote Digital Ocean config

Project description

Claude Config Sync

An MCP (Model Context Protocol) server for syncing Claude Desktop configuration with remote Digital Ocean configurations.

Features

  • Automatic Config Detection: Finds Claude Desktop config file across different OS platforms
  • Remote Config Sync: Fetches configuration from Digital Ocean Spaces or direct URLs
  • Path Resolution: Automatically resolves absolute paths for uvx and npx commands
  • Safe Operations: Creates backups before making changes
  • Multiple Sync Modes: Regular sync (preserve existing), force sync (overwrite), and dry-run (preview only)

Installation

Install using uvx:

uvx install claude-config-sync

Configuration

Add the MCP server to your Claude Desktop config:

{
  "mcpServers": {
    "claude-config-sync": {
      "command": "uvx",
      "args": ["claude-config-sync"],
      "env": {
        "DO_SPACES_KEY": "your-spaces-access-key-id",
        "DO_SPACES_SECRET": "your-spaces-secret-key",
        "REMOTE_CONFIG_URL": "https://your-space.digitaloceanspaces.com/config.json",
        "DO_REGION": "nyc3"
      }
    }
  }
}

Environment Variables

  • DO_SPACES_KEY: Digital Ocean Spaces access key ID
  • DO_SPACES_SECRET: Digital Ocean Spaces secret key
  • REMOTE_CONFIG_URL: URL to your remote config file
  • DO_REGION: Digital Ocean region (default: nyc3)

Note: DO_ACCESS_TOKEN is not needed for Spaces access - only DO_SPACES_KEY and DO_SPACES_SECRET are required.

Available Tools

sync_config

Adds new MCP servers from remote config while preserving existing local servers.

Parameters:

  • backup (boolean, default: true): Create backup before syncing

force_sync_config

Overwrites existing servers with remote versions and adds new ones.

Parameters:

  • backup (boolean, default: true): Create backup before syncing

dry_run_sync

Previews changes that would be made during sync without applying them.

get_config_status

Shows differences between local and remote configurations.

Usage Examples

  1. Sync new servers only (preserve existing):

    Use the sync_config tool
    
  2. Force sync all servers:

    Use the force_sync_config tool
    
  3. Preview changes:

    Use the dry_run_sync tool
    
  4. Check status:

    Use the get_config_status tool
    

Remote Config Format

Your remote config should follow the same structure as Claude Desktop config:

{
  "mcpServers": {
    "server-name": {
      "command": "npx",
      "args": ["-y", "package-name"],
      "env": {
        "API_KEY": "your-api-key"
      }
    }
  }
}

Security

  • All credentials are passed via environment variables
  • Config files are backed up before modifications
  • Validation ensures config integrity
  • Rollback capability in case of errors

Development

# Clone the repository
git clone https://github.com/example/claude-config-sync.git
cd claude-config-sync

# Install dependencies
pip install -e .

# Run the server
python -m claude_config_sync

License

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

claude_config_sync-2.1.0.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

claude_config_sync-2.1.0-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file claude_config_sync-2.1.0.tar.gz.

File metadata

  • Download URL: claude_config_sync-2.1.0.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for claude_config_sync-2.1.0.tar.gz
Algorithm Hash digest
SHA256 cd67c5541fab8b936e36abab450ef70ceeca2cfff363b844623a5d540c5cf059
MD5 5c0e73bb2a89a5ff162422bc0f2590ab
BLAKE2b-256 4f41c9ade76b8253ae6027b886d5bd5eb6240dfb8ae5a7afd334f22c2900c685

See more details on using hashes here.

File details

Details for the file claude_config_sync-2.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for claude_config_sync-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2d7fb8a95356e0d551da74739dd6d9c7d1843603897b922d9da701a774a6f22d
MD5 97f5a5a11fa3005def5e085529d29479
BLAKE2b-256 466a0d3c712e1706b452206d28830db4471e366d03add03b5d12c6a363809e2f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page