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
uvxandnpxcommands - 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 IDDO_SPACES_SECRET: Digital Ocean Spaces secret keyREMOTE_CONFIG_URL: URL to your remote config fileDO_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
-
Sync new servers only (preserve existing):
Use the sync_config tool -
Force sync all servers:
Use the force_sync_config tool -
Preview changes:
Use the dry_run_sync tool -
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file claude_config_sync-2.1.1.tar.gz.
File metadata
- Download URL: claude_config_sync-2.1.1.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91c5ad83c3e9589fbfee60f7fc595a5c5c8e70e3601877e7563e9583be5681c0
|
|
| MD5 |
480fc73a847c3e0ffbf2f722424f513f
|
|
| BLAKE2b-256 |
de40eccda93092dddc44f046c6762e9013df552fbac440feaefc3332abc4dac8
|
File details
Details for the file claude_config_sync-2.1.1-py3-none-any.whl.
File metadata
- Download URL: claude_config_sync-2.1.1-py3-none-any.whl
- Upload date:
- Size: 11.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4febb529df837af0ef3dfb82d9195da0d3f1cd944d2122aab79fbe85d6699932
|
|
| MD5 |
7f7b82a8cd002b603cb7b9864b1600b7
|
|
| BLAKE2b-256 |
6649bf155f824ecac523b9821ac337049bb375a68bc0483c4c23881b0a7eb92e
|